From: Benjamin Kaduk Date: Mon, 8 Sep 2014 17:40:48 +0000 (-0400) Subject: Fix memset invocation in rx/event-t.c X-Git-Tag: upstream/1.8.0_pre1^2~588 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=75d9e4b954d86ff2efbd230cba95b559b88de6d8;p=packages%2Fo%2Fopenafs.git Fix memset invocation in rx/event-t.c The order of the parameters was swapped, which recent gcc complains loudly about. Change-Id: I2329ca3dd0eee81639731e78172621b580199024 Reviewed-on: http://gerrit.openafs.org/11451 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/tests/rx/event-t.c b/tests/rx/event-t.c index 3e7ab0ae3..2812fa5bd 100644 --- a/tests/rx/event-t.c +++ b/tests/rx/event-t.c @@ -105,7 +105,7 @@ main(void) pthread_mutex_init(&eventMutex, NULL); pthread_cond_init(&eventCond, NULL); - memset(events, sizeof(events), 0); + memset(events, 0, sizeof(events)); pthread_mutex_init(&eventListMutex, NULL); /* Start up the event system */