From d1bc021ab39ca02ed05d2e529a9362d1da807308 Mon Sep 17 00:00:00 2001 From: "Zhang, Lubo" Date: Wed, 9 Mar 2016 14:20:40 +0800 Subject: NetworkPkg: Refine the code of shell app under networkPkg. refine the code of ifconfig6 and ping6 application. Cc: Fu Siyuan Cc: Wu Jiaxin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo Reviewed-by: Fu Siyuan Reviewed-by: Jiaxin Wu --- NetworkPkg/Application/IfConfig6/IfConfig6.c | 5 +++++ NetworkPkg/Application/IfConfig6/IfConfig6.h | 5 ----- NetworkPkg/Application/Ping6/Ping6.c | 5 +++++ NetworkPkg/Application/Ping6/Ping6.h | 5 ----- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'NetworkPkg/Application') diff --git a/NetworkPkg/Application/IfConfig6/IfConfig6.c b/NetworkPkg/Application/IfConfig6/IfConfig6.c index 8bd6243749..48c3be3552 100644 --- a/NetworkPkg/Application/IfConfig6/IfConfig6.c +++ b/NetworkPkg/Application/IfConfig6/IfConfig6.c @@ -28,6 +28,11 @@ #include "IfConfig6.h" +// +// String token ID of ifconfig6 command help message text. +// +GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringIfconfig6HelpTokenId = STRING_TOKEN (STR_IFCONFIG6_HELP); + EFI_HII_HANDLE mHiiHandle; SHELL_PARAM_ITEM mIfConfig6CheckList[] = { diff --git a/NetworkPkg/Application/IfConfig6/IfConfig6.h b/NetworkPkg/Application/IfConfig6/IfConfig6.h index 53b6d726da..f74897108d 100644 --- a/NetworkPkg/Application/IfConfig6/IfConfig6.h +++ b/NetworkPkg/Application/IfConfig6/IfConfig6.h @@ -16,11 +16,6 @@ #ifndef _IFCONFIG6_H_ #define _IFCONFIG6_H_ -// -// String token ID of ifconfig6 command help message text. -// -GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringIfconfig6HelpTokenId = STRING_TOKEN (STR_IFCONFIG6_HELP); - enum { IfConfig6OpList = 1, IfConfig6OpSet = 2, diff --git a/NetworkPkg/Application/Ping6/Ping6.c b/NetworkPkg/Application/Ping6/Ping6.c index f1685f710b..55314e574d 100644 --- a/NetworkPkg/Application/Ping6/Ping6.c +++ b/NetworkPkg/Application/Ping6/Ping6.c @@ -30,6 +30,11 @@ #include "Ping6.h" +// +// String token ID of Ping6 command help message text. +// +GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringPing6HelpToken = STRING_TOKEN (STR_PING6_HELP); + SHELL_PARAM_ITEM Ping6ParamList[] = { { L"-l", diff --git a/NetworkPkg/Application/Ping6/Ping6.h b/NetworkPkg/Application/Ping6/Ping6.h index 4660b0e3be..6f590af8c0 100644 --- a/NetworkPkg/Application/Ping6/Ping6.h +++ b/NetworkPkg/Application/Ping6/Ping6.h @@ -21,11 +21,6 @@ #define PING6_MAX_BUFFER_SIZE 32768 #define PING6_ONE_SECOND 10000000 -// -// String token ID of Ping6 command help message text. -// -GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringPing6HelpToken = STRING_TOKEN (STR_PING6_HELP); - // // A similar amount of time that passes in femtoseconds // for each increment of TimerValue. It is for NT32 only. -- cgit