Replace uint with unsigned int

Improves portability by avoiding the non-standard 'uint'. For example
this fixes building with musl libc:

".../kwin_wrapper.c:45:9: error: unknown type name 'uint';
    did you mean 'int'?"
This commit is contained in:
Heiko Becker 2021-01-21 22:00:33 +01:00
parent f47ae2c0c5
commit 7db93b7cd7

View file

@ -42,7 +42,7 @@ pid_t launch_kwin(struct wl_socket *socket, int argc, char **argv)
snprintf(fdString, sizeof(fdString) - 1, "%d", wl_socket_get_fd(socket));
char **args = calloc(argc + 6, sizeof(char *));
uint pos = 0;
unsigned int pos = 0;
args[pos++] = (char *)"kwin_wayland"; //process name is the first argument by convention
args[pos++] = (char *)"--wayland_fd";
args[pos++] = fdString;