[xiph-cvs] cvs commit: ices/src ices.c

Michael Smith msmith at xiph.org
Fri Nov 9 00:14:51 PST 2001



msmith      01/11/09 00:14:50

  Modified:    src      ices.c
  Log:
  Erm. Usage messages on bad usage and/or bad config file read now actually
  get shown properly. Some silly mistakes.

Revision  Changes    Path
1.3       +3 -3      ices/src/ices.c

Index: ices.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/ices.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ices.c	2001/09/25 12:04:21	1.2
+++ ices.c	2001/11/09 08:14:50	1.3
@@ -1,7 +1,7 @@
 /* ices.c
  * - Main startup, thread launching, and cleanup code.
  *
- * $Id: ices.c,v 1.2 2001/09/25 12:04:21 msmith Exp $
+ * $Id: ices.c,v 1.3 2001/11/09 08:14:50 msmith Exp $
  *
  * Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
  *
@@ -32,7 +32,7 @@
         char logpath[FILENAME_MAX];
         int log;
 
-	if (argc < 2) 
+	if (argc != 2) 
         {
                 fprintf(stderr, "IceS version 2.0beta1\n"
                                 "  (c) Copyright 2001 Michael Smith <msmith at icecast.org>\n"
@@ -52,7 +52,7 @@
         ** make it so you can specify all parameters on the commandline
         ** too.
         */
-	if (!config_read(argv[1])) 
+	if (config_read(argv[1]) <= 0) 
         {
                 fprintf(stderr, "Failed to read config file \"%s\"\n", argv[1]);
                 goto fail;

--- >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