~mdw
/
sgt
/
agedu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor code cleanups suggested by NetBSD lint:
[sgt/agedu]
/
index.c
diff --git
a/index.c
b/index.c
index
a74c165
..
f4b9801
100644
(file)
--- a/
index.c
+++ b/
index.c
@@
-69,11
+69,11
@@
struct indexbuild {
};
#define ELEMENT(t,offset) \
};
#define ELEMENT(t,offset) \
- ((
offset) ? (struct trie_file *)((char *)(t) + (offset)) : NULL
)
+ ((
struct trie_file *) ((offset) ? ((char *)(t) + (offset)) : NULL)
)
#define NODE(t,offset) \
#define NODE(t,offset) \
- ((
offset) ? (struct avlnode *)((char *)(t) + (offset)) : NULL
)
+ ((
struct avlnode *) ((offset) ? ((char *)(t) + (offset)) : NULL)
)
#define OFFSET(t,node) \
#define OFFSET(t,node) \
- ((node) ? (off_t)((const char *)node - (const char *)t) : 0)
+ ((node) ? (off_t)((const char *)node - (const char *)t) :
(off_t)
0)
#define MAXDEPTH(node) ((node) ? (node)->maxdepth : 0)
indexbuild *indexbuild_new(void *t, off_t startoff, int nodecount,
#define MAXDEPTH(node) ((node) ? (node)->maxdepth : 0)
indexbuild *indexbuild_new(void *t, off_t startoff, int nodecount,