aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukiame <fukiame@proton.me>2026-10-03 00:34:49 +0700
committerfukiame <fukiame@proton.me>2026-10-03 23:14:41 +0700
commitfe30c28e155783c4e1a3dc6e12ab6a940a746843 (patch)
tree72cdcf00127f938ba6ccce020213e4453e0297b6
parent8c1c305d00e00516f58010b89e758d7016c21e76 (diff)
downloadslcl-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>
-rw-r--r--usergen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usergen.c b/usergen.c
index 5a0cf3c..53d2ff2 100644
--- a/usergen.c
+++ b/usergen.c
@@ -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(&quota)
|| getmethod(method, sizeof method)
|| !(o = createobj(c, username, hexkey, method, quota)))