From 05d715df3ac052fb41a5ab42369d05a3e2a82de3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 13 May 2014 13:44:08 +0200 Subject: resolve merge conflict --- adk/tools/pkgmaker.c | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'adk') diff --git a/adk/tools/pkgmaker.c b/adk/tools/pkgmaker.c index f5b1ec004..04237462e 100644 --- a/adk/tools/pkgmaker.c +++ b/adk/tools/pkgmaker.c @@ -785,10 +785,7 @@ int main() { if (result == 1) { val = strtok_r(hvalue, " ", &saveptr); while (val != NULL) { - if (strncmp(val, "kmod", 4) == 0) - fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val)); - else - fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); + fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); val = strtok_r(NULL, " ", &saveptr); } } @@ -880,10 +877,7 @@ int main() { if (pkg_depends != NULL) { token = strtok(pkg_depends, " "); while (token != NULL) { - if (strncmp(token, "kmod", 4) == 0) - fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(token)); - else - fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(token)); + fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(token)); token = strtok(NULL, " "); } free(pkg_depends); @@ -996,10 +990,7 @@ int main() { if (result == 1) { val = strtok_r(hvalue, " ", &saveptr); while (val != NULL) { - if (strncmp(val, "kmod", 4) == 0) - fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val)); - else - fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); + fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); val = strtok_r(NULL, " ", &saveptr); } } @@ -1055,10 +1046,7 @@ int main() { if (result == 1) { val = strtok_r(hvalue, " ", &saveptr); while (val != NULL) { - if (strncmp(val, "kmod", 4) == 0) - fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val)); - else - fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); + fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); val = strtok_r(NULL, " ", &saveptr); } } @@ -1095,10 +1083,7 @@ int main() { if (result == 1) { val = strtok_r(hvalue, " ", &saveptr); while (val != NULL) { - if (strncmp(val, "kmod", 4) == 0) - fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val)); - else - fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); + fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val)); val = strtok_r(NULL, " ", &saveptr); } } -- cgit v1.2.3