diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-05 11:31:20 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-05 11:31:20 +0000 |
commit | 999b2b28f4245e7717bff024cefe87905644cfb1 (patch) | |
tree | fcc057dfd0ba79a514294c9a203dba5a9b4132a7 /tests/gtfetch.c | |
parent | dd6eb59eb0de0e8fe0482bbc9a4acb99e302c963 (diff) | |
download | gdbm-999b2b28f4245e7717bff024cefe87905644cfb1.tar.gz |
Include progname.h instead of declaring canonical_progname.
Diffstat (limited to 'tests/gtfetch.c')
-rw-r--r-- | tests/gtfetch.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/gtfetch.c b/tests/gtfetch.c index e7ff542..0c254b7 100644 --- a/tests/gtfetch.c +++ b/tests/gtfetch.c @@ -19,6 +19,7 @@ #include <stdlib.h> #include <string.h> #include "gdbm.h" +#include "progname.h" void print_key (FILE *fp, datum key, int delim) @@ -33,21 +34,6 @@ print_key (FILE *fp, datum key, int delim) } } -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; -} - int main (int argc, char **argv) { |