diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-10-05 12:24:11 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-10-05 12:24:11 +0000 |
commit | b746f7e888d496042e5355145ee49c7264033229 (patch) | |
tree | e97fd8df60f129f207858122f87a46e65229ef32 /src | |
parent | e027c5985d300c7a92b4ba01bb2889590e60c34c (diff) | |
download | cflow-b746f7e888d496042e5355145ee49c7264033229.tar.gz cflow-b746f7e888d496042e5355145ee49c7264033229.tar.bz2 |
Minor fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/parser.c | 2 | ||||
-rw-r--r-- | src/symbol.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.c b/src/parser.c index 9dc7997..04919d2 100644 --- a/src/parser.c +++ b/src/parser.c @@ -804,7 +804,7 @@ dirdcl(Ident *idptr) if (tok.type == 0) { file_error(_("unexpected end of file in function declaration"), 0); - return; + return 1; } else if (tok.type == '(') level++; else if (tok.type == ')') { diff --git a/src/symbol.c b/src/symbol.c index e8930d0..dab0d29 100644 --- a/src/symbol.c +++ b/src/symbol.c @@ -251,10 +251,10 @@ static bool move_parm_processor(void *data, void *proc_data) { Symbol *s = data; - int *level = proc_data; + int level = *(int*)proc_data; if (s->type == SymIdentifier && s->storage == AutoStorage && s->flag == symbol_parm) { - s->level = *(int*)proc_data; + s->level = level; s->flag = symbol_none; } return true; |