summaryrefslogtreecommitdiff
path: root/lib/libc/compat/include
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>2009-01-20 18:20:47 +0000
committerdrochner <drochner@NetBSD.org>2009-01-20 18:20:47 +0000
commitd767912be3d7c4c64f9b0dc0a7cc3795b7da460c (patch)
treec353502adcbc3f357f94e6643f6162faf326496d /lib/libc/compat/include
parent68d230573c6a98de154a95e01d5c50ccc5190e50 (diff)
Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern. This avoids 64-bit arithmetics and 64-bit printf formats in parts of the kernel where it is not really useful, and helps clarity.
Diffstat (limited to 'lib/libc/compat/include')
-rw-r--r--lib/libc/compat/include/stdlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/compat/include/stdlib.h b/lib/libc/compat/include/stdlib.h
index b403214602b..3b40726e20c 100644
--- a/lib/libc/compat/include/stdlib.h
+++ b/lib/libc/compat/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $NetBSD: stdlib.h,v 1.2 2009/01/11 02:46:25 christos Exp $ */
+/* $NetBSD: stdlib.h,v 1.3 2009/01/20 18:20:48 drochner Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -41,7 +41,7 @@ int __unsetenv13(const char *);
__aconst char *devname(int32_t, mode_t);
__aconst char *__devname50(dev_t, mode_t);
int32_t getdevmajor(const char *, mode_t);
-dev_t __getdevmajor50(const char *, mode_t);
+devmajor_t __getdevmajor50(const char *, mode_t);
__END_DECLS