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

Diff for /src/usr.bin/mandoc/mandoc_aux.c between version 1.1 and 1.2

version 1.1, 2014/03/21 22:17:01 version 1.2, 2014/03/21 22:52:21
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
    * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 16 
Line 17 
  */   */
 #include <sys/types.h>  #include <sys/types.h>
   
   #include <stdarg.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
   
 #include "mandoc.h"  #include "mandoc.h"
 #include "mandoc_aux.h"  #include "mandoc_aux.h"
   
   int
   mandoc_asprintf(char **dest, const char *fmt, ...)
   {
           va_list  ap;
           int      ret;
   
           va_start(ap, fmt);
           ret = vasprintf(dest, fmt, ap);
           va_end(ap);
   
           if (-1 == ret) {
                   perror(NULL);
                   exit((int)MANDOCLEVEL_SYSERR);
           }
           return(ret);
   }
   
 void *  void *
 mandoc_calloc(size_t num, size_t size)  mandoc_calloc(size_t num, size_t size)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2