From ad5555b2722db1de3b3e5154fcc385c51a45c6c5 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 3 Dec 2011 03:53:10 -0200 Subject: [PATCH] Fix extra attribute linenum can be NULL in case we are not interested in the number of lines parsed. --- libkmod/libkmod-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkmod/libkmod-private.h b/libkmod/libkmod-private.h index d150bd7a..838a19fa 100644 --- a/libkmod/libkmod-private.h +++ b/libkmod/libkmod-private.h @@ -76,7 +76,7 @@ const char *kmod_alias_get_modname(const struct kmod_list *l) __attribute__((non int kmod_module_parse_dep(struct kmod_module *mod, char *line) __attribute__((nonnull(1, 2))); /* util functions */ -char *getline_wrapped(FILE *fp, unsigned int *linenum) __attribute__((nonnull(1, 2))); +char *getline_wrapped(FILE *fp, unsigned int *linenum) __attribute__((nonnull(1))); char *underscores(struct kmod_ctx *ctx, char *s) __attribute__((nonnull(1, 2))); #define streq(a, b) (strcmp((a), (b)) == 0) bool startswith(const char *s, const char *prefix) __attribute__((nonnull(1, 2))); -- 2.47.2