From 62de48172babd007010398d15bbd1f2c763f33be Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 5 Jun 2017 17:00:59 -0400 Subject: [PATCH] syntax cleanup --- textclient/src/citadel_ipc.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/textclient/src/citadel_ipc.c b/textclient/src/citadel_ipc.c index 401441832..258a3ea4a 100644 --- 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 */ -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; @@ -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); - 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 */ -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; @@ -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); - 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; - 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; - return CtdlIPCGenericCommand(ipc, "SNET", listing, strlen(listing), - NULL, NULL, cret); + return CtdlIPCGenericCommand(ipc, "SNET", listing, strlen(listing), NULL, NULL, cret); } -- 2.30.2