|
Line 0
Link Here
|
|
|
1 |
--- main.c.orig Mon Oct 20 17:59:26 2003 |
| 2 |
+++ main.c Mon Oct 20 18:02:56 2003 |
| 3 |
@@ -1,9 +1,9 @@ |
| 4 |
/* program that prints IP address ranges */ |
| 5 |
+#include "prips.h" |
| 6 |
#include <stdio.h> |
| 7 |
#include <stdlib.h> |
| 8 |
#include <string.h> |
| 9 |
#include <unistd.h> |
| 10 |
-#include "prips.h" |
| 11 |
#include "except.h" |
| 12 |
|
| 13 |
typedef enum { |
| 14 |
@@ -16,11 +16,11 @@ |
| 15 |
|
| 16 |
const char *MAINTAINER = "dan@vertekcorp.com"; |
| 17 |
const char *VERSION = |
| 18 |
- "\rprips 0.9.4 |
| 19 |
- \rThis program comes with NO WARRANTY, |
| 20 |
- \rto the extent permitted by law. |
| 21 |
- \rYou may redistribute copies under |
| 22 |
- \rthe terms of the GNU General Public License.\n"; |
| 23 |
+ "\rprips 0.9.4\n"\ |
| 24 |
+" \rThis program comes with NO WARRANTY,\n"\ |
| 25 |
+" \rto the extent permitted by law.\n"\ |
| 26 |
+" \rYou may redistribute copies under\n"\ |
| 27 |
+" \rthe terms of the GNU General Public License.\n"; |
| 28 |
|
| 29 |
void usage(char *prog); |
| 30 |
AddrFormat get_format(char *format); |
| 31 |
@@ -166,14 +166,13 @@ |
| 32 |
|
| 33 |
void usage(char *prog) |
| 34 |
{ |
| 35 |
- fprintf(stderr, "usage: %s [options] <start end | CIDR block> |
| 36 |
- -c print range in CIDR notation |
| 37 |
- -d <x> set the delimeter 'x' where 0 =< x =< 255 |
| 38 |
- -f <x> set the format of addresses (hex, dec, or dot) |
| 39 |
- -i <x> set the increment to 'x' |
| 40 |
- -e <x.x.x,x.x> e.g. -e ..4. will not print 192.168.4.[0-255] |
| 41 |
- |
| 42 |
- \rReport bugs to %s\n", |
| 43 |
+ fprintf(stderr, "usage: %s [options] <start end | CIDR block>\n"\ |
| 44 |
+" -c print range in CIDR notation\n"\ |
| 45 |
+" -d <x> set the delimeter 'x' where 0 =< x =< 255\n"\ |
| 46 |
+" -f <x> set the format of addresses (hex, dec, or dot)\n"\ |
| 47 |
+" -i <x> set the increment to 'x'\n"\ |
| 48 |
+" -e <x.x.x,x.x> e.g. -e ..4. will not print 192.168.4.[0-255]\n\n"\ |
| 49 |
+" \rReport bugs to %s\n", |
| 50 |
prog, MAINTAINER); |
| 51 |
} |
| 52 |
|