Commit ba356d5e authored by Michael Smith's avatar Michael Smith

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

svn path=/trunk/icecast/; revision=5928
parent 5edb4df4
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment