Code cleanup

This commit is contained in:
Michiel Broek 2005-08-13 22:00:47 +00:00
parent 18d513b742
commit 8341a5a8db

View File

@ -113,7 +113,7 @@ int newspost(void)
* Create newsbatch file. * Create newsbatch file.
*/ */
if ((CFG.newsfeed == FEEDUUCP) || (CFG.newsfeed == FEEDRNEWS)) { if ((CFG.newsfeed == FEEDUUCP) || (CFG.newsfeed == FEEDRNEWS)) {
Syslog('m', "Building uncompressed batchfile"); Syslog('+', "Posting news articles to the news batchfile");
sprintf(buf, "%s/tmp/newsbatch", getenv("MBSE_ROOT")); sprintf(buf, "%s/tmp/newsbatch", getenv("MBSE_ROOT"));
if ((ofp = fopen(buf, "w+")) == NULL) { if ((ofp = fopen(buf, "w+")) == NULL) {
WriteError("$Can't create %s", buf); WriteError("$Can't create %s", buf);
@ -163,7 +163,7 @@ int newspost(void)
*/ */
if (CFG.newsfeed == FEEDRNEWS) { if (CFG.newsfeed == FEEDRNEWS) {
if ((nb = (expipe(CFG.rnewspath, NULL, NULL))) == NULL) { if ((nb = (expipe(CFG.rnewspath, NULL, NULL))) == NULL) {
WriteError("Could not open (pip) output for %s", CFG.rnewspath); WriteError("Could not open (pipe) output for %s", CFG.rnewspath);
newsopen = FALSE; newsopen = FALSE;
return TRUE; return TRUE;
} }