aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-03 03:16:40 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-03 03:18:01 +0100
commit2fd74390e2af6701f638c8186bd1128bade5b5f4 (patch)
tree98c43131b630f10d0afcbb946764359892293b15
parent10b97f1148ee5068b9b97a6ecbdc45ac14145e12 (diff)
Reformatted functions
-rw-r--r--FICS/comproc.c53
1 files changed, 28 insertions, 25 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index 9a21545..0a350d8 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -1282,39 +1282,42 @@ PUBLIC int com_refresh(int p, param_list param)
return COM_OK;
}
-PUBLIC int com_prefresh(int p, param_list param)
+PUBLIC int
+com_prefresh(int p, param_list param)
{
- int retval, part = parray[p].partner;
+ int retval, part;
- if (part < 0) {
- pprintf(p, "You do not have a partner.\n");
- return COM_OK;
- }
- retval = pcommand (p, "refresh %s", parray[part].name);
- if (retval == COM_OK)
- return COM_OK_NOPROMPT;
- else
- return retval;
+ if ((part = parray[p].partner) < 0) {
+ pprintf(p, "You do not have a partner.\n");
+ return COM_OK;
+ } else if ((retval = pcommand(p, "refresh %s", parray[part].name)) ==
+ COM_OK)
+ return COM_OK_NOPROMPT;
+ return retval;
}
-PUBLIC int com_open(int p, param_list param)
+PUBLIC int
+com_open(int p, param_list param)
{
- int retval;
- ASSERT(param[0].type == TYPE_NULL);
- if ((retval = pcommand(p, "set open")) != COM_OK)
- return retval;
- else
- return COM_OK_NOPROMPT;
+ int retval;
+
+ ASSERT(param[0].type == TYPE_NULL);
+
+ if ((retval = pcommand(p, "set open")) != COM_OK)
+ return retval;
+ return COM_OK_NOPROMPT;
}
-PUBLIC int com_simopen(int p, param_list param)
+PUBLIC int
+com_simopen(int p, param_list param)
{
- int retval;
- ASSERT(param[0].type == TYPE_NULL);
- if ((retval = pcommand(p, "set simopen")) != COM_OK)
- return retval;
- else
- return COM_OK_NOPROMPT;
+ int retval;
+
+ ASSERT(param[0].type == TYPE_NULL);
+
+ if ((retval = pcommand(p, "set simopen")) != COM_OK)
+ return retval;
+ return COM_OK_NOPROMPT;
}
PUBLIC int