From 03d7d5f0c4f026dfd9de6d005038c306183effbe Mon Sep 17 00:00:00 2001 From: millert <> Date: Sat, 21 Dec 1996 22:23:43 +0000 Subject: -Wall madness. --- src/regress/lib/libc/regex/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/regress/lib/libc/regex/main.c') diff --git a/src/regress/lib/libc/regex/main.c b/src/regress/lib/libc/regex/main.c index 8d88a8b9b8..add5e8be10 100644 --- a/src/regress/lib/libc/regex/main.c +++ b/src/regress/lib/libc/regex/main.c @@ -1,10 +1,13 @@ +/* $OpenBSD: main.c,v 1.2 1996/12/21 22:23:42 millert Exp $ */ /* $NetBSD: main.c,v 1.2 1995/04/20 22:39:51 cgd Exp $ */ #include +#include #include #include #include #include +#include #include "main.ih" @@ -25,6 +28,7 @@ extern void regprint(); /* - main - do the simple case, hand off to regress() for regression */ +int main(argc, argv) int argc; char *argv[]; @@ -102,10 +106,10 @@ char *argv[]; exit(status); } if (!(copts®_NOSUB)) { - len = (int)(subs[0].rm_eo - subs[0].rm_so); + len = (size_t)(subs[0].rm_eo - subs[0].rm_so); if (subs[0].rm_so != -1) { if (len != 0) - printf("match `%.*s'\n", len, + printf("match `%.*s'\n", (int)len, argv[optind] + subs[0].rm_so); else printf("match `'@%.1s\n", @@ -501,7 +505,6 @@ efind(name) char *name; { static char efbuf[100]; - size_t n; regex_t re; sprintf(efbuf, "REG_%s", name); -- cgit v1.2.3-55-g6feb