diff --git a/ChangeLog b/ChangeLog index e07def2e1..16bc7956a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-10-24 Robert Larice + * src/spicelib/devices/ndev/ndevset.c : + use char* instead of void* + 2010-10-24 Robert Larice * src/frontend/hpgl.c , * src/frontend/plotting/plot5.c , diff --git a/src/spicelib/devices/ndev/ndevset.c b/src/spicelib/devices/ndev/ndevset.c index 0a1c25780..a60f390cb 100644 --- a/src/spicelib/devices/ndev/ndevset.c +++ b/src/spicelib/devices/ndev/ndevset.c @@ -81,7 +81,7 @@ int NDEVmodelConnect(NDEVmodel *inModel) the resolved address to a readable format. */ struct sockaddr_in sa; /* Connection address. */ - void * buf = tmalloc(128); + char *buf = (char*) tmalloc(128); /* Look up the hostname with DNS. gethostbyname (at least most UNIX versions of it) properly @@ -139,17 +139,17 @@ int NDEVmodelConnect(NDEVmodel *inModel) return E_PRIVATE; } - sprintf((char *)buf,NG_QUERY); - send(model->sock,buf,128,0); - if(recv(model->sock,buf,128,MSG_WAITALL)<128) + sprintf(buf, NG_QUERY); + send(model->sock, buf, 128, 0); + if(recv(model->sock, buf, 128, MSG_WAITALL) < 128) { fprintf(stderr, "NDEV: Remote answer error. %s\n",strerror(errno)); return E_PRIVATE; } - if(strncmp((char *)buf,NDEV_REPLY,sizeof(NDEV_REPLY))) + if(strncmp(buf, NDEV_REPLY, sizeof(NDEV_REPLY))) { - fprintf(stderr, "NDEV: Remote answer error. %s\n",(char *)buf); + fprintf(stderr, "NDEV: Remote answer error. %s\n", buf); return E_PRIVATE; }