STAT->stat
authorng0 <ng0@n0.is>
Mon, 9 Sep 2019 11:42:11 +0000 (11:42 +0000)
committerng0 <ng0@n0.is>
Mon, 9 Sep 2019 11:42:11 +0000 (11:42 +0000)
src/gns/gnunet-bcd.c

index 681b30d2d98ece7e40fa82537ac5a434364456f4..c34372b17e41bdf7fbb091162b825878cf3730b6 100644 (file)
@@ -234,7 +234,7 @@ access_handler_callback(void *cls,
           GNUNET_free(tmp);
           return MHD_NO;
         }
-      GNUNET_break(0 == STAT(deffile, &st));
+      GNUNET_break(0 == stat(deffile, &st));
       if (NULL ==
           (response = MHD_create_response_from_fd((size_t)st.st_size, fd)))
         {
@@ -451,7 +451,7 @@ run(void *cls,
       GNUNET_free(fn);
       return;
     }
-  if (0 != STAT(fn, &st))
+  if (0 != stat(fn, &st))
     {
       GNUNET_log_strerror_file(GNUNET_ERROR_TYPE_ERROR, "open", fn);
       GNUNET_free(fn);