Get rid of "s_char", "register" and 0 used instead of NULL in the

client source.  No functional changes.
This commit is contained in:
Marc Olzheim 2005-03-15 21:47:41 +00:00
parent 3e7d57a8c9
commit 6a99690e4e
14 changed files with 117 additions and 126 deletions

View file

@ -49,10 +49,10 @@
int
serverio(int s, struct ioqueue *ioq)
{
s_char *buf;
char *buf;
int n;
if ((buf = malloc(ioq->bsize)) == 0) {
if ((buf = malloc(ioq->bsize)) == NULL) {
fprintf(stderr, "malloc server i/o failed\n");
return 0;
}
@ -75,7 +75,7 @@ serverio(int s, struct ioqueue *ioq)
return 0;
}
if (n != ioq->bsize)
buf = (s_char *)realloc(buf, n);
buf = (char *)realloc(buf, n);
ioq_write(ioq, buf, n);
return 1;
}