Skip to content
Snippets Groups Projects
Commit 54acf5e5 authored by rswindell's avatar rswindell
Browse files

Fix Intel CC warnings: no sense in returning non-pointer consts.

parent e7037922
Branches
Tags
No related merge requests found
......@@ -126,7 +126,7 @@ const char* DLLCALL telnet_opt_desc(uchar opt)
return(unknown);
}
const uchar DLLCALL telnet_opt_ack(uchar cmd)
uchar DLLCALL telnet_opt_ack(uchar cmd)
{
switch(cmd) {
case TELNET_DO: return TELNET_WILL;
......@@ -137,7 +137,7 @@ const uchar DLLCALL telnet_opt_ack(uchar cmd)
return 0;
}
const uchar DLLCALL telnet_opt_nak(uchar cmd)
uchar DLLCALL telnet_opt_nak(uchar cmd)
{
switch(cmd) {
case TELNET_DO: return TELNET_WONT;
......
......@@ -148,8 +148,8 @@ extern "C" {
DLLEXPORT const char* DLLCALL telnet_cmd_desc(uchar cmd);
DLLEXPORT const char* DLLCALL telnet_opt_desc(uchar opt);
DLLEXPORT const uchar DLLCALL telnet_opt_ack(uchar cmd);
DLLEXPORT const uchar DLLCALL telnet_opt_nak(uchar cmd);
DLLEXPORT uchar DLLCALL telnet_opt_ack(uchar cmd);
DLLEXPORT uchar DLLCALL telnet_opt_nak(uchar cmd);
#ifdef __cplusplus
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment