From f4c2ff2f29a17a5916e9bf642240abb5f4fc190a Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 2 Feb 2018 13:27:25 +0000 Subject: Simplification; use asprintf where appropriate now. --- calmwm.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 894f842..c9fd91d 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.353 2018/02/01 15:17:51 okan Exp $ + * $OpenBSD: calmwm.h,v 1.354 2018/02/02 13:27:25 okan Exp $ */ #ifndef _CALMWM_H_ @@ -260,7 +260,7 @@ TAILQ_HEAD(mousebind_q, bind_ctx); struct cmd_ctx { TAILQ_ENTRY(cmd_ctx) entry; char *name; - char path[PATH_MAX]; + char *path; }; TAILQ_HEAD(cmd_q, cmd_ctx); TAILQ_HEAD(wm_q, cmd_ctx); @@ -298,13 +298,13 @@ struct conf { int snapdist; struct gap gap; char *color[CWM_COLOR_NITEMS]; - char known_hosts[PATH_MAX]; char *font; char *wmname; Cursor cursor[CF_NITEMS]; int xrandr; int xrandr_event_base; char *homedir; + char *known_hosts; char *wm_argv; }; @@ -540,9 +540,9 @@ int conf_bind_mouse(struct conf *, const char *, const char *); void conf_clear(struct conf *); void conf_client(struct client_ctx *); -int conf_cmd_add(struct conf *, const char *, +void conf_cmd_add(struct conf *, const char *, const char *); -int conf_wm_add(struct conf *, const char *, +void conf_wm_add(struct conf *, const char *, const char *); void conf_cursor(struct conf *); void conf_grab_kbd(Window); -- cgit v1.2.3-2-gb3c3