GNUNET_DISK_OPEN_READ
[oweals/gnunet.git] / src / util / service.c
index 732dbe9af94c49488373618572b4b8592fa58e02..4264071a97a316e1b425258e201d26ffc7fb494a 100644 (file)
@@ -1154,7 +1154,7 @@ detach_terminal (struct GNUNET_SERVICE_Context *sctx)
   GNUNET_break (0 == CLOSE (0));
   GNUNET_break (0 == CLOSE (1));
   GNUNET_break (0 == CLOSE (filedes[0]));
-  nullfd = GNUNET_DISK_file_open ("/dev/null", O_RDWR | O_APPEND);
+  nullfd = OPEN ("/dev/null", O_RDWR | O_APPEND);
   if (nullfd < 0)
     return GNUNET_SYSERR;
   /* set stdin/stdout to /dev/null */