aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/variable.c')
-rw-r--r--FICS/variable.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/FICS/variable.c b/FICS/variable.c
index 71a2c77..0eb82ca 100644
--- a/FICS/variable.c
+++ b/FICS/variable.c
@@ -352,19 +352,22 @@ PRIVATE int set_uscf(int p, char *var, char *val)
return VAR_OK;
}
*/
-PRIVATE int set_time(int p, char *var, char *val)
+
+PRIVATE int
+set_time(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 > 240))
- return VAR_BADVAL;
- parray[p].d_time = v;
- pprintf(p, "Default time 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 > 240)
+ return VAR_BADVAL;
+
+ parray[p].d_time = v;
+ pprintf(p, "Default time set to %d.\n", v);
+ return VAR_OK;
}
PRIVATE int