summaryrefslogtreecommitdiff
path: root/dselect
diff options
context:
space:
mode:
authorWichert Akkerman <wakkerma@debian.org>1999-12-05 18:04:27 +0000
committerWichert Akkerman <wakkerma@debian.org>1999-12-05 18:04:27 +0000
commit9de78f29a491a85177ae2fadeafaab8e806614bb (patch)
treee1fef8df86dfcc8e8d9925f8b48df6a00beca59b /dselect
parentcde4b583e0be0dcfde7bb25abd7c015f48711166 (diff)
downloaddpkg-9de78f29a491a85177ae2fadeafaab8e806614bb.tar.gz
Make dselect build again
Don't copy strings when reading fileslists
Diffstat (limited to 'dselect')
-rw-r--r--dselect/main.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/dselect/main.cc b/dselect/main.cc
index d25e3b5b7..632d1ba4b 100644
--- a/dselect/main.cc
+++ b/dselect/main.cc
@@ -48,7 +48,7 @@ extern "C" {
#include "pkglist.h"
const char thisname[]= DSELECT;
-const char printforhelp[]= N_("Type %s --help for help.", DSELECT);
+const char printforhelp[]= N_("Type dselect --help for help.");
modstatdb_rw readwrite;
const char *admindir= ADMINDIR;
@@ -75,16 +75,17 @@ static const menuentry menuentries[]= {
};
static const char programdesc[]=
- N_("Debian Linux `%s' package handling frontend.", DSELECT);
+ N_("Debian Linux `%s' package handling frontend.");
static const char copyrightstring[]= N_(
"Version %s. Copyright (C) 1994-1996 Ian Jackson. This is\n"
"free software; see the GNU General Public Licence version 2 or later for\n"
- "copying conditions. There is NO warranty. See dselect --licence for details.\n",
- DPKG_VERSION_ARCH);
+ "copying conditions. There is NO warranty. See dselect --licence for details.\n");
static void printversion(void) {
- if (fprintf(stdout,"%s\n%s",gettext(programdesc),gettext(copyrightstring)) == EOF) werr("stdout");
+ if (fprintf(stdout,gettext(programdesc),DSELECT) == EOF) werr("stdout");
+ if (fprintf(stdout,"\n") == EOF) werr("stdout");
+ if (fprintf(stdout,gettext(copyrightstring), DPKG_VERSION_ARCH) == EOF) werr("stdout");
}
static void usage(void) {