summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libc/regex/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/regress/lib/libc/regex/main.c b/src/regress/lib/libc/regex/main.c
index 73334fa4ce..d6787d88fc 100644
--- a/src/regress/lib/libc/regex/main.c
+++ b/src/regress/lib/libc/regex/main.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: main.c,v 1.9 2016/05/26 14:17:58 schwarze Exp $ */ 1/* $OpenBSD: main.c,v 1.10 2016/07/13 06:17:11 guenther Exp $ */
2/* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */ 2/* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */
3 3
4#include <stdio.h> 4#include <stdio.h>
@@ -46,20 +46,20 @@ main(int argc, char *argv[])
46 46
47 progname = argv[0]; 47 progname = argv[0];
48 48
49 while ((c = getopt(argc, argv, "c:e:S:E:x")) != -1) 49 while ((c = getopt(argc, argv, "c:E:e:S:x")) != -1)
50 switch (c) { 50 switch (c) {
51 case 'c': /* compile options */ 51 case 'c': /* compile options */
52 copts = options('c', optarg); 52 copts = options('c', optarg);
53 break; 53 break;
54 case 'E': /* end offset */
55 endoff = (regoff_t)atoi(optarg);
56 break;
54 case 'e': /* execute options */ 57 case 'e': /* execute options */
55 eopts = options('e', optarg); 58 eopts = options('e', optarg);
56 break; 59 break;
57 case 'S': /* start offset */ 60 case 'S': /* start offset */
58 startoff = (regoff_t)atoi(optarg); 61 startoff = (regoff_t)atoi(optarg);
59 break; 62 break;
60 case 'E': /* end offset */
61 endoff = (regoff_t)atoi(optarg);
62 break;
63 case 'x': /* Debugging. */ 63 case 'x': /* Debugging. */
64 debug++; 64 debug++;
65 break; 65 break;
@@ -70,7 +70,7 @@ main(int argc, char *argv[])
70 } 70 }
71 if (errflg) { 71 if (errflg) {
72 fprintf(stderr, "usage: %s ", progname); 72 fprintf(stderr, "usage: %s ", progname);
73 fprintf(stderr, "[-c copt][-C][-d] [re]\n"); 73 fprintf(stderr, "[-x] [-c copt] [-E endoff] [-e eopt] [-S startoff] [re]\n");
74 exit(2); 74 exit(2);
75 } 75 }
76 76