mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-12-21 22:21:50 +07:00
Fix extra attribute
linenum can be NULL in case we are not interested in the number of lines parsed.
This commit is contained in:
parent
12d9419d08
commit
ad5555b272
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user