40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
$OpenBSD: patch-sdd_sdd_c,v 1.1 2001/07/19 22:12:07 naddy Exp $
|
|
--- sdd/sdd.c.orig Tue Jul 17 14:22:28 2001
|
|
+++ sdd/sdd.c Thu Jul 19 23:43:29 2001
|
|
@@ -1542,11 +1542,13 @@ LOCAL void
|
|
usage(ex)
|
|
int ex;
|
|
{
|
|
- error("\
|
|
+ FILE *fp = ex ? stderr : stdout;
|
|
+
|
|
+ fprintf(fp, "\
|
|
Usage: sdd [option=value] [-flag]\n\
|
|
Options:\n\
|
|
");
|
|
- error ("\
|
|
+ fprintf(fp, "\
|
|
if=name Read input from name instead of stdin\n\
|
|
of=name Write output to name instead of stdout\n\
|
|
-inull Do not read input from file (use null char's)\n\
|
|
@@ -1560,7 +1562,7 @@ Options:\n\
|
|
seek=#,skip=# Seek/skip # bytes on input/output before starting\n\
|
|
ivseek=#,ovseek=# Seek # bytes on input/output volumes before starting\n\
|
|
");
|
|
- error("\
|
|
+ fprintf(fp, "\
|
|
-notrunc Do not trunctate existing output file\n\
|
|
-pg Print a dot on each write to indicate progress\n\
|
|
-noerror Do not stop on error\n\
|
|
@@ -1571,8 +1573,8 @@ Options:\n\
|
|
-fill Fill each record with zeros up to obs\n\
|
|
-swab,-block,-unblock,-lcase,-ucase,-ascii,-ebcdic,-ibm\n\
|
|
");
|
|
- error("\t-help\t\t print this online help\n");
|
|
- error("\t-version\t print version number\n");
|
|
+ fprintf(fp, "\t-help\t\t print this online help\n");
|
|
+ fprintf(fp, "\t-version\t print version number\n");
|
|
exit(ex);
|
|
}
|
|
|