*/
#include "platform.h"
-#if HAVE_ICONV_H
+#if HAVE_ICONV
#include <iconv.h>
#endif
#include "gnunet_common.h"
}
}
ret = GNUNET_malloc (32);
- GNUNET_snprintf (ret, 32, "%llu%s", size, unit);
+ GNUNET_snprintf (ret, 32, "%llu %s", size, unit);
return ret;
}
itmp = tmp;
finSize = tmpSize;
if (iconv (cd,
-#if FREEBSD
+#if FREEBSD || DARWIN
(const char **) &input,
#else
(char **) &input,
char *ret;
uint64_t dval = delta.value;
+ if (delta.value == GNUNET_TIME_UNIT_FOREVER_REL.value)
+ return GNUNET_strdup (_("eternity"));
if (dval > 5 * 1000)
{
dval = dval / 1000;
}
}
}
- GNUNET_asprintf (&ret, "%llu%s", dval, unit);
+ GNUNET_asprintf (&ret, "%llu %s", dval, unit);
return ret;
}
time_t tt;
char *ret;
+ if (t.value == GNUNET_TIME_UNIT_FOREVER_ABS.value)
+ return GNUNET_strdup (_("end of time"));
tt = t.value / 1000;
#ifdef ctime_r
ret = ctime_r (&tt, GNUNET_malloc (32));