Commit a3794773 authored by Ian Murdock's avatar Ian Murdock

*** empty log message ***

parent 100d3592
/* test-attr-produce.c: Test delivery of events, with attributes (producer). */
static char rcsid[] = "$Id: test-attr-produce.c,v 1.3 2002-01-29 12:18:49 imurdock Exp $";
static char rcsid[] = "$Id: test-attr-produce.c,v 1.4 2002-01-29 17:23:34 imurdock Exp $";
#include <event.h>
......@@ -13,6 +13,12 @@ main(int argc, char **argv)
int c;
struct timeval time;
/* Get current time: */
gettimeofday(&time, NULL);
TRACE("time.tv_sec = %ld, time.tv_usec = %ld\n",
time.tv_sec,
time.tv_usec);
while ((c = getopt(argc, argv, "s:")) != -1) {
switch (c) {
case 's':
......@@ -62,10 +68,6 @@ main(int argc, char **argv)
return 1;
}
gettimeofday(&time, NULL);
TRACE("time.tv_sec = %ld, time.tv_usec = %ld\n",
time.tv_sec,
time.tv_usec);
if (event_notification_put_opaque(handle, notification, "opaque", &time,
sizeof(time))
== 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment