cleaned up myc library (M.Z.)

This commit is contained in:
cvs
2003-04-08 13:30:45 +00:00
parent 5ebd84ddc7
commit bfb09e4593
18 changed files with 58 additions and 613 deletions

View File

@@ -1,3 +1,4 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
@@ -9,7 +10,6 @@
#include <string.h>
#include <assert.h>
#include "myc_mem.h"
#include "sys_util.h"
#include "myc_err.h"
#include "coc_logfile.h"
#include "coc_util.h"
@@ -477,6 +477,12 @@ void CocShowHandlers(char *buf, int buf_len) {
return;
}
#ifdef __VMS
typedef size_t socklen_type;
#else
typedef int socklen_type;
#endif
int CocHandle1Request(int tmo_msec, int fd) {
struct sockaddr_in cadr;
struct hostent *h;
@@ -484,7 +490,7 @@ int CocHandle1Request(int tmo_msec, int fd) {
CocClient *cl, *cl0;
CocVar *var;
int i, lmask, newfd, n, iret;
sys_adr_len cadrlen; /* see sys_util.h */
socklen_type cadrlen;
char *err, *cmd, *arg, *varname;
void *base;