From: Lucas De Marchi Date: Fri, 2 Dec 2011 12:05:31 +0000 (-0200) Subject: Fix 'old style declaration' warnings X-Git-Tag: v1~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93688880db8ceec0a7b288760d2f90d05fa8c427;p=platform%2Fupstream%2Fkmod.git Fix 'old style declaration' warnings --- diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index 3fb736d..1159722 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -30,7 +30,7 @@ * Index abstract data type (used only by depmod) */ -struct index_node *index_create() +struct index_node *index_create(void) { struct index_node *node; @@ -275,7 +275,7 @@ void index_write(const struct index_node *node, FILE *out) -static void read_error() +static void read_error(void) { fatal("Module index: unexpected error: %s\n" "Try re-running depmod\n", errno ? strerror(errno) : "EOF"); @@ -324,7 +324,7 @@ static void buf__realloc(struct buffer *buf, unsigned size) } } -static struct buffer *buf_create() +static struct buffer *buf_create(void) { struct buffer *buf;