aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2012-12-19 15:21:34 +0000
committerokan2012-12-19 15:21:34 +0000
commitc5eb66fdce461930b3b780e5f09b0f3771474825 (patch)
tree4cc61e19c89264395d99c4d873fb63965667273f /conf.c
parentb383e573a5430c56c75ab469210bbe714c0d83b5 (diff)
downloadcwm-c5eb66fdce461930b3b780e5f09b0f3771474825.tar.gz
gc unused cmd 'flags' variable
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/conf.c b/conf.c
index dd705e0..cdf9acb 100644
--- a/conf.c
+++ b/conf.c
@@ -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: conf.c,v 1.115 2012/12/18 00:14:41 okan Exp $
+ * $OpenBSD: conf.c,v 1.116 2012/12/19 15:21:34 okan Exp $
*/
#include <sys/param.h>
@@ -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);