Skip to content

Commit

Permalink
fixes #34 missing initializer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Jul 15, 2021
1 parent b5f28fe commit 1a95f2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/telopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ struct st_telOpt telOpt;
/* telnet option negotiation module */

static TelOptStates stTabMaster[] = {
/*[opt] [local] [remote] */
{TELOPT_BINARY, {TOR_BETTER}, {TOR_BETTER}}, /*0 */
{TELOPT_ECHO, {TOR_MUSTNOT}, {TOR_BETTER}}, /*1 */
{TELOPT_SGA, {TOR_BETTER}, {TOR_MUST}}, /*3 */
{TELOPT_TTYPE, {TOR_NEUTRAL}, {TOR_MUSTNOT}}, /*24 */
{-1, {TOR_MUSTNOT}, {TOR_MUSTNOT}} /* default state */
/*[opt] [local] [remote] */
{TELOPT_BINARY, {TOR_BETTER, 0, 0}, {TOR_BETTER, 0, 0}}, /*0 */
{TELOPT_ECHO, {TOR_MUSTNOT, 0, 0}, {TOR_BETTER, 0, 0}}, /*1 */
{TELOPT_SGA, {TOR_BETTER, 0, 0}, {TOR_MUST, 0, 0}}, /*3 */
{TELOPT_TTYPE, {TOR_NEUTRAL, 0, 0}, {TOR_MUSTNOT, 0, 0}}, /*24 */
{-1, {TOR_MUSTNOT, 0, 0}, {TOR_MUSTNOT, 0, 0}} /* default state */
};

TelOptStates *stTab[NTELOPTS]; /* telOptInit() makes it usable */
Expand Down
2 changes: 1 addition & 1 deletion src/telopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ typedef enum
typedef struct
{
TelOptReq req; /* requirement for the opt */
int state; /* current state (enabled:1 or disabled:0) */
int state; /* current state (enabled:1 or disabled:0) */
int pending; /* state is pending (requested but no reply yet) */
} TelOptState;

Expand Down

0 comments on commit 1a95f2d

Please sign in to comment.