summaryrefslogtreecommitdiffabout
path: root/tests/gtver.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-05 11:31:20 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-08-05 11:31:20 (GMT)
commit999b2b28f4245e7717bff024cefe87905644cfb1 (patch) (side-by-side diff)
treefcc057dfd0ba79a514294c9a203dba5a9b4132a7 /tests/gtver.c
parentdd6eb59eb0de0e8fe0482bbc9a4acb99e302c963 (diff)
downloadgdbm-999b2b28f4245e7717bff024cefe87905644cfb1.tar.gz
gdbm-999b2b28f4245e7717bff024cefe87905644cfb1.tar.bz2
Include progname.h instead of declaring canonical_progname.
Diffstat (limited to 'tests/gtver.c') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/gtver.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/gtver.c b/tests/gtver.c
index 0865666..27fc0b9 100644
--- a/tests/gtver.c
+++ b/tests/gtver.c
@@ -19,21 +19,7 @@
#include <stdio.h>
#include <string.h>
#include "gdbm.h"
-
-const char *
-canonical_progname (const char *str)
-{
- const char *p;
-
- p = strrchr (str, '/');
- if (p)
- p++;
- else
- p = str;
- if (strncmp (p, "lt-", 3) == 0)
- p += 3;
- return p;
-}
+#include "progname.h"
#define major_number(lib) ((lib) ? gdbm_version_number[0] : GDBM_VERSION_MAJOR)
#define minor_number(lib) ((lib) ? gdbm_version_number[1] : GDBM_VERSION_MINOR)

Return to:

Send suggestions and report system problems to the System administrator.