summaryrefslogtreecommitdiff
path: root/dpkg-deb/main.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-03-16 14:33:09 +0100
committerGuillem Jover <guillem@debian.org>2011-04-02 02:50:29 +0200
commitbfb43e8aaec95b69184bffaceb099819ad97721d (patch)
tree65c91c78edc18afdf814704e1ba8d2ace4bc3809 /dpkg-deb/main.c
parent12d1e5a1a42ee085b79d1a3bb3a94a9b0165afff (diff)
downloaddpkg-bfb43e8aaec95b69184bffaceb099819ad97721d.tar.gz
Rename struct cmdinfo member arg_func to action and call it directly
This avoids a temporary variable, given that now the function is strongly prototyped.
Diffstat (limited to 'dpkg-deb/main.c')
-rw-r--r--dpkg-deb/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index 5965a1c6c..954341298 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -182,7 +182,6 @@ static const struct cmdinfo cmdinfos[]= {
};
int main(int argc, const char *const *argv) {
- action_func *action;
int ret;
setlocale(LC_NUMERIC, "POSIX");
@@ -196,8 +195,8 @@ int main(int argc, const char *const *argv) {
if (!cipaction) badusage(_("need an action option"));
unsetenv("GZIP");
- action = cipaction->arg_func;
- ret = action(argv);
+
+ ret = cipaction->action(argv);
standard_shutdown();