* libc/unix/getut.c (utmpname): added _CONST to reflect common use

and prototype in cygwin's utmp.h
This commit is contained in:
DJ Delorie 2000-08-22 19:04:49 +00:00
parent e136f5c0e0
commit 644b7f266b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-08-22 Werner Almesberger <Werner.Almesberger@epfl.ch>
* libc/unix/getut.c (utmpname): added _CONST to reflect common use
and prototype in cygwin's utmp.h
2000-08-16 Eric Fifer <efifer@sanwaint.com> 2000-08-16 Eric Fifer <efifer@sanwaint.com>
* libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1 * libc/stdio/vfprintf.c (_vfprintf_r): suppress . with "%.0f", 0.1

View File

@ -2,6 +2,7 @@
#include <unistd.h> #include <unistd.h>
#include <utmp.h> #include <utmp.h>
#include <_syslist.h> #include <_syslist.h>
#include <_ansi.h>
static int utmp_fd = -2; static int utmp_fd = -2;
static char *utmp_file = UTMP_FILE; static char *utmp_file = UTMP_FILE;
@ -26,7 +27,7 @@ endutent ()
} }
void void
utmpname (char *file) utmpname (_CONST char *file)
{ {
extern char *strdup (char *); extern char *strdup (char *);