diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-26 19:47:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-26 19:47:11 +0000 |
commit | 7a14bc5682258d5115d7b31007e360bed6a6e64c (patch) | |
tree | 51f9456e5d30d3776b1afcf96fde1858fb0d85c6 /usr.sbin/rdconfig/rdconfig.c | |
parent | 5c9e03e42bdf196412f7cdad89ef38833f6cdf37 (diff) |
strict proto cleanups
Diffstat (limited to 'usr.sbin/rdconfig/rdconfig.c')
-rw-r--r-- | usr.sbin/rdconfig/rdconfig.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.sbin/rdconfig/rdconfig.c b/usr.sbin/rdconfig/rdconfig.c index 1f883370f0d..0255ba2e0fb 100644 --- a/usr.sbin/rdconfig/rdconfig.c +++ b/usr.sbin/rdconfig/rdconfig.c @@ -47,16 +47,14 @@ #include <dev/ramdisk.h> int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { struct rd_conf rd; int nblks, fd, error; if (argc <= 2) { fprintf(stderr, "usage: rdconfig <device> <%d-byte-blocks>\n", - DEV_BSIZE); + DEV_BSIZE); exit(1); } @@ -73,10 +71,8 @@ main(argc, argv) exit(1); } - rd.rd_addr = mmap(NULL, rd.rd_size, - PROT_READ | PROT_WRITE, - MAP_ANON | MAP_PRIVATE, - -1, 0); + rd.rd_addr = mmap(NULL, rd.rd_size, PROT_READ | PROT_WRITE, + MAP_ANON | MAP_PRIVATE, -1, 0); if (rd.rd_addr == MAP_FAILED) { perror("mmap"); exit(1); |