summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/asprintf.c
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2005-10-10 12:00:52 +0000
committerespie <espie@openbsd.org>2005-10-10 12:00:52 +0000
commitffd953dfae82e3b0e8b905f4243cb45b9174eedc (patch)
treecaa92540694c4802052e87653260b3ca7e27cfad /lib/libc/stdio/asprintf.c
parentless verbose listing of libraries (diff)
downloadwireguard-openbsd-ffd953dfae82e3b0e8b905f4243cb45b9174eedc.tar.xz
wireguard-openbsd-ffd953dfae82e3b0e8b905f4243cb45b9174eedc.zip
Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.
Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
Diffstat (limited to 'lib/libc/stdio/asprintf.c')
-rw-r--r--lib/libc/stdio/asprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/asprintf.c b/lib/libc/stdio/asprintf.c
index 7de0bc52ce0..de6404ecb4f 100644
--- a/lib/libc/stdio/asprintf.c
+++ b/lib/libc/stdio/asprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asprintf.c,v 1.14 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: asprintf.c,v 1.15 2005/10/10 12:00:52 espie Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include "local.h"