mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-06-30 06:35:23 +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:
parent
5edb4df406
commit
ba356d5eaf
|
@ -343,14 +343,14 @@ static void _ch_root_uid_setup(void)
|
||||||
|
|
||||||
if(gid != -1) {
|
if(gid != -1) {
|
||||||
if(!setgid(gid))
|
if(!setgid(gid))
|
||||||
fprintf(stdout, "Changed groupid to %i.\n", gid);
|
fprintf(stdout, "Changed groupid to %i.\n", (int)gid);
|
||||||
else
|
else
|
||||||
fprintf(stdout, "Error changing groupid: %s.\n", strerror(errno));
|
fprintf(stdout, "Error changing groupid: %s.\n", strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(uid != -1) {
|
if(uid != -1) {
|
||||||
if(!setuid(uid))
|
if(!setuid(uid))
|
||||||
fprintf(stdout, "Changed userid to %i.\n", uid);
|
fprintf(stdout, "Changed userid to %i.\n", (int)uid);
|
||||||
else
|
else
|
||||||
fprintf(stdout, "Error changing userid: %s.\n", strerror(errno));
|
fprintf(stdout, "Error changing userid: %s.\n", strerror(errno));
|
||||||
}
|
}
|
||||||
|
@ -449,7 +449,7 @@ int main(int argc, char **argv)
|
||||||
pidfile = strdup (config->pidfile);
|
pidfile = strdup (config->pidfile);
|
||||||
if (pidfile && (f = fopen (config->pidfile, "w")) != NULL)
|
if (pidfile && (f = fopen (config->pidfile, "w")) != NULL)
|
||||||
{
|
{
|
||||||
fprintf (f, "%d\n", getpid());
|
fprintf (f, "%d\n", (int)getpid());
|
||||||
fclose (f);
|
fclose (f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user