summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/testdb.c4
-rw-r--r--src/util/testpkg.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/util/testdb.c b/src/util/testdb.c
index a06456a4..421a553c 100644
--- a/src/util/testdb.c
+++ b/src/util/testdb.c
@@ -32,6 +32,8 @@
#include <alpm.h>
#include <alpm_list.h>
+#define BASENAME "testdb"
+
int str_cmp(const void *s1, const void *s2)
{
return(strcmp(s1, s2));
@@ -145,7 +147,7 @@ int main(int argc, char **argv)
} else if(argc == 3 && strcmp(argv[1], "-b") == 0) {
dbpath = argv[2];
} else {
- fprintf(stderr, "usage: %s -b <pacman db>\n", basename(argv[0]));
+ fprintf(stderr, "usage: %s -b <pacman db>\n", BASENAME);
return(1);
}
diff --git a/src/util/testpkg.c b/src/util/testpkg.c
index 7d844e85..d2679e58 100644
--- a/src/util/testpkg.c
+++ b/src/util/testpkg.c
@@ -27,6 +27,8 @@
#include <alpm.h>
+#define BASENAME "testpkg"
+
static void output_cb(pmloglevel_t level, char *fmt, va_list args)
{
if(strlen(fmt)) {
@@ -45,7 +47,7 @@ int main(int argc, char **argv)
pmpkg_t *pkg = NULL;
if(argc != 2) {
- fprintf(stderr, "usage: %s <package file>\n", basename(argv[0]));
+ fprintf(stderr, "usage: %s <package file>\n", BASENAME);
return(1);
}