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 <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
This commit is contained in:
Martin Mathieson 2020-03-25 09:03:17 +00:00 committed by Martin Mathieson
parent 5fbe2e4df8
commit 3d730f84fe
1 changed files with 1 additions and 1 deletions

View File

@ -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)