| 1 |
diff -ur psutils-1.23.orig/psutil.c psutils-1.23/psutil.c |
| 2 |
--- psutils-1.23.orig/psutil.c 2014-01-15 20:08:26.000000000 +0100 |
| 3 |
+++ psutils-1.23/psutil.c 2014-01-16 08:56:23.000000000 +0100 |
| 4 |
@@ -18,12 +18,12 @@ |
| 5 |
#include <sys/stat.h> |
| 6 |
#include <stdio.h> |
| 7 |
|
| 8 |
+#include "progname.h" |
| 9 |
#include "xvasprintf.h" |
| 10 |
#include "verror.h" |
| 11 |
|
| 12 |
#define iscomment(x,y) (strncmp(x,y,strlen(y)) == 0) |
| 13 |
|
| 14 |
-char *program; |
| 15 |
int pages; |
| 16 |
int verbose; |
| 17 |
FILE *infile; |
| 18 |
@@ -44,7 +44,7 @@ |
| 19 |
|
| 20 |
_Noreturn void usage(void) |
| 21 |
{ |
| 22 |
- fprintf(stderr, "%s %s\n%sUsage: %s %s", program, PACKAGE_VERSION, COPYRIGHT_STRING, program, syntax); |
| 23 |
+ fprintf(stderr, "%s %s\n%sUsage: %s %s", program_name, PACKAGE_VERSION, COPYRIGHT_STRING, program_name, syntax); |
| 24 |
exit(1); |
| 25 |
} |
| 26 |
|