diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-11-25 09:40:30 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-11-25 09:40:30 +0100 |
commit | edad908792317422e2f0371d8c83396caee6b8e7 (patch) | |
tree | 10c84c5db801c6df7fd85f9633269dbaa0ed1392 /src/libstrongswan/processing/processor.c | |
parent | 4f775afda9ad0ad023c6c521f3dd68cca1e3528b (diff) | |
download | strongswan-edad908792317422e2f0371d8c83396caee6b8e7.tar.bz2 strongswan-edad908792317422e2f0371d8c83396caee6b8e7.tar.xz |
Fixed compiler warnings regarding enum comparison.
Warnings like
comparison of unsigned expression < 0 is always false
are reported with -Wextra when enum types that are compiled to an
unsigned type (which is up to the compiler) are checked for negativity.
Diffstat (limited to 'src/libstrongswan/processing/processor.c')
-rw-r--r-- | src/libstrongswan/processing/processor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/processing/processor.c b/src/libstrongswan/processing/processor.c index be33fcd84..18af2383a 100644 --- a/src/libstrongswan/processing/processor.c +++ b/src/libstrongswan/processing/processor.c @@ -230,7 +230,7 @@ METHOD(processor_t, get_idle_threads, u_int, */ static job_priority_t sane_prio(job_priority_t prio) { - if (prio < 0 || prio >= JOB_PRIO_MAX) + if ((int)prio < 0 || prio >= JOB_PRIO_MAX) { return JOB_PRIO_MAX - 1; } |