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:
parent
f47ae2c0c5
commit
7db93b7cd7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue