hal/hald hald_conf.c,1.2,1.3

Joe Shaw joe at pdx.freedesktop.org
Mon Jun 7 10:59:37 PDT 2004


Update of /cvs/hal/hal/hald
In directory pdx:/tmp/cvs-serv19478/hald

Modified Files:
	hald_conf.c 
Log Message:
2004-06-07  Joe Shaw  <joeshaw at novell.com>

	* hald/hald_conf.c: Remove deprecated use of a label at the end of
	a function and just return instead of goto'ing there.

Index: hald_conf.c
===================================================================
RCS file: /cvs/hal/hal/hald/hald_conf.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/hald_conf.c	1 Jun 2004 21:10:02 -0000	1.2
+++ b/hald_conf.c	7 Jun 2004 17:59:35 -0000	1.3
@@ -166,7 +166,7 @@
 	file = fopen (HALD_CONF_FILE, "r");
 	if (file == NULL) {
 		HAL_INFO (("Couldn't open " HALD_CONF_FILE));
-		goto out;;
+		return;
 	}
 
 	fseek (file, 0L, SEEK_END);
@@ -214,5 +214,4 @@
 	free (filebuf);
 out1:
 	fclose (file);
-out:
 }





More information about the hal-commit mailing list