summaryrefslogtreecommitdiffstats
path: root/src/Backtrace/strbuf.c
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-11-30 16:42:58 +0100
committerKarel Klic <kklic@redhat.com>2009-11-30 16:42:58 +0100
commit277c2b79dd8d4bfa9eac979bcb51dc050ff1627b (patch)
treebd0f27e13150f9ec427ee1e78b4967e9de7b607c /src/Backtrace/strbuf.c
parent3b97c373a8d6bce4fa8b8ae5f014f83dab39d09a (diff)
downloadabrt-277c2b79dd8d4bfa9eac979bcb51dc050ff1627b.tar.gz
abrt-277c2b79dd8d4bfa9eac979bcb51dc050ff1627b.tar.xz
abrt-277c2b79dd8d4bfa9eac979bcb51dc050ff1627b.zip
Added -Wall CFLAG and fixed all warnings.
Diffstat (limited to 'src/Backtrace/strbuf.c')
-rw-r--r--src/Backtrace/strbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Backtrace/strbuf.c b/src/Backtrace/strbuf.c
index c919354d..4c6d886b 100644
--- a/src/Backtrace/strbuf.c
+++ b/src/Backtrace/strbuf.c
@@ -19,6 +19,7 @@
*/
#include "strbuf.h"
#include <stdlib.h>
+#include <stdio.h>
#include <assert.h>
#include <string.h>
@@ -107,4 +108,5 @@ struct strbuf *strbuf_prepend_str(struct strbuf *strbuf, char *str)
assert(strbuf->len + len < strbuf->alloc);
memmove(strbuf->buf + len, strbuf->buf, strbuf->len + 1);
memcpy(strbuf->buf, str, len);
+ return strbuf;
}