aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2012-11-28 14:32:44 +0000
committerokan2012-11-28 14:32:44 +0000
commiteb6770c71a17ba371b3f345a7e1cd1e31c021190 (patch)
tree649769916d8c99bd19da044786e0db3c5bdd68ca /calmwm.h
parent3e838c50e74c439ba1e2312238d5414be89031f7 (diff)
downloadcwm-eb6770c71a17ba371b3f345a7e1cd1e31c021190.tar.gz
add xasprintf() for upcoming changes.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index a8f1d9f..555db70 100644
--- a/calmwm.h
+++ b/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;