Small cleanups.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3136 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-05-03 13:44:56 +00:00
parent f78d32a251
commit 8b75b64e81
2 changed files with 5 additions and 12 deletions
+2 -4
View File
@@ -32,12 +32,11 @@
*/ */
#include <cdefs.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
int int
main(int argc , char *argv[]) main(int argc , char *argv[])
{ {
@@ -47,8 +46,7 @@ main(int argc , char *argv[])
if (*++argv && !strcmp(*argv, "-n")) { if (*++argv && !strcmp(*argv, "-n")) {
++argv; ++argv;
nflag = 1; nflag = 1;
} } else
else
nflag = 0; nflag = 0;
while (argv[0] != NULL) { while (argv[0] != NULL) {
+3 -8
View File
@@ -1,5 +1,4 @@
/*- /* Copyright (c) 1993
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -31,9 +30,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include <ktypes.h> #include <sys/types.h>
#include <cdefs.h>
//#include <sys/param.h> //#include <sys/param.h>
#include <sysctl.h> #include <sysctl.h>
@@ -47,9 +44,7 @@
void usage(void); void usage(void);
int int
main(argc, argv) main(int argc, char **argv)
int argc;
char *argv[];
{ {
#define MFLAG 0x01 #define MFLAG 0x01