Changeset 247

Show
Ignore:
Timestamp:
02/18/99 15:31:54 (10 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:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/kernel/busses/i2c-ali15x3.c

    r245 r247  
    179179#else 
    180180  unsigned char ALI15X3_bus, ALI15X3_devfn = 0; 
    181   int i,res; 
     181  int res; 
    182182#endif 
    183183 
  • 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))) {