diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-07-11 12:03:56 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-07-11 12:03:56 -0700 |
commit | 6cb7ad8d0bd51e178ec25222251d2e842b9e5aa0 (patch) | |
tree | b67eed808db970f899c32b69f72fb64cbbc66c53 /src/cli_def.l | |
parent | 8ebd82645a8503ec1b8464586e5c19c18c009f06 (diff) | |
download | vyatta-cfg-6cb7ad8d0bd51e178ec25222251d2e842b9e5aa0.tar.gz vyatta-cfg-6cb7ad8d0bd51e178ec25222251d2e842b9e5aa0.zip |
Minor code cleanup
1. Make local functions static
2. Use C standard for function with no-args versus old K&R style
3. Make some arguments const
Diffstat (limited to 'src/cli_def.l')
-rw-r--r-- | src/cli_def.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli_def.l b/src/cli_def.l index 806112f..820a7a4 100644 --- a/src/cli_def.l +++ b/src/cli_def.l @@ -89,7 +89,7 @@ append_str(char *text) } static int -return_action() +return_action(void) { *action_ptr = 0; yy_cli_parse_lval.strp = strdup(action_buf); @@ -465,7 +465,7 @@ RE_ACT_FIELD (help|syntax|commit|delete|update|activate|create|begin|end|enumera %% static void -init_bufs() +init_bufs(void) { action_buf = malloc(BUF_INCREMENT); action_ptr = action_buf; @@ -482,7 +482,7 @@ init_bufs() } int -yy_cli_def_lex() +yy_cli_def_lex(void) { if (!action_buf) { init_bufs(); |