remove deprecated myfprintf wrapper
This shaves another 5-6k because we've removed the paranoid fflush() calls after every fprintf. Now we only fflush() when we need to git-svn-id: https://svn.musicpd.org/mpd/trunk@4493 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
+4
-4
@@ -191,8 +191,8 @@ static void parseOptions(int argc, char **argv, Options * options)
|
||||
version();
|
||||
exit(EXIT_SUCCESS);
|
||||
} else {
|
||||
myfprintf(stderr,
|
||||
"unknown command line option: %s\n",
|
||||
fprintf(stderr,
|
||||
"unknown command line option: %s\n",
|
||||
argv[i]);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
@@ -447,13 +447,13 @@ static void setupLogOutput(Options * options, FILE * out, FILE * err)
|
||||
fflush(NULL);
|
||||
|
||||
if (dup2(fileno(out), STDOUT_FILENO) < 0) {
|
||||
myfprintf(err, "problems dup2 stdout : %s\n",
|
||||
fprintf(err, "problems dup2 stdout : %s\n",
|
||||
strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (dup2(fileno(err), STDERR_FILENO) < 0) {
|
||||
myfprintf(err, "problems dup2 stderr : %s\n",
|
||||
fprintf(err, "problems dup2 stderr : %s\n",
|
||||
strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user