From a142331514fc5e300b8bbc97cc5bc71ca7080d7b Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 20 Jan 2014 21:34:32 +0000 Subject: constify and rename some confusing variables around cmdq. --- calmwm.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index bc34b58..5fcdc37 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.242 2014/01/20 19:06:04 okan Exp $ + * $OpenBSD: calmwm.h,v 1.243 2014/01/20 21:34:32 okan Exp $ */ #ifndef _CALMWM_H_ @@ -267,9 +267,9 @@ TAILQ_HEAD(mousebinding_q, mousebinding); struct cmd { TAILQ_ENTRY(cmd) entry; - char image[MAXPATHLEN]; -#define CMD_MAXLABELLEN 256 - char label[CMD_MAXLABELLEN]; +#define CMD_MAXNAMELEN 256 + char name[CMD_MAXNAMELEN]; + char path[MAXPATHLEN]; }; TAILQ_HEAD(cmd_q, cmd); @@ -514,19 +514,20 @@ void menuq_clear(struct menu_q *); int parse_config(const char *, struct conf *); void conf_atoms(void); -void conf_autogroup(struct conf *, int, char *); +void conf_autogroup(struct conf *, int, const char *); int conf_bind_kbd(struct conf *, const char *, const char *); int conf_bind_mouse(struct conf *, const char *, const char *); void conf_clear(struct conf *); void conf_client(struct client_ctx *); -void conf_cmd_add(struct conf *, char *, char *); +void conf_cmd_add(struct conf *, const char *, + const char *); void conf_cursor(struct conf *); void conf_grab_kbd(Window); void conf_grab_mouse(Window); void conf_init(struct conf *); -void conf_ignore(struct conf *, char *); +void conf_ignore(struct conf *, const char *); void conf_screen(struct screen_ctx *); void xev_loop(void); -- cgit v1.2.3-2-gb3c3