diff options
author | Martin Mathieson <martin.mathieson@keysight.com> | 2020-03-25 09:03:17 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2020-03-25 09:55:40 +0000 |
commit | 3d730f84fe42d7dc78af3f8313917cacb028c3b0 (patch) | |
tree | fc7b01d6978e38fdb01f0ae2ca9fdbe710a3a8a2 /wsutil/nstime.h | |
parent | 5fbe2e4df8aa4f7b0268b83de8832d1a94afcbf5 (diff) |
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>
Diffstat (limited to 'wsutil/nstime.h')
-rw-r--r-- | wsutil/nstime.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |