chiark / gitweb /
[PATCH] The following patch fixes a warning when compiling chassis_id
authortklauser@access.unizh.ch <tklauser@access.unizh.ch>
Fri, 11 Mar 2005 01:19:04 +0000 (02:19 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:53:17 +0000 (23:53 -0700)
extras/chassis_id/table.c

index 8d14cd1..ee64ecc 100644 (file)
@@ -59,7 +59,7 @@ int table_init(void)
        i = 0;
        while (!feof(fp)) {
                fgets(ptr, 80, fp);     
-               sscanf(ptr, "%d %d %d %d %d %s %s", &ptable[i].id,
+               sscanf(ptr, "%d %d %d %d %s %s", &ptable[i].id,
                        &ptable[i].num_disks, 
                        &ptable[i].chassis_num, &ptable[i].slot_num,
                        ptable[i].serial_num, ptable[i].name);