const char *value)
{
const char *about = scls;
- int slen;
- int i;
+ size_t slen;
+ unsigned int i;
int j;
- int ml;
- int p;
+ size_t ml;
+ size_t p;
char *scp;
const char *trans;
const struct GNUNET_GETOPT_CommandLineOption *opt;
printf ("%s\n%s\n", ctx->binaryOptions, gettext (about));
printf (_
("Arguments mandatory for long options are also mandatory for short options.\n"));
- slen = 0;
i = 0;
opt = ctx->allOptions;
while (opt[i].description != NULL)
}
if (slen < BORDER)
{
- printf ("%*s", BORDER - slen, "");
+ printf ("%*s", (int) (BORDER - slen), "");
slen = BORDER;
}
- trans = gettext (opt[i].description);
+ if (0 < strlen (opt[i].description))
+ trans = gettext (opt[i].description);
+ else
+ trans = "";
ml = strlen (trans);
p = 0;
OUTER:
{
for (j = p + 78 - slen; j > p; j--)
{
- if (isspace (trans[j]))
+ if (isspace ( (unsigned char) trans[j]))
{
scp = GNUNET_malloc (j - p + 1);
memcpy (scp, &trans[p], j - p);