diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2012-11-28 14:32:45 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2012-11-28 14:32:45 +0000 |
commit | 1506f47dd4a8236c116c615d711d7cc91ed89a46 (patch) | |
tree | ce4c1e32ea518e68b5c059f769f92f2182bbe08b /app/cwm/calmwm.h | |
parent | 28706ebf01921d838d4ce9d01fcf7969aedc5eaa (diff) |
add xasprintf() for upcoming changes.
Diffstat (limited to 'app/cwm/calmwm.h')
-rw-r--r-- | app/cwm/calmwm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h index a8f1d9f74..555db70a7 100644 --- a/app/cwm/calmwm.h +++ b/app/cwm/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.160 2012/11/28 14:14:44 okan Exp $ + * $OpenBSD: calmwm.h,v 1.161 2012/11/28 14:32:44 okan Exp $ */ #ifndef _CALMWM_H_ @@ -492,6 +492,9 @@ void u_spawn(char *); void *xcalloc(size_t, size_t); void *xmalloc(size_t); char *xstrdup(const char *); +int xasprintf(char **, const char *, ...) + __attribute__((__format__ (printf, 2, 3))) + __attribute__((__nonnull__ (2))); /* Externs */ extern Display *X_Dpy; |