StdLib/BsdSocketLib: Remove unused variables

TianoCore BZ#677

Remove unused variables and turn nsdispatch macro into a function. This
is not what is recommended in the bug ticket but avoid heavier
modification of the code (and deviation from upsteam).

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Thiebaud Weksteen <tweek@google.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
Thiebaud Weksteen
2017-10-26 02:58:15 -07:00
committed by Jaben Carsey
parent 207bc6a38c
commit cb12056591
2 changed files with 8 additions and 4 deletions

View File

@@ -129,8 +129,10 @@ u_int16_t _getshort(const u_char *src);
#define MAXALIASES 35
#define MAXADDRS 35
#ifdef _ORG_FREEBSD_
static const char AskedForGot[] =
"gethostby*.gethostanswer: asked for \"%s\", got \"%s\"";
#endif
static char *h_addr_ptrs[MAXADDRS + 1];