chiark / gitweb /
Add (void) where we don't care about return value
[elogind.git] / src / timedate / timedated.c
index 97b535f564692672e2652e15205e869de644c9e5..ca771d5b33241215e4987fb06e53f33e171b73f2 100644 (file)
@@ -43,7 +43,7 @@
 #define NULL_ADJTIME_LOCAL "0.0 0 0\n0\nLOCAL\n"
 
 static BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map timedated_errors[] = {
-        SD_BUS_ERROR_MAP("org.freedesktop.timedate1.NoNTPSupport", ENOTSUP),
+        SD_BUS_ERROR_MAP("org.freedesktop.timedate1.NoNTPSupport", EOPNOTSUPP),
         SD_BUS_ERROR_MAP_END
 };
 
@@ -739,7 +739,7 @@ int main(int argc, char *argv[]) {
         if (r < 0)
                 goto finish;
 
-        (void)sd_bus_negotiate_timestamp(bus, true);
+        (void) sd_bus_negotiate_timestamp(bus, true);
 
         r = context_read_data(&context);
         if (r < 0) {