summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/main.c
diff options
context:
space:
mode:
authorsef <sef@FreeBSD.org>1997-12-13 03:13:49 +0000
committersef <sef@FreeBSD.org>1997-12-13 03:13:49 +0000
commitf13ddbc86500ce893f62460b62d775089a14aba0 (patch)
tree2ef0d8080b077044d2a0ab73a9b9d1b08d002334 /usr.bin/truss/main.c
parentb51dc6a0ad3ce435d5255b72124d2220a345c748 (diff)
downloadFreeBSD-src-f13ddbc86500ce893f62460b62d775089a14aba0.zip
FreeBSD-src-f13ddbc86500ce893f62460b62d775089a14aba0.tar.gz
Change the ioctls for procfs around a bit; in particular, whever possible,
change from ioctl(fd, PIOC<foo>, &i); to ioctl(fd, PIOC<foo>, i); This is going from the _IOW to _IO ioctl macro. The kernel, procctl, and truss must be in synch for it all to work (not doing so will get errors about inappropriate ioctl's, fortunately). Hopefully I didn't forget anything :).
Diffstat (limited to 'usr.bin/truss/main.c')
-rw-r--r--usr.bin/truss/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c
index 838237a..9f9b4f7 100644
--- a/usr.bin/truss/main.c
+++ b/usr.bin/truss/main.c
@@ -4,7 +4,7 @@
* do a lot of the work :).
*/
/*
- * $Id: main.c,v 1.3 1997/12/06 14:41:41 peter Exp $
+ * $Id: main.c,v 1.4 1997/12/06 17:13:54 sef Exp $
*/
#include <stdio.h>
@@ -196,7 +196,7 @@ main(int ac, char **av) {
break;
}
}
- if (ioctl(Procfd, PIOCCONT, &val) == -1)
+ if (ioctl(Procfd, PIOCCONT, val) == -1)
perror("PIOCCONT");
} while (pfs.why != S_EXIT);
return 0;
OpenPOWER on IntegriCloud