From 672bfa52da16a68536305a5b92ec6e56fac9585d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 24 Aug 2011 14:37:41 -0700 Subject: Formatting --- src/detector.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/detector.c b/src/detector.c index 29c9fd24..96646dc1 100644 --- a/src/detector.c +++ b/src/detector.c @@ -412,18 +412,16 @@ struct panel *find_panel(struct detector *det, double fs, double ss) int find_panel_number(struct detector *det, int fs, int ss) { - int p; - - for ( p=0; pn_panels; p++ ) { - if ( (fs >= det->panels[p].min_fs) - && (fs <= det->panels[p].max_fs) - && (ss >= det->panels[p].min_ss) - && (ss <= det->panels[p].max_ss) ) { - return p; - } - } - - return -1; + int p; + + for ( p=0; pn_panels; p++ ) { + if ( (fs >= det->panels[p].min_fs) + && (fs <= det->panels[p].max_fs) + && (ss >= det->panels[p].min_ss) + && (ss <= det->panels[p].max_ss) ) return p; + } + + return -1; } -- cgit v1.2.3