aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Villemoes <rv@rasmusvillemoes.dk>2014-09-20 14:04:52 +0200
committerOndřej Bílka <neleai@seznam.cz>2014-09-20 14:05:49 +0200
commit69eb9a183c19e8739065e430758e4d3a2c5e4f1a (patch)
tree9c0eb970bd27cc2a39e06c3d0ab60283c4225650
parent20e5a5f773ee800b2d7ff3e24156a8b024f6bf46 (diff)
downloadtermbaud-69eb9a183c19e8739065e430758e4d3a2c5e4f1a.tar.gz
termbaud-69eb9a183c19e8739065e430758e4d3a2c5e4f1a.tar.xz
termbaud-69eb9a183c19e8739065e430758e4d3a2c5e4f1a.zip
Fix prototype of eventfd.
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/unix/sysv/linux/eventfd.c2
-rw-r--r--sysdeps/unix/sysv/linux/hppa/sys/eventfd.h2
-rw-r--r--sysdeps/unix/sysv/linux/sys/eventfd.h2
4 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b5a2b0a47a..eaa16ced19d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-09-20 Rasmus Villemoes <rv@rasmusvillemoes.dk>
+
+ * sysdeps/unix/sysv/linux/eventfd.c:
+ Make first argument unsigned.
+ * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
+ * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
+
2014-09-20 Ondřej Bílka <neleai@seznam.cz>
* socket/recvmmsg.c (recvmmsg): Drop const argument.
diff --git a/sysdeps/unix/sysv/linux/eventfd.c b/sysdeps/unix/sysv/linux/eventfd.c
index 425c8112cd5..83da67f47ac 100644
--- a/sysdeps/unix/sysv/linux/eventfd.c
+++ b/sysdeps/unix/sysv/linux/eventfd.c
@@ -22,7 +22,7 @@
int
-eventfd (int count, int flags)
+eventfd (unsigned int count, int flags)
{
#ifdef __NR_eventfd2
int res = INLINE_SYSCALL (eventfd2, 2, count, flags);
diff --git a/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h b/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
index 2d198a8f5bd..a3c340e79af 100644
--- a/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
+++ b/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
@@ -40,7 +40,7 @@ __BEGIN_DECLS
/* Return file descriptor for generic event channel. Set initial
value to COUNT. */
-extern int eventfd (int __count, int __flags) __THROW;
+extern int eventfd (unsigned int __count, int __flags) __THROW;
/* Read event counter and possibly wait for events. */
extern int eventfd_read (int __fd, eventfd_t *__value);
diff --git a/sysdeps/unix/sysv/linux/sys/eventfd.h b/sysdeps/unix/sysv/linux/sys/eventfd.h
index 7f977ed2570..0806891f891 100644
--- a/sysdeps/unix/sysv/linux/sys/eventfd.h
+++ b/sysdeps/unix/sysv/linux/sys/eventfd.h
@@ -31,7 +31,7 @@ __BEGIN_DECLS
/* Return file descriptor for generic event channel. Set initial
value to COUNT. */
-extern int eventfd (int __count, int __flags) __THROW;
+extern int eventfd (unsigned int __count, int __flags) __THROW;
/* Read event counter and possibly wait for events. */
extern int eventfd_read (int __fd, eventfd_t *__value);