summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/create_module.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-22 01:04:30 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:31 +0200
commit95b2df38cb69face8137a8b1daf0e7113c33c274 (patch)
treea90eb5a52a4073848090a58c2f9a005188f5e768 /libc/sysdeps/linux/common/create_module.c
parent47adeb6a1c9f33bbde7598d6cb2f5c5c37afdc71 (diff)
clock_{g,s}ettime.c,{create,delete}_module.c: cleanup
Do not include unneeded headers. Move headers to the needed place. Fix a comment typo. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/create_module.c')
-rw-r--r--libc/sysdeps/linux/common/create_module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/create_module.c b/libc/sysdeps/linux/common/create_module.c
index ddd7c4cff..5bded5636 100644
--- a/libc/sysdeps/linux/common/create_module.c
+++ b/libc/sysdeps/linux/common/create_module.c
@@ -7,10 +7,10 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#include <errno.h>
-#include <unistd.h>
#include <features.h>
-#include <sys/types.h>
+#define __need_size_t
+#include <stddef.h>
+#include <errno.h>
#include <sys/syscall.h>
#ifdef __NR_create_module
@@ -22,7 +22,7 @@ unsigned long create_module(const char *name, size_t size);
static __inline__ _syscall2(long, __create_module, const char *, name, size_t, size)
/* By checking the value of errno, we know if we have been fooled
* by the syscall2 macro making a very high address look like a
- * negative, so we we fix it up here. */
+ * negative, so we fix it up here. */
unsigned long create_module(const char *name, size_t size)
{
long ret = __create_module(name, size);