diff options
author | markm <markm@FreeBSD.org> | 2002-06-24 16:35:19 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-06-24 16:35:19 +0000 |
commit | 1f92859c5f2a0e6e86308eff7848cfba628ebcba (patch) | |
tree | f395a9e930f7c0706176673f0216cab6d41f4c49 /usr.bin | |
parent | 8f058b4f92a8cd167524bace0f2b9f989a6fed17 (diff) | |
download | FreeBSD-src-1f92859c5f2a0e6e86308eff7848cfba628ebcba.zip FreeBSD-src-1f92859c5f2a0e6e86308eff7848cfba628ebcba.tar.gz |
Better warnings fixes. Use more sane argument types instead of bogus casts
Submitted by: bde
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/kdump/mkioctls | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/kdump/mkioctls b/usr.bin/kdump/mkioctls index f399350..d1e7bea 100644 --- a/usr.bin/kdump/mkioctls +++ b/usr.bin/kdump/mkioctls @@ -56,12 +56,12 @@ BEGIN { print "#include <stdio.h>" print "#include <cam/cam.h>" print "" - print "const char *ioctlname(register_t val);" + print "const char *ioctlname(u_long val);" print "" print ioctl_includes print "" print "const char *" - print "ioctlname(register_t val)" + print "ioctlname(u_long val)" print "{" print "" if (use_switch) @@ -79,7 +79,7 @@ BEGIN { if (use_switch) printf("\tcase %s:\n\t\treturn(\"%s\");\n", $i, $i); else - printf("\tif (val == (register_t)%s)\n\t\treturn(\"%s\");\n", $i, $i); + printf("\tif (val == %s)\n\t\treturn(\"%s\");\n", $i, $i); } END { |