diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index c32bc8b6..5118b5ba 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -165,7 +165,7 @@
-
+
diff --git a/src/wayland-shm.c b/src/wayland-shm.c
index bfa4aa8f..a1ad0f73 100644
--- a/src/wayland-shm.c
+++ b/src/wayland-shm.c
@@ -93,7 +93,7 @@ wl_shm_buffer_init(struct wl_client *client, uint32_t id,
static void
shm_create_buffer(struct wl_client *client, struct wl_resource *resource,
uint32_t id, int fd, int32_t width, int32_t height,
- uint32_t stride, uint32_t format)
+ int32_t stride, uint32_t format)
{
struct wl_shm_buffer *buffer;
void *data;