This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: missing "const" for libc/unix/getut.c:utmpname


DJ Delorie wrote:
> Could you add a ChangeLog entry to your patch also? (not a patch to
> ChangeLog, but a separate paste-able ChangeLog entry).

Okay, here it is.

- Werner

---------------------------------- ChangeLog ----------------------------------

2000-08-22  Werner Almesberger  <Werner.Almesberger@epfl.ch>

        * added _CONST to libc/unix/getut.c:utmpname to reflect common
        use and prototype in libc/sys/cygwin/sys/utmp.h:utmpname
        
------------------------------------ patch ------------------------------------

--- orig/newlib/libc/unix/getut.c	Mon Aug 21 07:02:30 2000
+++ src/newlib/libc/unix/getut.c	Tue Aug 22 14:57:23 2000
@@ -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 @@
 }
 
 void
-utmpname (char *file)
+utmpname (_CONST char *file)
 {
   extern char *strdup (char *);
 
-- 
  _________________________________________________________________________
 / Werner Almesberger, ICA, EPFL, CH       werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]