commit | 19979e176ee078345868b78787634c60af2e1921 | [log] [tgz] |
---|---|---|
author | Cyril Bonté <cyril.bonte@free.fr> | Wed Apr 04 12:57:21 2012 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Apr 05 09:58:27 2012 +0200 |
tree | 9a6cba1ef6a4331a84251be8949980021a31459a | |
parent | aa0a45d2edda92a1239d213bf306338ad912d9ca [diff] |
MINOR: stats admin: reduce memcmp()/strcmp() calls on status codes memcmp()/strcmp() calls were needed in different parts of code to determine the status code. Each new status code introduces new calls, which can become inefficient and source of bugs. This patch reorganizes the code to rely on a numeric status code internally and to be hopefully more generic.