]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Use bool instead of int
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 28 Nov 2012 16:25:50 +0000 (14:25 -0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 28 Nov 2012 16:25:50 +0000 (14:25 -0200)
Also change the last field initializer in array to be empty.

libkmod/libkmod-util.c
libkmod/libkmod-util.h

index 05a26cc802e1ab53fc8f7cc3714471008d9ffd01..71bf51d632974ec7d28d3ac94e0e5138d0b9822a 100644 (file)
@@ -316,10 +316,10 @@ const struct kmod_ext kmod_exts[] = {
 #ifdef ENABLE_XZ
        {".ko.xz", sizeof(".ko.xz") - 1},
 #endif
-       {NULL, 0},
+       { }
 };
 
-int path_ends_with_kmod_ext(const char *path, size_t len)
+bool path_ends_with_kmod_ext(const char *path, size_t len)
 {
        const struct kmod_ext *eitr;
 
index 36192d9040aeab9016551894ded249e1ef1d4e2d..258184d4cd3407a9807a61354c1788a8e1002f26 100644 (file)
@@ -28,7 +28,7 @@ extern const struct kmod_ext {
        size_t len;
 } kmod_exts[];
 #define KMOD_EXT_UNC 0
-int path_ends_with_kmod_ext(const char *path, size_t len) __attribute__((nonnull(1)));
+bool path_ends_with_kmod_ext(const char *path, size_t len) __attribute__((nonnull(1)));
 
 unsigned long long stat_mstamp(const struct stat *st);
 unsigned long long ts_usec(const struct timespec *ts);