aboutsummaryrefslogtreecommitdiffstats
path: root/ctags.c
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2007-01-27 01:00:23 -0800
committerJosh Triplett <josh@freedesktop.org>2007-01-27 01:00:23 -0800
commitc2f0f35a3fa25ab66e07e5eec3634df4d0432230 (patch)
treee09139170ee920e406e7873cf25ea401674a4c74 /ctags.c
parent6a35332d4512044c2f924c406dbebc88e83f8ae5 (diff)
downloadsparse-c2f0f35a3fa25ab66e07e5eec3634df4d0432230.tar.gz
sparse-c2f0f35a3fa25ab66e07e5eec3634df4d0432230.tar.xz
sparse-c2f0f35a3fa25ab66e07e5eec3634df4d0432230.zip
Coding style fix: in a pointer type, * goes with the name, not the type.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'ctags.c')
-rw-r--r--ctags.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ctags.c b/ctags.c
index 6d493cc..17dd1c1 100644
--- a/ctags.c
+++ b/ctags.c
@@ -22,14 +22,14 @@ static void examine_symbol(struct symbol *sym);
#define MAX(_x,_y) ((_x) > (_y) ? (_x) : (_y))
-static int cmp_sym(const void* m, const void*n)
+static int cmp_sym(const void *m, const void *n)
{
- struct ident *a = ((struct symbol*)m)->ident;
- struct ident *b = ((struct symbol*)n)->ident;
+ struct ident *a = ((struct symbol *)m)->ident;
+ struct ident *b = ((struct symbol *)n)->ident;
int ret = strncmp(a->name, b->name, MAX(a->len, b->len));
if (!ret) {
- struct position a = ((struct symbol*)m)->pos;
- struct position b = ((struct symbol*)n)->pos;
+ struct position a = ((struct symbol *)m)->pos;
+ struct position b = ((struct symbol *)n)->pos;
ret = strcmp(stream_name(a.stream), stream_name(b.stream));
if (!ret)
@@ -201,7 +201,7 @@ int main(int argc, char **argv)
examine_symbol_list(file_scope->symbols);
} END_FOR_EACH_PTR_NOTAG(file);
examine_symbol_list(global_scope->symbols);
- sort_list((struct ptr_list**)&taglist, cmp_sym);
+ sort_list((struct ptr_list **)&taglist, cmp_sym);
show_tags(taglist);
return 0;
}