tablet-shell: Fix compilation warnings
authorDaniel Stone <daniel@fooishbar.org>
Mon, 18 Jun 2012 18:39:56 +0000 (19:39 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 18 Jun 2012 19:09:45 +0000 (15:09 -0400)
Include unistd.h to get fork and execl prototypes, and remove
declarations of two unused variables.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
clients/tablet-shell.c

index 63ddbb2..0f58d5c 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <sys/wait.h>
 
 #include "window.h"
@@ -134,8 +135,6 @@ homescreen_draw(struct widget *widget, void *data)
        struct homescreen *homescreen = data;
        cairo_surface_t *surface;
        struct rectangle allocation;
-       cairo_pattern_t *pattern;
-       cairo_matrix_t matrix;
        cairo_t *cr;
        struct launcher *launcher;
        const int rows = 4, columns = 5, icon_width = 128, icon_height = 128;