diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-07-03 19:31:28 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-07-04 02:31:55 +0000 |
commit | b8d96a45b763cd2e227b325dbc12e1f811b290b0 (patch) | |
tree | 119127feea5249674fa17b0f425c0187eeb2fa53 /ui/service_response_time.c | |
parent | c60b8eac0cfe60a58f5a8e606b8a7083b12963d3 (diff) |
Squelch a compiler warning.
Some systems still offer the old V7 index()/rindex() routines, in
addition to the standard strchr()/strrchr() routines, so don't use
"index" as a variable. (Maybe the folks at Center 127 were thinking of
the PL/I index() function, but that's more like strstr(), so it wasn't a
good choice of name.)
Change-Id: I6193a93684c0684c83357def3d76e0dbd808e29b
Reviewed-on: https://code.wireshark.org/review/9485
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/service_response_time.c')
-rw-r--r-- | ui/service_response_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/service_response_time.c b/ui/service_response_time.c index 528675bb75..cf8267ed57 100644 --- a/ui/service_response_time.c +++ b/ui/service_response_time.c @@ -25,12 +25,12 @@ #include "service_response_time.h" extern const char* -service_response_time_get_column_name (int index) +service_response_time_get_column_name (int idx) { static const char *default_titles[] = { "Index", "Procedure", "Calls", "Min SRT (s)", "Max SRT (s)", "Avg SRT (s)", "Sum SRT (s)" }; - if (index < 0 || index >= NUM_SRT_COLUMNS) return "(Unknown)"; - return default_titles[index]; + if (idx < 0 || idx >= NUM_SRT_COLUMNS) return "(Unknown)"; + return default_titles[idx]; } /* |