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

Michael Smith msmith at xiph.org
Tue Mar 9 15:52:20 PST 2004



msmith      04/03/09 18:52:20

  Modified:    src      main.c
  Log:
  Another patch from Dale Ghent, this silences some warnings from the compiler.

Revision  Changes    Path
1.40      +3 -3      icecast/src/main.c

Index: main.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/main.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- main.c	24 Feb 2004 21:02:44 -0000	1.39
+++ main.c	9 Mar 2004 23:52:20 -0000	1.40
@@ -343,14 +343,14 @@
 
        if(gid != -1) {
            if(!setgid(gid))
-               fprintf(stdout, "Changed groupid to %i.\n", gid);
+               fprintf(stdout, "Changed groupid to %i.\n", (int)gid);
            else
                fprintf(stdout, "Error changing groupid: %s.\n", strerror(errno));
        }
 
        if(uid != -1) {
            if(!setuid(uid))
-               fprintf(stdout, "Changed userid to %i.\n", uid);
+               fprintf(stdout, "Changed userid to %i.\n", (int)uid);
            else
                fprintf(stdout, "Error changing userid: %s.\n", strerror(errno));
        }
@@ -449,7 +449,7 @@
         pidfile = strdup (config->pidfile);
         if (pidfile && (f = fopen (config->pidfile, "w")) != NULL)
         {
-            fprintf (f, "%d\n", getpid());
+            fprintf (f, "%d\n", (int)getpid());
             fclose (f);
         }
     }

<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