summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <jbj>2002-07-29 23:06:07 +0000
committerjbj <jbj>2002-07-29 23:06:07 +0000
commita969908ac4570e4e213d38b9307a1c16a3fb2d47 (patch)
tree8335a6fa6111cb1fc29b731311e070384596e2de
parent31db7baac9db85edbe27bac0cb9544b91842dd40 (diff)
downloadlibpopt-a969908ac4570e4e213d38b9307a1c16a3fb2d47.tar.gz
- update trpm.
- factor all mode-specific options into mode-specific tables. - treat an unspecified epoch as Epoch: 0 everywhere.
-rw-r--r--popt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/popt.c b/popt.c
index d71e2bf..812861e 100644
--- a/popt.c
+++ b/popt.c
@@ -18,6 +18,11 @@
#include "findme.h"
#include "poptint.h"
+#ifdef MYDEBUG
+/*@unchecked@*/
+int _popt_debug = 0;
+#endif
+
#ifndef HAVE_STRERROR
static char * strerror(int errno) {
extern int sys_nerr;
@@ -427,7 +432,8 @@ static int execCommand(poptContext con)
if (argv[0] == NULL)
return POPT_ERROR_NOARG;
-#ifdef MYDEBUG
+#ifdef MYDEBUG
+if (_popt_debug)
{ const char ** avp;
fprintf(stderr, "==> execvp(%s) argv[%d]:", argv[0], argc);
for (avp = argv; *avp; avp++)