diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-11-12 12:55:01 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-11-12 12:55:01 +0000 |
commit | a89ad4d196ec87c58ea83703fc465853438eaab3 (patch) | |
tree | efdc0a1f16b1da076456c6e6f577f8247a781f98 /src/index.c | |
parent | b1b0a7b2e91f981b512bea395bfb62f77827742d (diff) |
reduced warnings by properly declaring functions and avoidance of
variable shadowing
svn path=/trunk/externals/zexy/; revision=6269
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/index.c b/src/index.c index f3a8fb6..aeb6f40 100644 --- a/src/index.c +++ b/src/index.c @@ -169,24 +169,24 @@ static void index_add(t_index *x, t_symbol *s, t_float f) /* delete a symbol from the map (if it is in there) */ static void index_delete(t_index *x, t_symbol *s, int argc, t_atom*argv) { - int index=-1; + int idx=-1; ZEXY_USEVAR(s); if(argc!=1){ error("index :: delete what ?"); return; } else { if(argv->a_type==A_FLOAT){ - index=atom_getint(argv)-1; + idx=atom_getint(argv)-1; } else if (argv->a_type==A_SYMBOL){ - index=find_item(atom_getsymbol(argv),x->names, x->maxentries); + idx=find_item(atom_getsymbol(argv),x->names, x->maxentries); } else { error("index :: delete what ?"); return; } } - if ( index >= 0 && index < x->maxentries) { - x->names[index]=0; + if ( idx >= 0 && idx < x->maxentries) { + x->names[idx]=0; x->entries--; outlet_float(x->x_obj.ob_outlet, 0.0); } else { |