Compile fix

parent 22d33335
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
// define on IRIX to get posix complian vsnprintf // define on IRIX to get posix compliant vsnprintf
#define _XOPEN_SOURCE 500 #define _XOPEN_SOURCE 500
#include <stdio.h> #include <stdio.h>
#include <basestring_vsnprintf.h> #include <basestring_vsnprintf.h>
...@@ -22,9 +22,10 @@ ...@@ -22,9 +22,10 @@
int int
basestring_snprintf(char *str, size_t size, const char *format, ...) basestring_snprintf(char *str, size_t size, const char *format, ...)
{ {
int ret;
va_list ap; va_list ap;
va_start(ap, format); va_start(ap, format);
int ret= basestring_vsnprintf(str, size, format, ap); ret= basestring_vsnprintf(str, size, format, ap);
va_end(ap); va_end(ap);
return(ret); return(ret);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment