lint to make cc shut up
SCCS-vsn: old/talk/talkd/print.c 5.2
SCCS-vsn: old/talk/talkd/process.c 5.2
SCCS-vsn: old/talk/talkd/table.c 5.2
SCCS-vsn: old/talk/talkd/talkd.c 5.2
, "type is %d, answer is %d, id = %d\n\n", response->type
, response->answer, response->id_num);
fflush(debugout);
, "type is %d, answer is %d, id = %d\n\n", response->type
, response->answer, response->id_num);
fflush(debugout);
response->answer = result;
return;
}
response->answer = result;
return;
}
- hp = gethostbyaddr(&request->ctl_addr.sin_addr,
+ hp = gethostbyaddr((char *)&request->ctl_addr.sin_addr,
sizeof(struct in_addr), AF_INET);
if (hp == (struct hostent *)0) {
response->answer = MACHINE_UNKNOWN;
sizeof(struct in_addr), AF_INET);
if (hp == (struct hostent *)0) {
response->answer = MACHINE_UNKNOWN;
extern int debug;
struct timeval tp;
extern int debug;
struct timeval tp;
typedef struct table_entry TABLE_ENTRY;
typedef struct table_entry TABLE_ENTRY;
int sockt;
int debug = 0;
FILE *debugout;
int sockt;
int debug = 0;
FILE *debugout;
long lastmsgtime;
char hostname[32];
long lastmsgtime;
char hostname[32];
extern int errno;
fromlen = sizeof(from);
extern int errno;
fromlen = sizeof(from);
- cc = recvfrom(0, (char *)&request, sizeof (request), 0,
- &from, &fromlen);
+ cc = recvfrom(0, (char *) &request, sizeof (request), 0,
+ (struct sockaddr *)&from, &fromlen);
if (cc != sizeof(request)) {
if (cc < 0 && errno != EINTR)
perror("recvfrom");
if (cc != sizeof(request)) {
if (cc < 0 && errno != EINTR)
perror("recvfrom");
process_request(&request, &response);
/* can block here, is this what I want? */
cc = sendto(sockt, (char *) &response,
process_request(&request, &response);
/* can block here, is this what I want? */
cc = sendto(sockt, (char *) &response,
- sizeof (response), 0, &request.ctl_addr,
+ sizeof (response), 0, (struct sockaddr *)&request.ctl_addr,
sizeof (request.ctl_addr));
if (cc != sizeof(response))
perror("sendto");
}
}
sizeof (request.ctl_addr));
if (cc != sizeof(response))
perror("sendto");
}
}