~sircmpwn/ctools

e74102d65e3256c2fd21928d4a19f1891bf7e46e — Drew DeVault 2 years ago 7d88490
link, unlink: normalize usage strings
2 files changed, 8 insertions(+), 2 deletions(-)

M src/link.c
M src/unlink.c
M src/link.c => src/link.c +7 -1
@@ 1,11 1,17 @@
#include <stdio.h>
#include <unistd.h>

static void
usage(void)
{
	fprintf(stderr, "usage: link file1 file2\n");
}

int
main(int argc, char *argv[])
{
	if (getopt(argc, argv, "") != -1 || optind != argc - 2) {
		fprintf(stderr, "usage: link file1 file2\n");
		usage();
		return 1;
	}


M src/unlink.c => src/unlink.c +1 -1
@@ 4,7 4,7 @@
static void
usage(void)
{
	fprintf(stderr, "usage: unlink <file>\n");
	fprintf(stderr, "usage: unlink file\n");
}

int