From d5335f9e40f6e9533f7812d153b9727bcc04aa4e Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Sat, 9 Nov 2013 11:56:34 +0000 Subject: libglusterfs: fix bug in timespec adjustment The argument to the timespec_adjust_delta() function introudced in commit 6836118b21 needs to be passed by reference rather than by value for the function to do it's job. BUG: 1028663 Change-Id: I62a3636906e67ed35b7786e9553f6819b48f3626 Signed-off-by: Ravishankar N Reviewed-on: http://review.gluster.org/6243 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- libglusterfs/src/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/timer.c') diff --git a/libglusterfs/src/timer.c b/libglusterfs/src/timer.c index 0ad6ea59fc2..a059cc2122f 100644 --- a/libglusterfs/src/timer.c +++ b/libglusterfs/src/timer.c @@ -48,7 +48,7 @@ gf_timer_call_after (glusterfs_ctx_t *ctx, return NULL; } timespec_now (&event->at); - timespec_adjust_delta (event->at, delta); + timespec_adjust_delta (&event->at, delta); at = TS (event->at); event->callbk = callbk; event->data = data; -- cgit