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

Diff for /src/usr.bin/sed/misc.c between version 1.5 and 1.6

version 1.5, 2003/06/03 02:56:16 version 1.6, 2004/07/20 03:50:26
Line 54 
Line 54 
  * malloc with result test   * malloc with result test
  */   */
 void *  void *
 xmalloc(size)  xmalloc(u_int size)
         u_int size;  
 {  {
         void *p;          void *p;
   
Line 68 
Line 67 
  * realloc with result test   * realloc with result test
  */   */
 void *  void *
 xrealloc(p, size)  xrealloc(void *p, u_int size)
         void *p;  
         u_int size;  
 {  {
         if (p == NULL)                  /* Compatibility hack. */          if (p == NULL)                  /* Compatibility hack. */
                 return (xmalloc(size));                  return (xmalloc(size));
Line 86 
Line 83 
  * the buffer).   * the buffer).
  */   */
 char *  char *
 strregerror(errcode, preg)  strregerror(int errcode, regex_t *preg)
         int errcode;  
         regex_t *preg;  
 {  {
         static char *oe;          static char *oe;
         size_t s;          size_t s;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6