summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-delete-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2014-04-24 09:14:43 +0000
committernicm <nicm@openbsd.org>2014-04-24 09:14:43 +0000
commitca6784669ed926e64c92bbcc7839f5934b2c6817 (patch)
tree012b99d276f5b0546900d406410d17f6959985a7 /usr.bin/tmux/cmd-delete-buffer.c
parentThe switch statement given/when was introduced in Perl 5.10 and got (diff)
downloadwireguard-openbsd-ca6784669ed926e64c92bbcc7839f5934b2c6817.tar.xz
wireguard-openbsd-ca6784669ed926e64c92bbcc7839f5934b2c6817.zip
There is no longer a need for a paste_stack struct or for global_buffers
to be global. Move to paste.c.
Diffstat (limited to 'usr.bin/tmux/cmd-delete-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-delete-buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-delete-buffer.c b/usr.bin/tmux/cmd-delete-buffer.c
index 701900a9f6e..f5e4e701da5 100644
--- a/usr.bin/tmux/cmd-delete-buffer.c
+++ b/usr.bin/tmux/cmd-delete-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-delete-buffer.c,v 1.10 2013/10/10 12:00:19 nicm Exp $ */
+/* $OpenBSD: cmd-delete-buffer.c,v 1.11 2014/04/24 09:14:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -45,7 +45,7 @@ cmd_delete_buffer_exec(struct cmd *self, struct cmd_q *cmdq)
int buffer;
if (!args_has(args, 'b')) {
- paste_free_top(&global_buffers);
+ paste_free_top();
return (CMD_RETURN_NORMAL);
}
@@ -56,7 +56,7 @@ cmd_delete_buffer_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_ERROR);
}
- if (paste_free_index(&global_buffers, buffer) != 0) {
+ if (paste_free_index(buffer) != 0) {
cmdq_error(cmdq, "no buffer %d", buffer);
return (CMD_RETURN_ERROR);
}