From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/libndb/ndbcache.c | 2 +- src/libndb/ndbhash.c | 2 +- src/libndb/ndbipinfo.c | 4 ++-- src/libndb/sysdnsquery.c | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/libndb') diff --git a/src/libndb/ndbcache.c b/src/libndb/ndbcache.c index 701d63eb..80dbc35b 100644 --- a/src/libndb/ndbcache.c +++ b/src/libndb/ndbcache.c @@ -14,7 +14,7 @@ struct Ndbcache enum { - Maxcached= 128, + Maxcached= 128 }; static void diff --git a/src/libndb/ndbhash.c b/src/libndb/ndbhash.c index a6965cdb..4f9cb4b6 100644 --- a/src/libndb/ndbhash.c +++ b/src/libndb/ndbhash.c @@ -7,7 +7,7 @@ enum { Dptr, /* pointer to database file */ Cptr, /* pointer to first chain entry */ - Cptr1, /* pointer to second chain entry */ + Cptr1 /* pointer to second chain entry */ }; /* diff --git a/src/libndb/ndbipinfo.c b/src/libndb/ndbipinfo.c index a860c8b7..29dd4df1 100644 --- a/src/libndb/ndbipinfo.c +++ b/src/libndb/ndbipinfo.c @@ -7,8 +7,8 @@ enum { Ffound= 1<<0, - Fignore=1<<1, - Faddr= 1<<2, + Fignore= 1<<1, + Faddr= 1<<2 }; static Ndbtuple* filter(Ndb *db, Ndbtuple *t, Ndbtuple *f); diff --git a/src/libndb/sysdnsquery.c b/src/libndb/sysdnsquery.c index 8d3bf7b6..b9661be1 100644 --- a/src/libndb/sysdnsquery.c +++ b/src/libndb/sysdnsquery.c @@ -134,8 +134,7 @@ enum Chs, /* Hesiod (?) */ /* class queries (all class types are also queries) */ - Call= 255, /* all classes */ - + Call= 255 /* all classes */ }; -- cgit v1.2.3