diff options
author | Guillem Jover <guillem@debian.org> | 2011-07-01 04:22:51 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2011-07-07 10:42:29 +0200 |
commit | 0fc0d6d598c045c77d056b40446208448b9ec6e2 (patch) | |
tree | 46b75ac9ce21a5e04b397bcf8f4a44e412a78700 /dpkg-deb/main.c | |
parent | 4da4c894719c7d33a3e44645630f63172cfd4c99 (diff) | |
download | dpkg-0fc0d6d598c045c77d056b40446208448b9ec6e2.tar.gz |
libdpkg: Do not require programs to define printforhelp
Instead define it in myopt.c and initialize it through a new argument to
myopt().
Diffstat (limited to 'dpkg-deb/main.c')
-rw-r--r-- | dpkg-deb/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c index 954341298..4512a9847 100644 --- a/dpkg-deb/main.c +++ b/dpkg-deb/main.c @@ -126,7 +126,7 @@ usage(const struct cmdinfo *cip, const char *value) } const char thisname[]= BACKEND; -const char printforhelp[]= +static const char printforhelp[] = N_("Type dpkg-deb --help for help about manipulating *.deb files;\n" "Type dpkg --help for help about installing and deinstalling packages."); @@ -190,7 +190,7 @@ int main(int argc, const char *const *argv) { textdomain(PACKAGE); standard_startup(); - myopt(&argv, cmdinfos); + myopt(&argv, cmdinfos, printforhelp); if (!cipaction) badusage(_("need an action option")); |