From 3d730f84fe42d7dc78af3f8313917cacb028c3b0 Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Wed, 25 Mar 2020 09:03:17 +0000 Subject: nstime: make declaration arg order match definition wsutil/nstime.c:116: warning: Function 'nstime_sum' argument order different: declaration 'sum, b, a' definition 'sum, a, b' Most likely copy/paste error from nstime_delta() above where that order makes sense. Change-Id: Icea52b21781ebc09b2b80acdb34d61a28eb1e498 Reviewed-on: https://code.wireshark.org/review/36562 Petri-Dish: Martin Mathieson Tested-by: Petri Dish Buildbot Reviewed-by: Martin Mathieson --- wsutil/nstime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsutil/nstime.h b/wsutil/nstime.h index 3cb3b94f77..6c50e1fb92 100644 --- a/wsutil/nstime.h +++ b/wsutil/nstime.h @@ -91,7 +91,7 @@ WS_DLL_PUBLIC void nstime_delta(nstime_t *delta, const nstime_t *b, const nstime * Note that it is acceptable for two or more of the arguments to point at the * same structure. */ -WS_DLL_PUBLIC void nstime_sum(nstime_t *sum, const nstime_t *b, const nstime_t *a ); +WS_DLL_PUBLIC void nstime_sum(nstime_t *sum, const nstime_t *a, const nstime_t *b ); /** sum += a */ #define nstime_add(sum, a) nstime_sum(sum, sum, a) -- cgit v1.2.3