Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 153434
Collapse All | Expand All

(-)old/nvclock0.8b2/src/backend/back_linux.c (-3 / +4 lines)
Lines 43-60 Link Here
43
static void unmap_dev_mem (unsigned long Base, unsigned long Size);
43
static void unmap_dev_mem (unsigned long Base, unsigned long Size);
44
44
45
/* Check if we are using the closed source Nvidia drivers */
45
/* Check if we are using the closed source Nvidia drivers */
46
#define MODNAME_BUF_SIZE	80
46
static int check_driver()
47
static int check_driver()
47
{
48
{
48
	FILE *proc;
49
	FILE *proc;
49
	char buffer[80];
50
	char buffer[MODNAME_BUF_SIZE];
50
    
51
    
51
	proc = fopen("/proc/modules", "r");
52
	proc = fopen("/proc/modules", "r");
52
    
53
    
53
	if(proc != NULL) 
54
	if(proc != NULL) 
54
	{
55
	{
55
		while(fgets(buffer, 80, proc) != NULL)
56
		while(fgets(buffer, MODNAME_BUF_SIZE, proc) != NULL)
56
		{
57
		{
57
			char name[20];
58
			char name[MODNAME_BUF_SIZE];
58
			int size;
59
			int size;
59
			int used;
60
			int used;
60
    
61
    

Return to bug 153434