--- projects/cms/source/ihost/ihost.c 2002/05/13 09:22:02 1.7 +++ projects/cms/source/ihost/ihost.c 2002/05/13 11:01:27 1.8 @@ -71,12 +71,12 @@ int ihost_configure(ihost_state_t *ihost_state){ /* Need to open 2 files, one for reading one for writing, as it gets confused if we only use 1 :) */ if ((fm_fd_r=fdopen(sd,"r")) == NULL){ - errf("Failed to open stream (%m)"); + errf("Failed to open read stream (%m)"); return -1; } if ((fm_fd_w=fdopen(dup(sd),"w")) == NULL){ - errf("Failed to open stream (%m)"); + errf("Failed to open write stream (%m)"); return -1; } @@ -155,7 +155,7 @@ int ihost_configure(ihost_state_t *ihost_state){ errf("strdup failed (%m)"); return -1; } - reply=++reply_ptr; + reply=reply_ptr + 1; reply_ptr=strchr(reply,';'); if (reply_ptr==NULL){ errf("Incorrect data returned 2"); @@ -163,7 +163,7 @@ int ihost_configure(ihost_state_t *ihost_state){ } *reply_ptr='\0'; ihost_state->server_udp_port=atoi(reply); - reply=++reply_ptr; + reply=reply_ptr+1; ihost_state->server_tcp_port=atoi(reply); if ((ihost_state->server_tcp_port==0) || (ihost_state->server_udp_port==0)){ errf("Incorrect data returned 3 "); @@ -177,11 +177,11 @@ int ihost_configure(ihost_state_t *ihost_state){ } if(fclose(fm_fd_r) !=0){ - errf("Failed to close FD (%m)"); + errf("Failed to close read FD (%m)"); return -1; } if(fclose(fm_fd_w) !=0){ - errf("Failed to close FD (%m)"); + errf("Failed to close write FD (%m)"); return -1; } @@ -273,11 +273,11 @@ int heartbeat(ihost_state_t *ihost_state){ } if(fclose(fm_fd_r) !=0){ - errf("Failed to close FD (%m)"); + errf("Failed to close read FD (%m)"); return -1; } if(fclose(fm_fd_w) !=0){ - errf("Failed to close FD (%m)"); + errf("Failed to close write FD (%m)"); return -1; }