From 2201d3011811b8e9970db810ba49aba0d0d4e59c Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Sun, 17 Feb 2019 03:56:44 +0200 Subject: [PATCH] Minor formatting fixes; --- lib/sexp_ops.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/sexp_ops.c b/lib/sexp_ops.c index ca15436..a3408f3 100644 --- a/lib/sexp_ops.c +++ b/lib/sexp_ops.c @@ -78,7 +78,7 @@ find_sexp (const char *name, sexp_t * start) sexp_t *bfs_find_sexp(const char *str, sexp_t *sx) { sexp_t *t = sx; sexp_t *rt; - + if (sx == NULL) return NULL; while (t != NULL) { @@ -88,7 +88,7 @@ sexp_t *bfs_find_sexp(const char *str, sexp_t *sx) { return t; } } - } + } t = t->next; } @@ -99,7 +99,7 @@ sexp_t *bfs_find_sexp(const char *str, sexp_t *sx) { rt = bfs_find_sexp(str,t->list); if (rt != NULL) return rt; } - + t = t->next; } @@ -118,7 +118,7 @@ int sexp_list_length(const sexp_t *sx) { if (sx->ty == SEXP_VALUE) return 1; t = sx->list; - + while (t != NULL) { len++; t = t->next; @@ -161,9 +161,9 @@ sexp_t *copy_sexp(const sexp_t *s) { sexp_t_deallocate(s_new); return NULL; } - + s_new->binlength = s->binlength; - + if (s->bindata == NULL) { s_new->bindata = NULL; } else { @@ -183,7 +183,7 @@ sexp_t *copy_sexp(const sexp_t *s) { memcpy(s_new->bindata,s->bindata,s->binlength*sizeof(char)); - /* non-binary */ + /* non-binary */ } else { if (s->val == NULL && (s->val_used > 0 || s->val_allocated > 0)) { sexp_errno = SEXP_ERR_BADCONTENT; @@ -210,13 +210,13 @@ sexp_t *copy_sexp(const sexp_t *s) { return NULL; } - memcpy(s_new->val, s->val, sizeof(char)*s->val_used); + memcpy(s_new->val, s->val, sizeof(char)*s->val_used); } } } else { s_new->list = copy_sexp(s->list); } - + s_new->next = copy_sexp(s->next); return s_new;