Add a windowonly generic command and use it where appropriate. Also trim includes and unused.

This commit is contained in:
Nicholas Marriott
2008-06-02 22:09:49 +00:00
parent 95cc21c251
commit 8731755ab4
18 changed files with 187 additions and 296 deletions

View File

@ -1,4 +1,4 @@
/* $Id: cmd-list-windows.c,v 1.16 2008-06-02 18:08:16 nicm Exp $ */
/* $Id: cmd-list-windows.c,v 1.17 2008-06-02 22:09:49 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -18,7 +18,6 @@
#include <sys/types.h>
#include <getopt.h>
#include <unistd.h>
#include "tmux.h"
@ -41,7 +40,7 @@ const struct cmd_entry cmd_list_windows_entry = {
};
void
cmd_list_windows_exec(unused void *ptr, struct cmd_ctx *ctx)
cmd_list_windows_exec(void *ptr, struct cmd_ctx *ctx)
{
struct session *s;
struct winlink *wl;