From bdae4224e54fd4fb1fea88299b4cbd9664e2f800 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 5 Sep 2013 12:47:05 +0400 Subject: I have no clue how to properly write switch statements.... Fixed. --- ipecamera/ipecamera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipecamera') 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; } -- cgit v1.2.3