#include <stdarg.h>
#include <string.h>
#include <ctype.h>
-#include <sys/types.h>
#include "cryptlib.h"
+#ifndef NO_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#include <openssl/bio.h>
#ifdef BN_LLONG
case 'i':
switch (cflags) {
case DP_C_SHORT:
- value = va_arg(args, short int);
+ value = (short int)va_arg(args, int);
break;
case DP_C_LONG:
value = va_arg(args, long int);
flags |= DP_F_UNSIGNED;
switch (cflags) {
case DP_C_SHORT:
- value = va_arg(args,
- unsigned short int);
+ value = (unsigned short int)va_arg(args, unsigned int);
break;
case DP_C_LONG:
value = (LLONG) va_arg(args,