From 975debfed4413464492f5d93b016abeb67be1126 Mon Sep 17 00:00:00 2001 From: You Xiaojie Date: Sat, 21 Oct 2017 16:19:20 +0800 Subject: [PATCH] Resolve "Implicit declaration of function warning" when compiling Console.c and BridgeUnix.c --- src/Cedar/BridgeUnix.h | 1 + src/Cedar/Console.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/Cedar/BridgeUnix.h b/src/Cedar/BridgeUnix.h index 7f9b0890..4ba495d1 100644 --- a/src/Cedar/BridgeUnix.h +++ b/src/Cedar/BridgeUnix.h @@ -186,6 +186,7 @@ struct CAPTUREBLOCK{ // Function prototype +void FreeTap(VLAN *v); void InitEth(); void FreeEth(); bool IsEthSupported(); diff --git a/src/Cedar/Console.c b/src/Cedar/Console.c index ba2ec285..21c5e2a5 100644 --- a/src/Cedar/Console.c +++ b/src/Cedar/Console.c @@ -2048,7 +2048,13 @@ bool PasswordPrompt(char *password, UINT size) else if (c == 0xE0) { // Read one more character + +#ifdef OS_WIN32 c = getch(); +#else // OS_WIN32 + c = getc(stdin); +#endif // OS_WIN32 + if (c == 0x4B || c == 0x53) { // Backspace