diff options
author | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2012-11-28 14:25:50 -0200 |
---|---|---|
committer | Lucas De Marchi <lucas.de.marchi@gmail.com> | 2012-11-28 14:25:50 -0200 |
commit | 5d352563bd3a8d1c6bc07969a5fefe7ddf6bf1c6 (patch) | |
tree | 858f4869bb5ce9890596198799393b40381a90f4 | |
parent | 6f02b6fa7ac435017b8f63dc9a1c8ce62bba008b (diff) | |
download | kmod-5d352563bd3a8d1c6bc07969a5fefe7ddf6bf1c6.tar.gz |
Use bool instead of int
Also change the last field initializer in array to be empty.
-rw-r--r-- | libkmod/libkmod-util.c | 4 | ||||
-rw-r--r-- | libkmod/libkmod-util.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libkmod/libkmod-util.c b/libkmod/libkmod-util.c index 05a26cc..71bf51d 100644 --- a/libkmod/libkmod-util.c +++ b/libkmod/libkmod-util.c @@ -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; diff --git a/libkmod/libkmod-util.h b/libkmod/libkmod-util.h index 36192d9..258184d 100644 --- a/libkmod/libkmod-util.h +++ b/libkmod/libkmod-util.h @@ -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); |