#include <netdb.h>
#include <sys/poll.h>
#include <pwd.h>
+#include <stdint.h>
#ifdef HAVE_RESOLVER
#include <arpa/nameser.h>
#include <resolv.h>
int family;
int sentcreds;
} servinfo;
-char *dc_srv_local;
+/* char dc_srv_local_addr; */
+char *dc_srv_local = (void *)&dc_srv_local;
static void message(int bits, char *format, ...)
{
{
if((ichandle = iconv_open("wchar_t", "utf-8")) == (iconv_t)-1)
return(-1);
- dc_srv_local = sstrdup("");
initcmds();
return(0);
}
{
freepart = 1;
part = swprintf2(L"%i", va_arg(al, int));
+ } else if(!wcscmp(tpart, L"li")) {
+ freepart = 1;
+ part = swprintf2(L"%ji", (intmax_t)va_arg(al, dc_lnum_t));
} else if(!wcscmp(tpart, L"s")) {
freepart = 1;
part = icmbstowcs(sarg = va_arg(al, char *), NULL);
return(-1);
}
} else if(!wcscmp(tpart, L"ls")) {
+ freepart = 0;
part = va_arg(al, wchar_t *);
} else if(!wcscmp(tpart, L"ll")) {
freepart = 1;