diff lib-src/ntlib.c @ 102670:06ca3efb355b

inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned. inc/pwd.h (struct passwd): Change the types of pw_uid and pw_gid to unsigned. (getpwuid): Argument is now unsigned. uid_t is now unsigned. ntlib.c (setuid): Argument is now unsigned. (getuid): Return value is now unsigned. (getpwuid): Argument is now unsigned. (fchown): UID and GID arguments are now unsigned. ntlib.h (fchown): UID and GID arguments are now unsigned. (getuid): Return value is now unsigned. (setuid): Argument is now unsigned. (getpwuid): Remove prototype (it's declared in nt/inc/pwd.h). w32.c (getpwuid): Change argument type to unsigned. (struct w32_id): Change type of `rid' member to unsigned. (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of argument ID to unsigned. All callers changed. (getuid, geteuid, getgid, getegid): Change return type to unsigned.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 21 Mar 2009 11:29:28 +0000
parents a9f7e446141d
children 1d1d5d9bd884
line wrap: on
line diff
--- a/lib-src/ntlib.c	Sat Mar 21 09:57:30 2009 +0000
+++ b/lib-src/ntlib.c	Sat Mar 21 11:29:28 2009 +0000
@@ -119,20 +119,20 @@
   return name;
 }
 
-int
+unsigned
 getuid ()
 {
   return 0;
 }
 
 int
-setuid (int uid)
+setuid (unsigned uid)
 {
   return 0;
 }
 
 struct passwd *
-getpwuid (int uid)
+getpwuid (unsigned uid)
 {
   return NULL;
 }
@@ -185,7 +185,7 @@
 }
 
 int
-fchown (int fd, int uid, int gid)
+fchown (int fd, unsigned uid, unsigned gid)
 {
   return 0;
 }