[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] inetutils-1.6 rshd error.
From: |
Alfred M. Szmidt |
Subject: |
Re: [bug-inetutils] inetutils-1.6 rshd error. |
Date: |
Tue, 12 May 2009 10:26:33 -0400 |
inetutils-1.6,cross compiled on mips64,run rshd error.
i found:
in inetutils-1.6/inetd/inetd.c line 1022:
size_t argc = 0, i;
and line 1053:
if (argcv_get (linebuf, "", &argc, &argv))
but in inetutils-1.6/libinetutils/argcv.c line 67:
argcv_get (const char *command, const char *delim, int *argc, char
***argv)
on my mips64,size_t!=int
Thank you for your bug report. What was the error you got? Automatic
coercion from a larger type to a smaller type is always OK with any C
I mean, from a smaller type to a larger...
compiler I know of, so I am suprised you get an error. For example in
argc_get you have something similar, strlen returns size_t (atleast on
ISO C99 systems), while we assign it to a int.
Happy hacking.