aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-28 14:54:12 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-28 14:54:12 +0000
commitfabf40b3b3c9f37930aa99e40771a069a9c94adf (patch)
treef1aa668369ce2d47db3dae1390a057143d4136b7 /tmux.h
parent66bf2e2f040b9fc1a6f06f5076858c810b54b194 (diff)
downloadrtmux-fabf40b3b3c9f37930aa99e40771a069a9c94adf.tar.gz
rtmux-fabf40b3b3c9f37930aa99e40771a069a9c94adf.tar.bz2
rtmux-fabf40b3b3c9f37930aa99e40771a069a9c94adf.zip
Sync OpenBSD patchset 569:
Tidy up various bits of the paste code, make the data buffer char * and add comments.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tmux.h b/tmux.h
index 45dbabc8..b4f6c52b 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.524 2009-11-28 14:50:37 tcunha Exp $ */
+/* $Id: tmux.h,v 1.525 2009-11-28 14:54:12 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -883,7 +883,7 @@ struct layout_cell {
/* Paste buffer. */
struct paste_buffer {
- char *data;
+ char *data;
size_t size;
};
ARRAY_DECL(paste_stack, struct paste_buffer *);
@@ -1402,8 +1402,8 @@ struct paste_buffer *paste_get_top(struct paste_stack *);
struct paste_buffer *paste_get_index(struct paste_stack *, u_int);
int paste_free_top(struct paste_stack *);
int paste_free_index(struct paste_stack *, u_int);
-void paste_add(struct paste_stack *, u_char *, size_t, u_int);
-int paste_replace(struct paste_stack *, u_int, u_char *, size_t);
+void paste_add(struct paste_stack *, char *, size_t, u_int);
+int paste_replace(struct paste_stack *, u_int, char *, size_t);
/* clock.c */
extern const char clock_table[14][5][5];