Show
Ignore:
Timestamp:
02/18/99 15:31:54 (14 years ago)
Author:
frodo
Message:

Two insignificant patches to remove 2.0.x kernel compile warnings.

It compiles now cleanly against kernel 2.0.36; I checked, double-checked and
cross-checked.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/i2c-proc.c

    r207 r247  
    395395  proc_entry->nlink = 1; 
    396396  proc_entry->ops = &i2cproc_inode_operations; 
    397   strcpy((char *) proc_entry->name,name); 
     397 
     398  /* Nasty stuff to keep GCC satisfied */ 
     399  {  
     400    char *procname; 
     401    (const char *) procname  = proc_entry->name; 
     402    strcpy (procname,name); 
     403  } 
    398404 
    399405  if ((res = proc_register_dynamic(&proc_bus_dir, proc_entry))) {