X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitadelapi.c;h=199ea68c17aee35839e17a0ae8945e326cfa72f3;hb=ae822088bca5cce3d6c3ef7f6d312a6d5de7a77c;hp=4ada1e108dde2f1099aa8d51b189639614e2b6a4;hpb=318aa2adec10d6291ca684f3362c70ab89796cc3;p=citadel.git diff --git a/citadel/citadelapi.c b/citadel/citadelapi.c index 4ada1e108..199ea68c1 100644 --- a/citadel/citadelapi.c +++ b/citadel/citadelapi.c @@ -6,6 +6,9 @@ #include #include #include "citadel.h" +#include "serv_info.h" +#include "ipc.h" +#include "citadelapi.h" struct CtdlInternalList { @@ -18,9 +21,7 @@ struct CtdlServerHandle CtdlAppHandle; struct CtdlServInfo CtdlAppServInfo; int CtdlErrno = 0; -void CtdlMain(); - -void logoff(exitcode) { +void logoff(int exitcode) { exit(exitcode); } @@ -123,9 +124,9 @@ long CtdlInternalExtractLong(char *source, long int parmnum) * */ -main(argc, argv) -int argc; -char *argv[]; { +int +main(int argc, char *argv[]) +{ int a; char buf[256]; @@ -168,7 +169,7 @@ char *argv[]; { /* Set up the server environment to our liking */ - CtdlInternalGetServInfo(&CtdlAppServInfo, 0); + CtdlInternalGetServInfo(&CtdlAppServInfo); sprintf(buf, "IDEN 0|5|006|CitadelAPI Client"); serv_puts(buf); @@ -206,7 +207,7 @@ char *argv[]; { } -int CtdlGetLastError() { +int CtdlGetLastError(void) { return CtdlErrno; }