summaryrefslogtreecommitdiffstats
path: root/lib/command_parse.h
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-09-02 12:07:01 +0100
committerChris Hall <chris.hall@highwayman.com>2011-09-02 12:07:01 +0100
commit3593a823ca0dd92bbe58aa3464d8a371f6f35e70 (patch)
tree933eadc60f5c9e16dc5d9bf6b3762870a11d1a81 /lib/command_parse.h
parent3690074a486cfada568975e287d9cbb9e687501f (diff)
downloadquagga-3593a823ca0dd92bbe58aa3464d8a371f6f35e70.tar.bz2
quagga-3593a823ca0dd92bbe58aa3464d8a371f6f35e70.tar.xz
Changed gcc options to -std=c99 and -O2, and tighted warnings.
Some small changes to accomodate same.
Diffstat (limited to 'lib/command_parse.h')
-rw-r--r--lib/command_parse.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/command_parse.h b/lib/command_parse.h
index ee219f84..ab93f061 100644
--- a/lib/command_parse.h
+++ b/lib/command_parse.h
@@ -142,7 +142,7 @@ typedef enum cmd_item_type_bit cmd_item_type_bit_t ;
Inline bool
cmd_item_is_option(cmd_item_type_t itt)
{
- const static bool is_option[item_type_count] =
+ static const bool is_option[item_type_count] =
{
[item_null] = false,
@@ -176,7 +176,7 @@ cmd_item_is_option(cmd_item_type_t itt)
Inline bool
cmd_item_is_vararg(cmd_item_type_t itt)
{
- const static bool is_vararg[item_type_count] =
+ static const bool is_vararg[item_type_count] =
{
[item_null] = false,
@@ -391,7 +391,7 @@ match_item_type(match_type_t mt)
Inline match_strength_t
match_match_strength(match_type_t mt)
{
- const static match_strength_t match_match_strength[match_type_count] =
+ static const match_strength_t match_match_strength[match_type_count] =
{
[mt_no_match] = ms_no_match,
@@ -439,7 +439,7 @@ match_match_strength(match_type_t mt)
Inline match_type_t
item_best_match(cmd_item_type_t it)
{
- const static match_type_t item_best_match[item_type_count] =
+ static const match_type_t item_best_match[item_type_count] =
{
[item_null] = mt_no_match,