summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog12
-rw-r--r--lib-src/ntlib.c8
-rw-r--r--lib-src/ntlib.h7
3 files changed, 19 insertions, 8 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 4838f807d06..b9c6f1318e6 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,15 @@
+2009-03-21 Eli Zaretskii <eliz@gnu.org>
+
+ * 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).
+
2009-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
* emacsclient.c (main): Revert part of last change, so
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index 4ca7ae40aa1..bce4ce10f31 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -119,20 +119,20 @@ cuserid (char * s)
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 @@ getpass (const char * prompt)
}
int
-fchown (int fd, int uid, int gid)
+fchown (int fd, unsigned uid, unsigned gid)
{
return 0;
}
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h
index 4fe492241dd..7f9313c9ec4 100644
--- a/lib-src/ntlib.h
+++ b/lib-src/ntlib.h
@@ -35,11 +35,10 @@ char *getwd (char *dir);
int getppid(void);
char * getlogin ();
char * cuserid (char * s);
-int getuid ();
-int setuid (int uid);
-struct passwd * getpwuid (int uid);
+unsigned getuid ();
+int setuid (unsigned uid);
char * getpass (const char * prompt);
-int fchown (int fd, int uid, int gid);
+int fchown (int fd, unsigned uid, unsigned gid);
#ifndef BSTRING
#define bzero(b, l) memset(b, 0, l)