Fix extra attribute

linenum can be NULL in case we are not interested in the number of lines
parsed.
This commit is contained in:
Lucas De Marchi 2011-12-03 03:53:10 -02:00
parent 12d9419d08
commit ad5555b272

View File

@ -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)));