[BACK]Return to child.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rdist

Diff for /src/usr.bin/rdist/child.c between version 1.14 and 1.15

version 1.14, 2009/10/27 23:59:42 version 1.15, 2011/04/10 15:47:28
Line 177 
Line 177 
 readchild(CHILD *child)  readchild(CHILD *child)
 {  {
         char rbuf[BUFSIZ];          char rbuf[BUFSIZ];
         int amt;          ssize_t amt;
   
         debugmsg(DM_CALL, "[readchild(%s, %d, %d) start]",          debugmsg(DM_CALL, "[readchild(%s, %d, %d) start]",
                  child->c_name, child->c_pid, child->c_readfd);                   child->c_name, child->c_pid, child->c_readfd);
Line 196 
Line 196 
          */           */
         while ((amt = read(child->c_readfd, rbuf, sizeof(rbuf))) > 0) {          while ((amt = read(child->c_readfd, rbuf, sizeof(rbuf))) > 0) {
                 /* XXX remove these debug calls */                  /* XXX remove these debug calls */
                 debugmsg(DM_MISC, "[readchild(%s, %d, %d) got %d bytes]",                  debugmsg(DM_MISC, "[readchild(%s, %d, %d) got %lld bytes]",
                          child->c_name, child->c_pid, child->c_readfd, amt);                           child->c_name, child->c_pid, child->c_readfd, amt);
   
                 (void) xwrite(fileno(stdout), rbuf, amt);                  (void) xwrite(fileno(stdout), rbuf, amt);
Line 205 
Line 205 
                          child->c_name, child->c_pid, child->c_readfd);                           child->c_name, child->c_pid, child->c_readfd);
         }          }
   
         debugmsg(DM_MISC, "readchild(%s, %d, %d) done: amt = %d errno = %d\n",          debugmsg(DM_MISC, "readchild(%s, %d, %d) done: amt = %lld errno = %d\n",
                  child->c_name, child->c_pid, child->c_readfd, amt, errno);                   child->c_name, child->c_pid, child->c_readfd, amt, errno);
   
         /*          /*

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15