1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Another patch from Dale Ghent, this silences some warnings from the compiler.

svn path=/trunk/icecast/; revision=5928
This commit is contained in:
Michael Smith 2004-03-09 23:52:20 +00:00
parent 5edb4df406
commit ba356d5eaf

View File

@ -343,14 +343,14 @@ static void _ch_root_uid_setup(void)
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 @@ int main(int argc, char **argv)
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);
}
}