diff options
author | 2014-03-21 22:52:21 +0000 | |
---|---|---|
committer | 2014-03-21 22:52:21 +0000 | |
commit | a450f7c4606ace33f6c25ac82bb7b06a0baaa71c (patch) | |
tree | 9b96cddcd495fda4976fc6f15f4ae66fdb1e8f96 /usr.bin/mandoc/mandoc_aux.h | |
parent | The files mandoc.c and mandoc.h contained both specialised low-level (diff) | |
download | wireguard-openbsd-a450f7c4606ace33f6c25ac82bb7b06a0baaa71c.tar.xz wireguard-openbsd-a450f7c4606ace33f6c25ac82bb7b06a0baaa71c.zip |
avoid repetitive code for asprintf error handling
Diffstat (limited to 'usr.bin/mandoc/mandoc_aux.h')
-rw-r--r-- | usr.bin/mandoc/mandoc_aux.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mandoc_aux.h b/usr.bin/mandoc/mandoc_aux.h index 1d2077eaebc..4f178c789c1 100644 --- a/usr.bin/mandoc/mandoc_aux.h +++ b/usr.bin/mandoc/mandoc_aux.h @@ -1,6 +1,7 @@ -/* $Id: mandoc_aux.h,v 1.1 2014/03/21 22:17:01 schwarze Exp $ */ +/* $Id: mandoc_aux.h,v 1.2 2014/03/21 22:52:21 schwarze Exp $ */ /* * 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 * purpose with or without fee is hereby granted, provided that the above @@ -19,6 +20,7 @@ __BEGIN_DECLS +int mandoc_asprintf(char **, const char *, ...); void *mandoc_calloc(size_t, size_t); void *mandoc_malloc(size_t); void *mandoc_realloc(void *, size_t); |