From: Denys Vlasenko Date: Tue, 15 Feb 2011 00:45:14 +0000 (+0100) Subject: modinfo: trivial optimizations X-Git-Tag: 1_19_0~286 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=df7f2008c2a3a54437d2678b8d53eddaf136eb89;p=oweals%2Fbusybox.git modinfo: trivial optimizations Signed-off-by: Denys Vlasenko --- diff --git a/modutils/modinfo.c b/modutils/modinfo.c index cc501825c..db134bd00 100644 --- a/modutils/modinfo.c +++ b/modutils/modinfo.c @@ -44,7 +44,7 @@ static int display(const char *data, const char *pattern, int flag) } static void modinfo(const char *path, const char *version, - struct modinfo_env *env) + const struct modinfo_env *env) { static const char *const shortcuts[] = { "filename", @@ -82,11 +82,13 @@ static void modinfo(const char *path, const char *version, if (field) tags |= OPT_F; for (j = 1; (1<