aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2021-05-01 10:28:01 +0200
committerJan Sucan <jan@jansucan.com>2021-05-01 10:28:01 +0200
commitde4112baf9b1bcfa3c6ee06cbf78f95f1a213b46 (patch)
tree1aed23c1e2359a3f0d0c02c418f072ddb9ed6e01 /main.c
parent7a38545d0b8df7216c1300b379a51fb14374a4fa (diff)
Specify program name and version in the Makefile
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.c b/main.c
index 6968710..ea94921 100644
--- a/main.c
+++ b/main.c
@@ -11,11 +11,16 @@
#include "print.h"
#include "resources.h"
+/* This header file is automatically generated at build time from the Makefile
+ */
+#include "program_info.h"
+
void
usage(int exit_code)
{
- printf("Usage: diff-dd [-s SECTOR_SIZE] [-b BUFFER_SIZE] [INFILE] REFFILE "
- " OUTFILE\n");
+ printf("Usage: %s [-s SECTOR_SIZE] [-b BUFFER_SIZE] [INFILE] REFFILE "
+ "OUTFILE\n",
+ PROGRAM_NAME_STR);
exit(exit_code);
}