]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-util: fix a meaningless assertion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 29 Mar 2018 12:20:30 +0000 (21:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 5 Apr 2018 01:19:57 +0000 (10:19 +0900)
src/shared/bus-util.h

index eb9fae7228a52e41219f0c65cdb91c3d582d2f26..662120697ce630b74ac4a70d7fc63cbab5a0daa5 100644 (file)
@@ -98,7 +98,7 @@ int bus_property_get_id128(sd_bus *bus, const char *path, const char *interface,
 assert_cc(sizeof(int) == sizeof(int32_t));
 #define bus_property_get_int ((sd_bus_property_get_t) NULL)
 
-assert_cc(sizeof(unsigned) == sizeof(unsigned));
+assert_cc(sizeof(unsigned) == sizeof(uint32_t));
 #define bus_property_get_unsigned ((sd_bus_property_get_t) NULL)
 
 /* On 64bit machines we can use the default serializer for size_t and