X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmsgform.c;h=1fbe5d42ffc42b68295f05176649e16c596a1d58;hb=ae822088bca5cce3d6c3ef7f6d312a6d5de7a77c;hp=6b47b83ef99e53b0aaf75d9903135060de2c544f;hpb=318aa2adec10d6291ca684f3362c70ab89796cc3;p=citadel.git diff --git a/citadel/msgform.c b/citadel/msgform.c index 6b47b83ef..1fbe5d42f 100644 --- a/citadel/msgform.c +++ b/citadel/msgform.c @@ -21,19 +21,19 @@ #include #include -long finduser(); -int fmout(); -int fpgetfield(); int qwk = 0; +int fpgetfield(FILE *fp, char *string); +int fmout(int width, FILE *fp); + #ifdef NO_STRERROR /* * replacement strerror() for systems that don't have it */ -char *strerror(e) -int e; { +char *strerror(int e) +{ static char buf[32]; sprintf(buf,"errno = %d",e); @@ -41,9 +41,8 @@ int e; { } #endif -void main(argc,argv) -int argc; -char *argv[]; { +void main(int argc, char **argv) +{ struct tm *tm; int a,b,e,mtype,aflag; char bbb[1024]; @@ -104,9 +103,9 @@ TOP: do { goto TOP; } -int fpgetfield(fp,string) /* level-2 break out next null-terminated string */ -FILE *fp; -char string[]; +int fpgetfield(FILE *fp, char *string) /* level-2 break out next null-terminated string */ + + { int a,b; strcpy(string,""); @@ -120,10 +119,8 @@ a=0; return(0); } -int fmout(width,fp) -int width; -FILE *fp; - { +int fmout(int width, FILE *fp) +{ int a,b,c; int real = 0; int old = 0;