unistd.h is not available on Windows and isn't needed for this file,
so don't include it. Two arguments to asprintf in choose_token() were
reversed.
#include <stdio.h>
#include <errno.h>
#include <string.h>
-#include <unistd.h>
#include <ctype.h>
#include <string.h>
if (asprintf(&tmp, "%s\t%d. %s %.*s\n",
banner ? banner :
_("Please choose from the following:\n"),
- i + 1, tis[i]->vendor.length,
- _("Vendor:"),
+ i + 1, _("Vendor:"), tis[i]->vendor.length,
tis[i]->vendor.data) < 0) {
free(banner);
return ENOMEM;