projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70b30eb
)
syntax cleanup
author
Art Cancro
<ajc@citadel.org>
Mon, 5 Jun 2017 21:00:59 +0000
(17:00 -0400)
committer
Art Cancro
<ajc@citadel.org>
Mon, 5 Jun 2017 21:00:59 +0000
(17:00 -0400)
textclient/src/citadel_ipc.c
patch
|
blob
|
history
diff --git
a/textclient/src/citadel_ipc.c
b/textclient/src/citadel_ipc.c
index 4014418327c53095ade16b96114f5c050f21a971..258a3ea4a6a7a9fe13ad84e7b33575d5e9ac95e1 100644
(file)
--- a/
textclient/src/citadel_ipc.c
+++ b/
textclient/src/citadel_ipc.c
@@
-2047,8
+2047,7
@@
int CtdlIPCSetSystemConfig(CtdlIPC *ipc, const char *listing, char *cret)
/* CONF GETSYS */
/* CONF GETSYS */
-int CtdlIPCGetSystemConfigByType(CtdlIPC *ipc, const char *mimetype,
- char **listing, char *cret)
+int CtdlIPCGetSystemConfigByType(CtdlIPC *ipc, const char *mimetype, char **listing, char *cret)
{
register int ret;
char *aaa;
{
register int ret;
char *aaa;
@@
-2062,18
+2061,16
@@
int CtdlIPCGetSystemConfigByType(CtdlIPC *ipc, const char *mimetype,
aaa = malloc(strlen(mimetype) + 13);
if (!aaa) return -1;
sprintf(aaa, "CONF GETSYS|%s", mimetype);
aaa = malloc(strlen(mimetype) + 13);
if (!aaa) return -1;
sprintf(aaa, "CONF GETSYS|%s", mimetype);
- ret = CtdlIPCGenericCommand(ipc, aaa, NULL, 0,
- listing, &bytes, cret);
- free(aaa);
- return ret;
+ ret = CtdlIPCGenericCommand(ipc, aaa, NULL, 0, listing, &bytes, cret);
+ free(aaa);
+ return ret;
}
/* CONF PUTSYS */
}
/* CONF PUTSYS */
-int CtdlIPCSetSystemConfigByType(CtdlIPC *ipc, const char *mimetype,
- const char *listing, char *cret)
+int CtdlIPCSetSystemConfigByType(CtdlIPC *ipc, const char *mimetype, const char *listing, char *cret)
{
{
- register int ret;
+
register int ret;
char *aaa;
if (!cret) return -2;
char *aaa;
if (!cret) return -2;
@@
-2083,10
+2080,9
@@
int CtdlIPCSetSystemConfigByType(CtdlIPC *ipc, const char *mimetype,
aaa = malloc(strlen(mimetype) + 13);
if (!aaa) return -1;
sprintf(aaa, "CONF PUTSYS|%s", mimetype);
aaa = malloc(strlen(mimetype) + 13);
if (!aaa) return -1;
sprintf(aaa, "CONF PUTSYS|%s", mimetype);
- ret = CtdlIPCGenericCommand(ipc, aaa, listing, strlen(listing),
- NULL, NULL, cret);
- free(aaa);
- return ret;
+ ret = CtdlIPCGenericCommand(ipc, aaa, listing, strlen(listing), NULL, NULL, cret);
+ free(aaa);
+ return ret;
}
}
@@
-2099,8
+2095,7
@@
int CtdlIPCGetRoomNetworkConfig(CtdlIPC *ipc, char **listing, char *cret)
if (!listing) return -2;
if (*listing) return -2;
if (!listing) return -2;
if (*listing) return -2;
- return CtdlIPCGenericCommand(ipc, "GNET", NULL, 0,
- listing, &bytes, cret);
+ return CtdlIPCGenericCommand(ipc, "GNET", NULL, 0, listing, &bytes, cret);
}
}
@@
-2110,8
+2105,7
@@
int CtdlIPCSetRoomNetworkConfig(CtdlIPC *ipc, const char *listing, char *cret)
if (!cret) return -2;
if (!listing) return -2;
if (!cret) return -2;
if (!listing) return -2;
- return CtdlIPCGenericCommand(ipc, "SNET", listing, strlen(listing),
- NULL, NULL, cret);
+ return CtdlIPCGenericCommand(ipc, "SNET", listing, strlen(listing), NULL, NULL, cret);
}
}