aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/variable.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/FICS/variable.c b/FICS/variable.c
index 7fa058b..71a2c77 100644
--- a/FICS/variable.c
+++ b/FICS/variable.c
@@ -367,19 +367,21 @@ PRIVATE int set_time(int p, char *var, char *val)
return VAR_OK;
}
-PRIVATE int set_inc(int p, char *var, char *val)
+PRIVATE int
+set_inc(int p, char *var, char *val)
{
- int v = -1;
+ int v = -1;
- if (!val)
- return VAR_BADVAL;
- if (sscanf(val, "%d", &v) != 1)
- return VAR_BADVAL;
- if ((v < 0) || (v > 300))
- return VAR_BADVAL;
- parray[p].d_inc = v;
- pprintf(p, "Default increment set to %d.\n", v);
- return VAR_OK;
+ if (!val)
+ return VAR_BADVAL;
+ if (sscanf(val, "%d", &v) != 1)
+ return VAR_BADVAL;
+ if (v < 0 || v > 300)
+ return VAR_BADVAL;
+
+ parray[p].d_inc = v;
+ pprintf(p, "Default increment set to %d.\n", v);
+ return VAR_OK;
}
PRIVATE int