summaryrefslogtreecommitdiff
path: root/include/stdlib.h
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 /include/stdlib.h
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 'include/stdlib.h')
-rw-r--r--include/stdlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 65f92d82b30..7f929bd94f5 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $NetBSD: stdlib.h,v 1.86 2009/01/11 03:04:12 christos Exp $ */
+/* $NetBSD: stdlib.h,v 1.87 2009/01/20 18:20:47 drochner Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -281,7 +281,7 @@ int humanize_number(char *, size_t, int64_t, const char *, int, int);
int dehumanize_number(const char *, int64_t *);
#ifndef __LIBC12_SOURCE__
-dev_t getdevmajor(const char *, mode_t) __RENAME(__getdevmajor50);
+devmajor_t getdevmajor(const char *, mode_t) __RENAME(__getdevmajor50);
#endif
int getloadavg(double [], int);