diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-05-15 22:46:55 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-05-15 22:46:55 +0200 |
commit | 8c2bc7a4c721642dcc618304cd8640d65e087255 (patch) | |
tree | e15e08a63d0bf6585779205d9c9550da4be965eb /src/frame.c | |
parent | d345f02739739c66ae00d2d5e210b83f43ff1500 (diff) |
Fix typo and SC
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frame.c b/src/frame.c index 56e8f77..4fa7531 100644 --- a/src/frame.c +++ b/src/frame.c @@ -62,6 +62,7 @@ struct frame *frame_new() n->pl = NULL; n->contents = NULL; + n->sc = NULL; return n; } @@ -125,13 +126,13 @@ struct frame *sc_unpack(const char *sc) return NULL; } - show_heirarchy(fr, ""); + show_hierarchy(fr, ""); return fr; } -void show_heirarchy(struct frame *fr, const char *t) +void show_hierarchy(struct frame *fr, const char *t) { int i; char tn[1024]; @@ -143,7 +144,7 @@ void show_heirarchy(struct frame *fr, const char *t) fr->pix_w, fr->pix_h, fr->w, fr->h); for ( i=0; i<fr->num_children; i++ ) { - show_heirarchy(fr->children[i], tn); + show_hierarchy(fr->children[i], tn); } } |