projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78ccae4
)
; Clean up unused function: cuserid
author
lu4nx
<lx@shellcodes.org>
Sat, 26 Nov 2022 13:02:19 +0000
(21:02 +0800)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 26 Nov 2022 14:28:45 +0000
(16:28 +0200)
* lib-src/ntlib.c (cuserid): Remove unused function.
lib-src/ntlib.c
patch
|
blob
|
history
lib-src/ntlib.h
patch
|
blob
|
history
diff --git
a/lib-src/ntlib.c
b/lib-src/ntlib.c
index ee21abc723095620cdc793bad1954b8eba3b6e95..e0d5f0c6b8eb04e97f897391afef6239b33ee6ea 100644
(file)
--- a/
lib-src/ntlib.c
+++ b/
lib-src/ntlib.c
@@
-138,15
+138,6
@@
getlogin (void)
return NULL;
}
-char *
-cuserid (char * s)
-{
- char * name = getlogin ();
- if (s)
- return strcpy (s, name ? name : "");
- return name;
-}
-
unsigned
getuid (void)
{
diff --git
a/lib-src/ntlib.h
b/lib-src/ntlib.h
index 2cd2b1d1079c194652bdf828a5df6285f3fa63ec..ff85beeaa6aab53ca3615e845e5d47f462721aae 100644
(file)
--- a/
lib-src/ntlib.h
+++ b/
lib-src/ntlib.h
@@
-33,7
+33,6
@@
unsigned sleep (unsigned seconds);
char *getwd (char *dir);
int getppid (void);
char * getlogin (void);
-char * cuserid (char * s);
unsigned getegid (void);
unsigned getgid (void);
int setuid (unsigned uid);