summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/st.c b/st.c
index e40c6e1017..86d569717b 100644
--- a/st.c
+++ b/st.c
@@ -255,7 +255,8 @@ st_lookup(table, key, value)
if (ptr == 0) {
return 0;
- } else {
+ }
+ else {
if (value != 0) *value = ptr->record;
return 1;
}
@@ -294,7 +295,8 @@ st_insert(table, key, value)
if (ptr == 0) {
ADD_DIRECT(table, key, value, hash_val, bin_pos);
return 0;
- } else {
+ }
+ else {
ptr->record = value;
return 1;
}
@@ -498,7 +500,8 @@ st_foreach(table, func, arg)
tmp = ptr;
if (last == 0) {
table->bins[i] = ptr->next;
- } else {
+ }
+ else {
last->next = ptr->next;
}
ptr = ptr->next;