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

Diff for /src/usr.bin/size/Attic/size.c between version 1.7 and 1.8

version 1.7, 1997/08/23 01:59:21 version 1.8, 1997/09/11 11:21:52
Line 55 
Line 55 
 #include <unistd.h>  #include <unistd.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <stdio.h>  #include <stdio.h>
   #include <string.h>
   #include <ctype.h>
 #include <err.h>  #include <err.h>
   
 unsigned long total_text, total_data, total_bss, total_total;  unsigned long total_text, total_data, total_bss, total_total;
Line 63 
Line 65 
   
 int     process_file __P((int, char *));  int     process_file __P((int, char *));
 int     show_archive __P((int, char *, FILE *));  int     show_archive __P((int, char *, FILE *));
   int     show_objfile __P((int, char *, FILE *));
 int     show_object __P((int, char *, FILE *));  int     show_object __P((int, char *, FILE *));
 void    *emalloc __P((size_t));  void    *emalloc __P((size_t));
 void    *erealloc __P((void *, size_t));  void    *erealloc __P((void *, size_t));
Line 320 
Line 323 
         char *p;          char *p;
   
         /* NOSTRICT */          /* NOSTRICT */
         if (p = malloc(size))          if ((p = malloc(size)))
                 return(p);                  return(p);
         err(1, NULL);          err(1, NULL);
 }  }
Line 331 
Line 334 
         size_t size;          size_t size;
 {  {
         /* NOSTRICT */          /* NOSTRICT */
         if (p = realloc(p, size))          if ((p = realloc(p, size)))
                 return(p);                  return(p);
         err(1, NULL);          err(1, NULL);
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8