summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-06-08 20:11:21 (GMT)
committer Vincent Sanders <vince@netsurf-browser.org>2010-06-08 20:11:21 (GMT)
commit54848b89d52e23c614977834433a6893c1a1c3cb (patch)
tree3180a3c84fca1ecc70fd2bad036715611cf99880
parent0fff9e5d0e6519b41d4164daf90379a8e51b5b15 (diff)
downloadlibnsfb-54848b89d52e23c614977834433a6893c1a1c3cb.tar.gz
libnsfb-54848b89d52e23c614977834433a6893c1a1c3cb.tar.bz2
Fix warnings which occour with gcc 4.5
svn path=/trunk/libnsfb/; revision=10569
-rw-r--r--src/surface/x.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/surface/x.c b/src/surface/x.c
index 96ec69f..2b8d3bf 100644
--- a/src/surface/x.c
+++ b/src/surface/x.c
@@ -7,6 +7,7 @@
*/
#define _XOPEN_SOURCE 500
+#define NEED_HINTS_ALLOC
#include <stdbool.h>
#include <stdlib.h>
@@ -34,13 +35,13 @@
#include "cursor.h"
#if defined(NEED_HINTS_ALLOC)
-xcb_size_hints_t *
+static xcb_size_hints_t *
xcb_alloc_size_hints(void)
{
return calloc(1, sizeof(xcb_size_hints_t));
}
-void
+static void
xcb_free_size_hints(xcb_size_hints_t *hints)
{
free(hints);