sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a99aa92bc6e2a491ea32c7d8ab378a9b55faa945
parent a642827dfbf68de07c625e7c127efefaa9ac1ae1
Author: Christoph Gysin <christoph.gysin@gmail.com>
Date:   Wed, 25 Nov 2015 14:10:21 +0200

extensions: add missing include

This fixes a compiler warning:

../sway/extensions.c: In function ‘set_background’:
../sway/extensions.c:16:37: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
  struct background_config *config = malloc(sizeof(struct background_config));
                                     ^
../sway/extensions.c:16:37: warning: incompatible implicit declaration of built-in function ‘malloc’
../sway/extensions.c:16:37: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’

Diffstat:
Msway/extensions.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sway/extensions.c b/sway/extensions.c @@ -1,3 +1,4 @@ +#include <stdlib.h> #include <wlc/wlc.h> #include <wlc/wlc-wayland.h> #include "wayland-desktop-shell-server-protocol.h"