[xiph-cvs] cvs commit: icecast/src main.c

Michael Smith msmith at xiph.org
Mon May 20 17:35:34 PDT 2002



msmith      02/05/20 17:35:33

  Modified:    src      main.c
  Log:
  Fix segfault from called log functions before log was initialised.

Revision  Changes    Path
1.8       +2 -2      icecast/src/main.c

Index: main.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- main.c	2002/05/21 00:05:31	1.7
+++ main.c	2002/05/21 00:35:33	1.8
@@ -151,12 +151,12 @@
 static void _server_proc_init(void)
 {
         if (!_setup_socket()) {
-		ERROR1("Could not create listener socket on port %d", config_get_config()->port);
+		fprintf(stderr, "Could not create listener socket on port %d", config_get_config()->port);
                 return;
         }
 
         if (!_start_listening()) {
-		ERROR0("Failed trying to listen on server socket");
+		fprintf(stderr, "Failed trying to listen on server socket");
                 return;
         }
 }

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list