hal/tools/linux hal_hotplug.c,1.30,1.31

Danny Kukawka dkukawka at freedesktop.org
Thu Jan 12 09:48:47 PST 2006


Update of /cvs/hal/hal/tools/linux
In directory gabe:/tmp/cvs-serv7533/tools/linux

Modified Files:
	hal_hotplug.c 
Log Message:
2006-01-12  Danny Kukawka  <danny.kukawka at web.de>

        Fixed compiler warnings if compile with flag warn_unused_result.

        * hald/device_info.c: (process_fdi_file):
        * hald/hald.c: (handle_sigterm), (main), (osspec_probe_done):
        * hald/hald_dbus.c: (hald_exec_method):
        * hald/linux2/osspec.c: (set_suspend_hibernate_keys):
        * hald/linux2/probing/probe-smbios.c: (main):
        * tools/linux/hal_hotplug.c: (main):



Index: hal_hotplug.c
===================================================================
RCS file: /cvs/hal/hal/tools/linux/hal_hotplug.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- hal_hotplug.c	2 Nov 2005 15:38:14 -0000	1.30
+++ hal_hotplug.c	12 Jan 2006 17:48:44 -0000	1.31
@@ -156,6 +156,7 @@
 	 * hotplug event handler will screw us otherwise */
 	if (strcmp (subsystem, "net") == 0) {
 		FILE *f;
+		size_t read;
 		char buf[32];
 		char path[PATH_MAX];
 
@@ -164,7 +165,7 @@
 			strcat_len (path, "/ifindex");
 			if ((f = fopen (path, "r")) != NULL) {
 				memset (buf, 0, sizeof (buf));
-				fread (buf, sizeof (buf) - 1, 1, f);
+				read = fread (buf, sizeof (buf) - 1, 1, f);
 				fclose (f);
 				net_ifindex = atoi(buf);
 			}




More information about the hal-commit mailing list