summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-01-21 21:30:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-01-21 21:30:17 (GMT)
commit3b58128899aa89525c25eabe9a036021481c295d (patch)
tree5c29898950a0b296a714d80e0bd0c030b114edbc /src/glibext
parentdd33acbff36c0a3ae4618ac5021e74448cad5ce5 (diff)
Fixed compilation and compilation warnings.
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/gcodebuffer.c6
-rw-r--r--src/glibext/gcodebuffer.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/glibext/gcodebuffer.c b/src/glibext/gcodebuffer.c
index f3634f0..f96212c 100644
--- a/src/glibext/gcodebuffer.c
+++ b/src/glibext/gcodebuffer.c
@@ -1020,10 +1020,14 @@ static bool _g_code_buffer_delete_lines_comment(GCodeBuffer *buffer, GBufferLine
bool g_code_buffer_delete_lines_comment(GCodeBuffer *buffer, GBufferLine *line)
{
- _g_code_buffer_delete_lines_comment(buffer, line);
+ bool result; /* Bilan à retourner */
+
+ result = _g_code_buffer_delete_lines_comment(buffer, line);
/* TODO : emit() */
+ return result;
+
}
diff --git a/src/glibext/gcodebuffer.h b/src/glibext/gcodebuffer.h
index 0f2d601..d04ed76 100644
--- a/src/glibext/gcodebuffer.h
+++ b/src/glibext/gcodebuffer.h
@@ -73,7 +73,7 @@ void g_code_buffer_delete_lines(GCodeBuffer *, size_t, size_t);
/* FIXME */
#define g_code_buffer_append_new_line_fixme(b) \
- g_code_buffer_append_new_line(b, (mrange_t []){ { 0, 0 }, 0 })
+ g_code_buffer_prepare_new_line(b, (mrange_t []){ { 0, 0 }, 0 })
/* FIXME */
#define g_code_buffer_insert_at(buf, a, b) NULL