summaryrefslogtreecommitdiffstats
path: root/utils/modlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/modlist.c')
-rw-r--r--utils/modlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/modlist.c b/utils/modlist.c
index 6454496ce..bb7e5a2fc 100644
--- a/utils/modlist.c
+++ b/utils/modlist.c
@@ -9,8 +9,8 @@ int main(int argc, char ** argv) {
poptContext optCon;
char * modInfoFile = "/boot/module-info";
enum driverMajor major;
- char * type;
- char * mod;
+ const char * type;
+ const char * mod;
struct moduleInfo * list, * m;
int rc, i;
int showModInfo = 0;
@@ -28,7 +28,7 @@ int main(int argc, char ** argv) {
{ 0, 0, 0, 0, 0 }
};
- optCon = poptGetContext(NULL, argc, argv, optionTable, 0);
+ optCon = poptGetContext(NULL, argc, (const char **) argv, optionTable, 0);
if ((rc = poptGetNextOpt(optCon)) < -1) {
fprintf(stderr, "bad option %s: %s\n",
@@ -38,7 +38,7 @@ int main(int argc, char ** argv) {
}
mis = isysNewModuleInfoSet();
- if (isysReadModuleInfo(modInfoFile, mis, MI_LOCATION_NONE, NULL)) {
+ if (isysReadModuleInfo(modInfoFile, mis, NULL)) {
fprintf(stderr, "Failed to read %s\n", modInfoFile);
exit(1);
}