diff options
| author | fukiame <fukiame@proton.me> | 2026-10-03 00:34:49 +0700 |
|---|---|---|
| committer | fukiame <fukiame@proton.me> | 2026-10-03 23:14:41 +0700 |
| commit | fe30c28e155783c4e1a3dc6e12ab6a940a746843 (patch) | |
| tree | 72cdcf00127f938ba6ccce020213e4453e0297b6 /usergen.c | |
| parent | 8c1c305d00e00516f58010b89e758d7016c21e76 (diff) | |
| download | slcl-fe30c28e155783c4e1a3dc6e12ab6a940a746843.tar.gz | |
usergen: rename getpass
usergen.c:154:12: error: conflicting types for 'getpass'
154 | static int getpass(char *const password, const size_t n)
| ^
/data/data/com.termux/files/usr/bin/../../usr/include/unistd.h:533:25: note: previous definition is
here
533 | static __inline__ char* getpass(const char* prompt) {
| ^
usergen.c:511:30: error: too many arguments to function call, expected single argument 'prompt',
have 2 arguments
511 | || getpass(password, sizeof password)
| ~~~~~~~ ^~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/bin/../../usr/include/unistd.h:533:25: note: 'getpass' declared
here
533 | static __inline__ char* getpass(const char* prompt) {
| ^ ~~~~~~~~~~~~~~~~~~
2 errors generated.
Signed-off-by: fukiame <fukiame@proton.me>
Diffstat (limited to 'usergen.c')
| -rw-r--r-- | usergen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -151,7 +151,7 @@ static int checkuser(const char *const username, const cJSON *const c) return 0; } -static int getpass(char *const password, const size_t n) +static int ugetpass(char *const password, const size_t n) { int ret = -1; struct termios t, ne; @@ -508,7 +508,7 @@ int main(int argc, char *argv[]) if (getuser(username, sizeof username) || checkuser(username, c) - || getpass(password, sizeof password) + || ugetpass(password, sizeof password) || getquota("a) || getmethod(method, sizeof method) || !(o = createobj(c, username, hexkey, method, quota))) |
