From 1e5390a3d912e09764e4e9f5545181bbc06d2567 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Sun, 9 Mar 2014 20:12:01 +0800 Subject: [PATCH] Usermode/login - Code cleanup --- Usermode/Applications/login_src/main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); -- 2.20.1