mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 01:04:06 +01:00
Sync OpenBSD patchset 482:
tv member of struct paste_buffer is updated but not otherwise used, so remove it.
This commit is contained in:
parent
0a4d830ee1
commit
a090b78e8d
6
paste.c
6
paste.c
@ -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>
|
||||
@ -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);
|
||||
}
|
||||
|
3
tmux.h
3
tmux.h
@ -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>
|
||||
@ -891,7 +891,6 @@ struct layout_cell {
|
||||
struct paste_buffer {
|
||||
char *data;
|
||||
size_t size;
|
||||
struct timeval tv;
|
||||
};
|
||||
ARRAY_DECL(paste_stack, struct paste_buffer *);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user