diff options
author | lu4nx <lx@shellcodes.org> | 2022-11-26 21:02:19 +0800 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-11-26 16:28:45 +0200 |
commit | 6e824030131893c50c65a45d530ee38113708f45 (patch) | |
tree | 468fb72d352e67e834e83d109329395d01fef83c /lib-src | |
parent | 78ccae44474412fee13b50b391394f4c9bed84af (diff) | |
download | emacs-6e824030131893c50c65a45d530ee38113708f45.tar.gz |
; Clean up unused function: cuserid
* lib-src/ntlib.c (cuserid): Remove unused function.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/ntlib.c | 9 | ||||
-rw-r--r-- | lib-src/ntlib.h | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c index ee21abc7230..e0d5f0c6b8e 100644 --- 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 2cd2b1d1079..ff85beeaa6a 100644 --- 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); |