diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-03-15 18:21:21 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-03-15 18:21:21 +0000 |
commit | 624fbdfab319528ea19f8250146d43b17f40f5ac (patch) | |
tree | acadc2eee6812a185d7c9550083c0f739990f1d0 | |
parent | de0519636e72969a9359cf27a32e00375235e343 (diff) |
Oops. Adapt to one more change in PT_IO.
-rw-r--r-- | usr.bin/pmdb/pmdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/pmdb/pmdb.c b/usr.bin/pmdb/pmdb.c index 989632730b3..cecfff29b3c 100644 --- a/usr.bin/pmdb/pmdb.c +++ b/usr.bin/pmdb/pmdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmdb.c,v 1.3 2002/03/15 18:04:41 art Exp $ */ +/* $OpenBSD: pmdb.c,v 1.4 2002/03/15 18:21:20 art Exp $ */ /* * Copyright (c) 2002 Artur Grabowski <art@openbsd.org> * All rights reserved. @@ -184,7 +184,7 @@ read_from_pid(pid_t pid, off_t from, void *to, size_t size) piod.piod_addr = to; piod.piod_len = size; - return (ptrace(PT_IO, pid, (caddr_t)&piod, 0) != size); + return (ptrace(PT_IO, pid, (caddr_t)&piod, 0)); } @@ -198,7 +198,7 @@ write_to_pid(pid_t pid, off_t to, void *from, size_t size) piod.piod_addr = from; piod.piod_len = size; - return (ptrace(PT_IO, pid, (caddr_t)&piod, 0) != size); + return (ptrace(PT_IO, pid, (caddr_t)&piod, 0)); } static int |