summaryrefslogtreecommitdiffstats
path: root/usr.bin/pkill/pkill.c
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-03-26 00:36:27 +0000
committergad <gad@FreeBSD.org>2004-03-26 00:36:27 +0000
commitcdcabcc0585317472ce26df2c92d9cc9ec497e72 (patch)
tree42c99be93b778543de817187d8d8c8873a29c809 /usr.bin/pkill/pkill.c
parentf1cfebc0c51a79f28cad247c5eac14717a43347f (diff)
downloadFreeBSD-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/pkill.c')
-rw-r--r--usr.bin/pkill/pkill.c3
1 files changed, 2 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud