summaryrefslogtreecommitdiffstats
path: root/paste.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-20 17:31:48 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-20 17:31:48 +0000
commit4e4f71febb506fc83abb75ca163eca250ca4ac2a (patch)
tree0b8f32021f4f9df9cad773d456d1fd24e48bfb87 /paste.c
parent9798dcd4dfa481eb28096a637f5b555a12354ad8 (diff)
Swap in new paste buffer code and add a couple more commands.
Diffstat (limited to 'paste.c')
-rw-r--r--paste.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/paste.c b/paste.c
index 1dedd6be..0b50fe95 100644
--- a/paste.c
+++ b/paste.c
@@ -1,4 +1,4 @@
-/* $Id: paste.c,v 1.1 2008-06-20 08:36:20 nicm Exp $ */
+/* $Id: paste.c,v 1.2 2008-06-20 17:31:48 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -105,7 +105,7 @@ paste_add(struct paste_stack *ps, const char *data)
ARRAY_INSERT(ps, 0, pb);
pb->data = xstrdup(data);
- if (clock_gettime(CLOCK_REALTIME, &pb->created) != 0)
+ if (clock_gettime(CLOCK_REALTIME, &pb->ts) != 0)
fatal("clock_gettime");
}
@@ -121,7 +121,7 @@ paste_replace(struct paste_stack *ps, u_int idx, const char *data)
xfree(pb->data);
pb->data = xstrdup(data);
- if (clock_gettime(CLOCK_REALTIME, &pb->created) != 0)
+ if (clock_gettime(CLOCK_REALTIME, &pb->ts) != 0)
fatal("clock_gettime");
return (0);