wayland-server: Clarify included header dependencies
authorYong Bakos <ybakos@humanoriented.com>
Wed, 18 May 2016 03:02:01 +0000 (21:02 -0600)
committerBryce Harrington <bryce@osg.samsung.com>
Thu, 2 Jun 2016 02:22:19 +0000 (19:22 -0700)
wayland-server.c directly depends on wayland-util.h, and will include
wayland-server-protocol.h via wayland-server.h.

Explicitly include wayland-util.h, making this dependency clear.
Remove the redundant inclusion of wayland-server-protocol.h.

Signed-off-by: Yong Bakos <ybakos@humanoriented.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
src/wayland-server.c

index ad82bc2..19aa2e8 100644 (file)
@@ -43,9 +43,9 @@
 #include <sys/file.h>
 #include <sys/stat.h>
 
+#include "wayland-util.h"
 #include "wayland-private.h"
 #include "wayland-server.h"
-#include "wayland-server-protocol.h"
 #include "wayland-os.h"
 
 /* This is the size of the char array in struct sock_addr_un.