mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +00:00
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. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@247 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
1e6a3fb89c
commit
089481f07d
2 files changed
+8
-2
No files matched your search
@@ -178,7 +178,7 @@ int ali15x3_setup(void)
|
||||
struct pci_dev *ALI15X3_dev;
|
||||
#else
|
||||
unsigned char ALI15X3_bus, ALI15X3_devfn = 0;
|
||||
int i,res;
|
||||
int res;
|
||||
#endif
|
||||
|
||||
/* First check whether we can access PCI at all */
|
||||
|
||||
+7
-1
@@ -394,7 +394,13 @@ int i2cproc_attach_adapter(struct i2c_adapter *adapter)
|
||||
proc_entry->mode = S_IRUGO | S_IFREG;
|
||||
proc_entry->nlink = 1;
|
||||
proc_entry->ops = &i2cproc_inode_operations;
|
||||
strcpy((char *) proc_entry->name,name);
|
||||
|
||||
/* Nasty stuff to keep GCC satisfied */
|
||||
{
|
||||
char *procname;
|
||||
(const char *) procname = proc_entry->name;
|
||||
strcpy (procname,name);
|
||||
}
|
||||
|
||||
if ((res = proc_register_dynamic(&proc_bus_dir, proc_entry))) {
|
||||
printk("i2c-proc.o: Could not create %s.\n",name);
|
||||
|
||||
Reference in new issue
Block a user