Sync OpenBSD patchset 482:

tv member of struct paste_buffer is updated but not otherwise used, so remove
it.
This commit is contained in:
Tiago Cunha 2009-11-04 22:39:20 +00:00
parent 0a4d830ee1
commit a090b78e8d
2 changed files with 2 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $Id: paste.c,v 1.10 2009-09-20 22:11:27 tcunha Exp $ */ /* $Id: paste.c,v 1.11 2009-11-04 22:39:20 tcunha Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * 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->data = data;
pb->size = size; pb->size = size;
if (gettimeofday(&pb->tv, NULL) != 0)
fatal("gettimeofday failed");
} }
int int
@ -133,8 +131,6 @@ paste_replace(struct paste_stack *ps, u_int idx, u_char *data, size_t size)
pb->data = data; pb->data = data;
pb->size = size; pb->size = size;
if (gettimeofday(&pb->tv, NULL) != 0)
fatal("gettimeofday failed");
return (0); return (0);
} }

3
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.492 2009-11-04 22:37:18 tcunha Exp $ */ /* $Id: tmux.h,v 1.493 2009-11-04 22:39:20 tcunha Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -891,7 +891,6 @@ struct layout_cell {
struct paste_buffer { struct paste_buffer {
char *data; char *data;
size_t size; size_t size;
struct timeval tv;
}; };
ARRAY_DECL(paste_stack, struct paste_buffer *); ARRAY_DECL(paste_stack, struct paste_buffer *);