summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2012-12-19 15:21:34 +0000
committerokan <okan>2012-12-19 15:21:34 +0000
commitdc1e3a88438dc732349154bca610dbe813d2fc04 (patch)
tree90bbdd6c3174f497c8dc86ce5fbc7f9924d2b2d5 /conf.c
parentc565b790eda26074619aaf7c29234b6975862056 (diff)
downloadcwm-dc1e3a88438dc732349154bca610dbe813d2fc04.tar.gz
cwm-dc1e3a88438dc732349154bca610dbe813d2fc04.tar.xz
cwm-dc1e3a88438dc732349154bca610dbe813d2fc04.zip
gc unused cmd 'flags' variable
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 19a7a6d..2541f81 100644
--- a/conf.c
+++ b/conf.c
@@ -36,7 +36,7 @@ static void	 conf_unbind(struct conf *, struct keybinding *);
 
 /* Add an command menu entry to the end of the menu */
 void
-conf_cmd_add(struct conf *c, char *image, char *label, int flags)
+conf_cmd_add(struct conf *c, char *image, char *label)
 {
 	/* "term" and "lock" have special meanings. */
 
@@ -46,7 +46,6 @@ conf_cmd_add(struct conf *c, char *image, char *label, int flags)
 		(void)strlcpy(c->lockpath, image, sizeof(c->lockpath));
 	else {
 		struct cmd *cmd = xmalloc(sizeof(*cmd));
-		cmd->flags = flags;
 		(void)strlcpy(cmd->image, image, sizeof(cmd->image));
 		(void)strlcpy(cmd->label, label, sizeof(cmd->label));
 		TAILQ_INSERT_TAIL(&c->cmdq, cmd, entry);