summaryrefslogtreecommitdiff
path: root/source/web/swat.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/web/swat.c')
-rw-r--r--source/web/swat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/web/swat.c b/source/web/swat.c
index f963c16ccf8..8551c5e907e 100644
--- a/source/web/swat.c
+++ b/source/web/swat.c
@@ -999,7 +999,7 @@ static void printers_page(void)
{
extern char *optarg;
extern int optind;
- extern FILE *dbf;
+ extern XFILE *dbf;
int opt;
char *page;
@@ -1016,8 +1016,8 @@ static void printers_page(void)
/* we don't want any SIGPIPE messages */
BlockSignals(True,SIGPIPE);
- dbf = sys_fopen("/dev/null", "w");
- if (!dbf) dbf = stderr;
+ dbf = x_fopen("/dev/null", O_WRONLY, 0);
+ if (!dbf) dbf = x_stderr;
/* we don't want stderr screwing us up */
close(2);