Merge pull request #1575 from hwangcc23/next

Fix warnings
This commit is contained in:
Michael Stapelberg
2015-03-29 16:53:14 +02:00
12 changed files with 90 additions and 80 deletions

View File

@ -164,7 +164,9 @@ static void handle_button_release(xcb_connection_t *conn, xcb_button_release_eve
char *link_path;
char *exe_path = get_exe_path(argv0);
sasprintf(&link_path, "%s.nagbar_cmd", script_path);
symlink(exe_path, link_path);
if (symlink(exe_path, link_path) == -1) {
err(EXIT_FAILURE, "Failed to symlink %s to %s", link_path, exe_path);
}
char *terminal_cmd;
sasprintf(&terminal_cmd, "i3-sensible-terminal -e %s", link_path);