diff options
Diffstat (limited to '')
-rw-r--r-- | common/audit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/audit.c b/common/audit.c index 706012ebe..3e1970d8c 100644 --- a/common/audit.c +++ b/common/audit.c @@ -115,7 +115,9 @@ clear_helptags (audit_ctx_t ctx) static const char * event2str (audit_event_t event) { - int idx = eventstr_msgidxof (event); + /* We need the cast so that compiler does not complain about an + always true comparison (>= 0) for an unsigned value. */ + int idx = eventstr_msgidxof ((int)event); if (idx == -1) return "Unknown event"; else |