From db813f25f26d17ba0b5e52411575ff930db7fac3 Mon Sep 17 00:00:00 2001 From: "Thomas Bushnell, BSG" Date: Tue, 3 Sep 1996 22:24:21 +0000 Subject: *** empty log message *** Tue Sep 3 11:16:07 1996 Thomas Bushnell/ n/BSG * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in call to __libc_lock_lock. * sysdeps/mach/hurd/send.c (__send): Declare BUF const. * sysdeps/mach/hurd/sendto.c (sendto): Likewise. * sysdeps/stub/ustat.c: Include . * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm'). --- ChangeLog | 12 ++++++++++++ misc/syslog.c | 2 +- shadow/lckpwdf.c | 2 +- sysdeps/mach/hurd/send.c | 2 +- sysdeps/mach/hurd/sendto.c | 2 +- sysdeps/stub/ustat.c | 1 + 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 70a6b1c944..12724a5fb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Tue Sep 3 11:16:07 1996 Thomas Bushnell/ n/BSG + + * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in + call to __libc_lock_lock. + + * sysdeps/mach/hurd/send.c (__send): Declare BUF const. + * sysdeps/mach/hurd/sendto.c (sendto): Likewise. + + * sysdeps/stub/ustat.c: Include . + + * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm'). + Fri Aug 30 19:55:27 1996 Ulrich Drepper * libio/genops.c: Make _cleanup an alias of _IO_cleanup. diff --git a/misc/syslog.c b/misc/syslog.c index de159da9ee..9db16ca352 100644 --- a/misc/syslog.c +++ b/misc/syslog.c @@ -131,7 +131,7 @@ vsyslog(pri, fmt, ap) __localtime_r (&now, &now_tm)); #else f->__bufp += strftime (f->__bufp, f->__put_limit - f->__bufp, - "%h %e %T ", __localtime_r (&now, &mow_tm)); + "%h %e %T ", __localtime_r (&now, &now_tm)); #endif msgoff = ftell (f); if (LogTag == NULL) diff --git a/shadow/lckpwdf.c b/shadow/lckpwdf.c index fb1c4b2e5e..60cf2eecf7 100644 --- a/shadow/lckpwdf.c +++ b/shadow/lckpwdf.c @@ -157,7 +157,7 @@ __ulckpwdf () else { /* Prevent problems caused by multiple threads. */ - __libc_lock_lock (&lock); + __libc_lock_lock (lock); result = close (lock_fd); diff --git a/sysdeps/mach/hurd/send.c b/sysdeps/mach/hurd/send.c index 17fa66344f..79d76fa367 100644 --- a/sysdeps/mach/hurd/send.c +++ b/sysdeps/mach/hurd/send.c @@ -26,7 +26,7 @@ Cambridge, MA 02139, USA. */ /* Send N bytes of BUF to socket FD. Returns the number sent or -1. */ int DEFUN(__send, (fd, buf, n, flags), - int fd AND PTR buf AND size_t n AND int flags) + int fd AND const PTR buf AND size_t n AND int flags) { error_t err; int wrote; diff --git a/sysdeps/mach/hurd/sendto.c b/sysdeps/mach/hurd/sendto.c index 3c08f198e0..3621cd5dd5 100644 --- a/sysdeps/mach/hurd/sendto.c +++ b/sysdeps/mach/hurd/sendto.c @@ -29,7 +29,7 @@ Cambridge, MA 02139, USA. */ ADDR_LEN bytes long). Returns the number sent, or -1 for errors. */ int DEFUN(sendto, (fd, buf, n, flags, addr, addr_len), - int fd AND PTR buf AND size_t n AND int flags AND + int fd AND const PTR buf AND size_t n AND int flags AND const struct sockaddr_un *addr AND size_t addr_len) { addr_port_t aport; diff --git a/sysdeps/stub/ustat.c b/sysdeps/stub/ustat.c index 775389fb39..c90bd36a9d 100644 --- a/sysdeps/stub/ustat.c +++ b/sysdeps/stub/ustat.c @@ -19,6 +19,7 @@ Cambridge, MA 02139, USA. */ #include #include +#include int ustat (dev, ust) -- cgit 1.4.1