aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-02-16 06:22:14 +0000
committerUlrich Drepper <drepper@redhat.com>2007-02-16 06:22:14 +0000
commit987f54c67c86bbb43e8d88fcaf914bdb5b3dc846 (patch)
tree78d1f32df2aaf5c0cebe207e82c2923740d28dc1
parent06c17c788b6cbd81e4fceab455f29feb7f3043b2 (diff)
downloadglibc-987f54c67c86bbb43e8d88fcaf914bdb5b3dc846.zip
glibc-987f54c67c86bbb43e8d88fcaf914bdb5b3dc846.tar.gz
glibc-987f54c67c86bbb43e8d88fcaf914bdb5b3dc846.tar.bz2
* sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
change: don't pass NULL in place of an integer.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/send.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 52058a1..0398349 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-15 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
+ change: don't pass NULL in place of an integer.
+
2007-02-02 Bruno Haible <bruno@clisp.org>
[BZ #3954]
diff --git a/sysdeps/unix/sysv/linux/x86_64/send.c b/sysdeps/unix/sysv/linux/x86_64/send.c
index c484ce6..fc76831 100644
--- a/sysdeps/unix/sysv/linux/x86_64/send.c
+++ b/sysdeps/unix/sysv/linux/x86_64/send.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -25,11 +25,12 @@ ssize_t
__libc_send (int fd, const void *buf, size_t n, int flags)
{
if (SINGLE_THREAD_P)
- return INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, NULL, NULL);
+ return INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, NULL, (size_t) 0);
int oldtype = LIBC_CANCEL_ASYNC ();
- ssize_t result = INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, NULL, NULL);
+ ssize_t result = INLINE_SYSCALL (sendto, 6, fd, buf, n, flags, NULL,
+ (size_t) 0);
LIBC_CANCEL_RESET (oldtype);