timeval: Hide "memory leak" from Valgrind.
authorBen Pfaff <blp@nicira.com>
Thu, 24 Jun 2010 18:35:27 +0000 (11:35 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 25 Jun 2010 20:28:34 +0000 (13:28 -0700)
commit4cfffdd86bbb66408702eab2d9dbc8d1cfe51347
tree84de7f2c86c47df3d83d6a907fa375676e1fd70f
parent07c2523c0c48a7b285b0931f33a49fc129f2c396
timeval: Hide "memory leak" from Valgrind.

In glibc, "timer_t" is a "void *" that appears to point into malloc()'d
memory.  By throwing it away entirely, we leak it, which makes valgrind
complain.  We really don't ever care to use the timer object again, but
we can't destroy it without stopping the periodic timer.  So make it
static to avoid a warning from Valgrind.
lib/timeval.c