commit | 0fbdfef3f95ab1793fc855ce3d2c486edf98a8db | [log] [tgz] |
---|---|---|
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | Fri Dec 02 09:56:22 2011 -0200 |
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | Fri Dec 02 09:56:22 2011 -0200 |
tree | 6b5bd34487da9dabcb8a07370b52b113f494cefb | |
parent | a009482ccfbf9fa610082bcc2148fe82562a6eda [diff] [blame] |
Clean 'shadowed declaration' warnings index is a function in string.h, so replace index with idx all over the source code.
diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index 3d697d6..3fb736d 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c
@@ -528,10 +528,10 @@ return new; } -void index_file_close(struct index_file *index) +void index_file_close(struct index_file *idx) { - fclose(index->file); - free(index); + fclose(idx->file); + free(idx); }