aboutsummaryrefslogtreecommitdiff
path: root/src/sc_parse.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-04-21 22:18:59 +0200
committerThomas White <taw@bitwiz.org.uk>2016-04-21 22:18:59 +0200
commit1174b613b6140abe6cd2de11396185a3d63a4dd6 (patch)
tree011be03c278990613310c324a35700be39536cd0 /src/sc_parse.c
parent1f305d199195d5e27e0731917399dca7de3e75cd (diff)
Remove scblock->prev
Diffstat (limited to 'src/sc_parse.c')
-rw-r--r--src/sc_parse.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/sc_parse.c b/src/sc_parse.c
index 95b5c76..edad176 100644
--- a/src/sc_parse.c
+++ b/src/sc_parse.c
@@ -41,7 +41,6 @@ struct _scblock
char *contents;
SCBlock *next;
- SCBlock *prev;
SCBlock *child;
};
@@ -103,11 +102,8 @@ SCBlock *sc_block_append(SCBlock *bl, char *name, char *opt, char *contents,
bln->child = NULL;
bln->next = NULL;
- if ( bl == NULL ) {
- bln->prev = NULL;
- } else {
+ if ( bl != NULL ) {
bl->next = bln;
- bln->prev = bl;
}
if ( (blfp != NULL) && (*blfp == NULL) ) {
@@ -162,11 +158,6 @@ SCBlock *sc_block_append_inside(SCBlock *parent,
bln->child = NULL;
bln->next = NULL;
- if ( bl == NULL ) {
- bln->prev = NULL;
- } else {
- bln->prev = bl;
- }
*ptr = bln;
return bln;