summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-05-04 15:08:04 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-05-04 15:08:04 -0400
commit8050bd217f38b4527d74a4288389d01a1b87be67 (patch)
tree250887d1b2b8c9562107cfde3d48cc53163eb76d
parent1258a4a5524d3757eb19ca892422c49ac20c28ec (diff)
compositor-drm: Fix modularization breakage
-rw-r--r--compositor/compositor-drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c
index 35ace9d7..8626033c 100644
--- a/compositor/compositor-drm.c
+++ b/compositor/compositor-drm.c
@@ -746,7 +746,7 @@ drm_compositor_create(struct wl_display *display, int connector)
struct wlsc_compositor *
backend_init(struct wl_display *display, char *options)
{
- int connector, i;
+ int connector = 0, i;
char *p, *value;
static char * const tokens[] = { "connector", NULL };
@@ -755,7 +755,7 @@ backend_init(struct wl_display *display, char *options)
while (i = getsubopt(&p, tokens, &value), i != -1) {
switch (i) {
case 0:
- connector = strol(value, NULL, 0);
+ connector = strtol(value, NULL, 0);
break;
}
}