diff options
author | gad <gad@FreeBSD.org> | 2004-03-26 00:36:27 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-03-26 00:36:27 +0000 |
commit | cdcabcc0585317472ce26df2c92d9cc9ec497e72 (patch) | |
tree | 42c99be93b778543de817187d8d8c8873a29c809 /usr.bin/pkill | |
parent | f1cfebc0c51a79f28cad247c5eac14717a43347f (diff) | |
download | FreeBSD-src-cdcabcc0585317472ce26df2c92d9cc9ec497e72.zip FreeBSD-src-cdcabcc0585317472ce26df2c92d9cc9ec497e72.tar.gz |
Add a cast to get this to compile with WARNS=5 on sparc64. This is
needed because off_t == __int64_t, while size_t == __uint64_t. This
also compiles with WARNS=5 on amd64, but I haven't tested the other
platforms yet.
Diffstat (limited to 'usr.bin/pkill')
-rw-r--r-- | usr.bin/pkill/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/pkill/pkill.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/pkill/Makefile b/usr.bin/pkill/Makefile index 3f93572..698cfe7 100644 --- a/usr.bin/pkill/Makefile +++ b/usr.bin/pkill/Makefile @@ -4,7 +4,7 @@ PROG= pkill SRCS= pkill.c MAN= pkill.1 -WARNS?= 1 +WARNS?= 5 LDADD+= -lkvm DPADD+= ${LIBKVM} diff --git a/usr.bin/pkill/pkill.c b/usr.bin/pkill/pkill.c index 7922739..a9e2cb0 100644 --- a/usr.bin/pkill/pkill.c +++ b/usr.bin/pkill/pkill.c @@ -309,7 +309,8 @@ main(int argc, char **argv) if (rv == 0) { if (fullmatch) { if (regmatch.rm_so == 0 && - regmatch.rm_eo == strlen(mstr)) + regmatch.rm_eo == + (off_t)strlen(mstr)) selected[i] = 1; } else selected[i] = 1; |