[BACK]Return to position.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / bin / dd

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/bin/dd/position.c between version 1.16 and 1.17

version 1.16, 2003/09/14 19:20:20 version 1.17, 2009/02/14 07:13:40
Line 128  void
Line 128  void
 pos_out(void)  pos_out(void)
 {  {
         struct mtop t_op;          struct mtop t_op;
         int cnt, n;          int n;
           uint64_t cnt;
   
         /*          /*
          * If not a tape, try seeking on the file.  Seeking on a pipe is           * If not a tape, try seeking on the file.  Seeking on a pipe is
Line 175  pos_out(void)
Line 176  pos_out(void)
                         /* NOTREACHED */                          /* NOTREACHED */
   
                 while (cnt++ < out.offset)                  while (cnt++ < out.offset)
                         if ((n = bwrite(out.fd, out.db, out.dbsz)) != out.dbsz)                          if ((uint64_t)(n = bwrite(out.fd, out.db, out.dbsz)) != out.dbsz)
                                 err(EXIT_FAILURE, "%s", out.name);                                  err(EXIT_FAILURE, "%s", out.name);
                                 /* NOTREACHED */                                  /* NOTREACHED */
                 break;                  break;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

CVSweb <webmaster@jp.NetBSD.org>