From 18d3a03bd4e998a54ad07b06d9b9f36de2c11315 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 8 Feb 2005 20:55:18 +0000 Subject: [PATCH] * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid members to uid_t and gid_t according to SUSv3. * libc/include/sys/time.h (utimes): Change second parameter to const according to SUSv3. --- newlib/ChangeLog | 7 +++++++ newlib/libc/include/pwd.h | 4 ++-- newlib/libc/include/sys/time.h | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index f97797f51..aca552fb7 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2005-02-08 Corinna Vinschen + + * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid + members to uid_t and gid_t according to SUSv3. + * libc/include/sys/time.h (utimes): Change second parameter + to const according to SUSv3. + 2005-02-07 Antony King * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is diff --git a/newlib/libc/include/pwd.h b/newlib/libc/include/pwd.h index 27b21f877..1526abfb6 100644 --- a/newlib/libc/include/pwd.h +++ b/newlib/libc/include/pwd.h @@ -50,8 +50,8 @@ extern "C" { struct passwd { char *pw_name; /* user name */ char *pw_passwd; /* encrypted password */ - int pw_uid; /* user uid */ - int pw_gid; /* user gid */ + uid_t pw_uid; /* user uid */ + gid_t pw_gid; /* user gid */ char *pw_comment; /* comment */ char *pw_gecos; /* Honeywell login info */ char *pw_dir; /* home directory */ diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 20f2903c3..4771f5798 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -72,7 +72,7 @@ struct itimerval { int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z)); int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); -int _EXFUN(utimes, (const char *__path, struct timeval *__tvp)); +int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp)); int _EXFUN(getitimer, (int __which, struct itimerval *__value)); int _EXFUN(setitimer, (int __which, const struct itimerval *__value, struct itimerval *__ovalue));