summaryrefslogtreecommitdiffstats
path: root/ipecamera/ipecamera.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2013-09-05 12:47:05 +0400
committerSuren A. Chilingaryan <csa@suren.me>2013-09-05 12:47:05 +0400
commitbdae4224e54fd4fb1fea88299b4cbd9664e2f800 (patch)
tree811d44693b524e6776324a46fb9a38702cea264c /ipecamera/ipecamera.c
parent96273555a35640dd8c0e2f9ad540ceafa375da1e (diff)
downloadipecamera-bdae4224e54fd4fb1fea88299b4cbd9664e2f800.tar.gz
ipecamera-bdae4224e54fd4fb1fea88299b4cbd9664e2f800.tar.bz2
ipecamera-bdae4224e54fd4fb1fea88299b4cbd9664e2f800.tar.xz
ipecamera-bdae4224e54fd4fb1fea88299b4cbd9664e2f800.zip
I have no clue how to properly write switch statements.... Fixed.
Diffstat (limited to 'ipecamera/ipecamera.c')
-rw-r--r--ipecamera/ipecamera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipecamera/ipecamera.c b/ipecamera/ipecamera.c
index 4ba0e9e..1b8752e 100644
--- a/ipecamera/ipecamera.c
+++ b/ipecamera/ipecamera.c
@@ -446,7 +446,7 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev
// it would be greate to detect hyperthreading cores and ban them
switch (ctx->n_preproc) {
case 1: break;
- case 2-3: ctx->n_preproc -= 1; break;
+ case 2 ... 3: ctx->n_preproc -= 1; break;
default: ctx->n_preproc -= 2; break;
}