Dropped a few consts
This commit is contained in:
parent
21f8186fc5
commit
8d896de3f5
1 changed files with 4 additions and 4 deletions
|
@ -16,7 +16,7 @@ Here's an overview:
|
||||||
@{posix headers}
|
@{posix headers}
|
||||||
@{defines}
|
@{defines}
|
||||||
|
|
||||||
char *argv0;
|
const char *argv0;
|
||||||
|
|
||||||
int g_about_to_quit = 0;
|
int g_about_to_quit = 0;
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ This project is licensed under the Mozilla Public License Version 2.0. Please re
|
||||||
|
|
||||||
--- function definitions
|
--- function definitions
|
||||||
static void
|
static void
|
||||||
die(char *fmt, ...)
|
die(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
|
@ -142,7 +142,7 @@ This was a design decision to make, whether to load a default config. I decided
|
||||||
It loads `"${XDG_CONFIG_HOME:-$HOME/.config}/wmaffle/wmafflerc"`.
|
It loads `"${XDG_CONFIG_HOME:-$HOME/.config}/wmaffle/wmafflerc"`.
|
||||||
|
|
||||||
---get default config path
|
---get default config path
|
||||||
char *config_home = getenv("XDG_CONFIG_HOME");
|
const char *config_home = getenv("XDG_CONFIG_HOME");
|
||||||
|
|
||||||
if (config_home) {
|
if (config_home) {
|
||||||
snprintf(
|
snprintf(
|
||||||
|
@ -172,7 +172,7 @@ We need both a sockaddr and a file descriptor.
|
||||||
--- variables local to main +=
|
--- variables local to main +=
|
||||||
struct sockaddr_un sock_addr;
|
struct sockaddr_un sock_addr;
|
||||||
int sock_fd;
|
int sock_fd;
|
||||||
char *sock_path;
|
const char *sock_path;
|
||||||
---
|
---
|
||||||
|
|
||||||
This requires the following headers.
|
This requires the following headers.
|
||||||
|
|
Loading…
Add table
Reference in a new issue