* libc/unix/getut.c (utmpname): added _CONST to reflect common use
and prototype in cygwin's utmp.h
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#include <unistd.h>
|
||||
#include <utmp.h>
|
||||
#include <_syslist.h>
|
||||
#include <_ansi.h>
|
||||
|
||||
static int utmp_fd = -2;
|
||||
static char *utmp_file = UTMP_FILE;
|
||||
@ -26,7 +27,7 @@ endutent ()
|
||||
}
|
||||
|
||||
void
|
||||
utmpname (char *file)
|
||||
utmpname (_CONST char *file)
|
||||
{
|
||||
extern char *strdup (char *);
|
||||
|
||||
|
Reference in New Issue
Block a user