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

Diff for /src/usr.bin/file/file.c between version 1.58 and 1.59

version 1.58, 2016/05/01 20:34:26 version 1.59, 2017/04/18 14:16:48
Line 43 
Line 43 
 #include "magic.h"  #include "magic.h"
 #include "xmalloc.h"  #include "xmalloc.h"
   
 struct input_msg  struct input_msg {
 {  
         int             idx;          int             idx;
   
         struct stat     sb;          struct stat     sb;
Line 55 
Line 54 
         int             link_target;          int             link_target;
 };  };
   
 struct input_ack  struct input_ack {
 {  
         int             idx;          int             idx;
 };  };
   
 struct input_file  struct input_file {
 {  
         struct magic            *m;          struct magic            *m;
         struct input_msg        *msg;          struct input_msg        *msg;
   
Line 448 
Line 445 
                 if (got == -1) {                  if (got == -1) {
                         if (errno == EINTR)                          if (errno == EINTR)
                                 continue;                                  continue;
                         return NULL;                          return (NULL);
                 }                  }
                 if (got == 0)                  if (got == 0)
                         break;                          break;
Line 456 
Line 453 
                 left -= got;                  left -= got;
         }          }
         *used = size - left;          *used = size - left;
         return buffer;          return (buffer);
 }  }
   
 static int  static int

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59