[BusyBox-cvs] busybox/editors awk.c,1.1,1.2

Glenn McGrath bug1 at busybox.net
Thu Nov 28 09:30:44 UTC 2002


Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv21523/editors

Modified Files:
	awk.c 
Log Message:
Use erorr_msg( isntead of fprintf(stderr,


Index: awk.c
===================================================================
RCS file: /var/cvs/busybox/editors/awk.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- awk.c	11 Nov 2002 06:20:56 -0000	1.1
+++ awk.c	28 Nov 2002 09:30:40 -0000	1.2
@@ -461,9 +461,9 @@
 static const char EMSG_NO_MATH[] = "Math support is not compiled in";
 #endif
 
-static void syntax_error(const char * const message) {
-
-	fprintf(stderr, "awk: %s:%i: %s\n", programname, lineno, message);
+static void syntax_error(const char * const message)
+{
+	error_msg("%s:%i: %s", programname, lineno, message);
 	awk_exit(1);
 }
 
@@ -2681,7 +2681,7 @@
 				free(s);
 				break;
 			case 'W':
-				fprintf(stderr, "Warning: unrecognized option '-W %s' ignored\n", optarg);
+				error_msg("Warning: unrecognized option '-W %s' ignored\n", optarg);
 				break;
 
 			default:




More information about the busybox-cvs mailing list