summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/paste.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-03 17:17:25 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-03 17:17:25 +0000
commit62955076325b9c14c23349c868f41c5d1bedd977 (patch)
treecdada3401a71c2b850b208d97371e8e82adef276 /usr.bin/tmux/paste.c
parente1dbad2aca6d6186c428a3bf598df7b5ee6a13f3 (diff)
tv member of struct paste_buffer is updated but not otherwise used, so remove
it.
Diffstat (limited to 'usr.bin/tmux/paste.c')
-rw-r--r--usr.bin/tmux/paste.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tmux/paste.c b/usr.bin/tmux/paste.c
index a00c876e74f..d7da3e13802 100644
--- a/usr.bin/tmux/paste.c
+++ b/usr.bin/tmux/paste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: paste.c,v 1.5 2009/09/20 14:58:12 nicm Exp $ */
+/* $OpenBSD: paste.c,v 1.6 2009/11/03 17:17:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -116,8 +116,6 @@ paste_add(struct paste_stack *ps, u_char *data, size_t size, u_int limit)
pb->data = data;
pb->size = size;
- if (gettimeofday(&pb->tv, NULL) != 0)
- fatal("gettimeofday failed");
}
int
@@ -133,8 +131,6 @@ paste_replace(struct paste_stack *ps, u_int idx, u_char *data, size_t size)
pb->data = data;
pb->size = size;
- if (gettimeofday(&pb->tv, NULL) != 0)
- fatal("gettimeofday failed");
return (0);
}