diff options
Diffstat (limited to 'misc/ioctltst.c')
-rw-r--r-- | misc/ioctltst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/ioctltst.c b/misc/ioctltst.c index 3e8ea99..bf3286b 100644 --- a/misc/ioctltst.c +++ b/misc/ioctltst.c @@ -10,7 +10,7 @@ * open a socket, get the process group information of the socket, and use the * socket to get the network interface configuration list */ -main() +main(int argc, char *argv[]) { int sock; int ioctl_result; @@ -26,7 +26,7 @@ main() /* use ioctl() to get the process group information */ { int get_process_group; - + ioctl_result = ioctl(sock, SIOCGPGRP, (char *) &get_process_group); if (ioctl_result < 0) @@ -41,7 +41,7 @@ main() /* use ioctl() to get the interface configuration list */ { static struct ifconf ifc; /* init to 0 */ - + ioctl_result = ioctl(sock, SIOCGIFCONF, (char *) &ifc); if (ioctl_result < 0) |