[ovs-dev] [PATCH ovn pipeline 2/6] lex: Make token parameter of lex_token_format() const.

Ben Pfaff blp at nicira.com
Sat Apr 18 17:04:34 UTC 2015


It wasn't ever modified, this was just overlooked.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 ovn/lib/lex.c | 2 +-
 ovn/lib/lex.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ovn/lib/lex.c b/ovn/lib/lex.c
index 824c0bc..8fe0508 100644
--- a/ovn/lib/lex.c
+++ b/ovn/lib/lex.c
@@ -132,7 +132,7 @@ lex_token_format_masked_integer(const struct lex_token *token, struct ds *s)
  * losslessly parsed back by the lexer.  (LEX_T_END and LEX_T_ERROR can't be
  * parsed back.) */
 void
-lex_token_format(struct lex_token *token, struct ds *s)
+lex_token_format(const struct lex_token *token, struct ds *s)
 {
     switch (token->type) {
     case LEX_T_END:
diff --git a/ovn/lib/lex.h b/ovn/lib/lex.h
index 8f0f6ed..5d391ea 100644
--- a/ovn/lib/lex.h
+++ b/ovn/lib/lex.h
@@ -89,7 +89,7 @@ void lex_token_init(struct lex_token *);
 void lex_token_destroy(struct lex_token *);
 void lex_token_swap(struct lex_token *, struct lex_token *);
 
-void lex_token_format(struct lex_token *, struct ds *);
+void lex_token_format(const struct lex_token *, struct ds *);
 const char *lex_token_parse(struct lex_token *, const char *input,
                             const char **startp);
 
-- 
2.1.3




More information about the dev mailing list