session.c: change "(foo*)" to "(foo *)"

This commit is contained in:
Johan Malm 2021-09-24 21:58:46 +01:00
parent ebb632419b
commit 104f635b43
2 changed files with 5 additions and 4 deletions

View file

@ -88,7 +88,7 @@ session_environment_init(void)
return; return;
} }
read_environment_file(environment); read_environment_file(environment);
free((void*)environment); free((void *)environment);
} }
void void
@ -110,5 +110,5 @@ session_autostart_init(void)
spawn_async_no_shell(cmd); spawn_async_no_shell(cmd);
free(cmd); free(cmd);
out: out:
free((void*)autostart); free((void *)autostart);
} }

View file

@ -216,7 +216,8 @@ server_init(struct server *server)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
/* empirically, primary selection doesn't work with Gtk apps unless the /*
* Empirically, primary selection doesn't work with Gtk apps unless the
* device manager is one of the earliest globals to be advertised. All * device manager is one of the earliest globals to be advertised. All
* credit to Wayfire for discovering this, though their symptoms * credit to Wayfire for discovering this, though their symptoms
* (crash) are not the same as ours (silently does nothing). When adding * (crash) are not the same as ours (silently does nothing). When adding
@ -224,7 +225,7 @@ server_init(struct server *server)
* middle-button paste still works with any Gtk app of your choice * middle-button paste still works with any Gtk app of your choice
* *
* https://wayfire.org/2020/08/04/Wayfire-0-5.html * https://wayfire.org/2020/08/04/Wayfire-0-5.html
*/ */
wlr_primary_selection_v1_device_manager_create(server->wl_display); wlr_primary_selection_v1_device_manager_create(server->wl_display);
output_init(server); output_init(server);