From: John Hodge (sonata) Date: Sun, 9 Mar 2014 12:12:01 +0000 (+0800) Subject: Usermode/login - Code cleanup X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=1e5390a3d912e09764e4e9f5545181bbc06d2567;p=tpg%2Facess2.git Usermode/login - Code cleanup --- diff --git a/Usermode/Applications/login_src/main.c b/Usermode/Applications/login_src/main.c index 86b18842..23d93294 100644 --- a/Usermode/Applications/login_src/main.c +++ b/Usermode/Applications/login_src/main.c @@ -9,8 +9,8 @@ #define BUFLEN 1024 // === PROTOTYPES === -char *GetUsername(); -char *GetPassword(); +char *GetUsername(void); +char *GetPassword(void); // === CODE === int main(int argc, char *argv[]) @@ -130,10 +130,6 @@ char *_GetString(int bEcho) */ char *GetUsername() { - char ret[BUFLEN] = {0}; - int pos = 0; - char ch; - // Prompt the user printf("Username: "); fflush(stdout);