Silly amd64 people, not using `size_t'.
AC_PROG_CC
AM_PROG_CC_C_O
AX_CFLAGS_WARN_ALL
AC_PROG_CC
AM_PROG_CC_C_O
AX_CFLAGS_WARN_ALL
AC_CANONICAL_HOST
AM_PROG_LIBTOOL
AC_CANONICAL_HOST
AM_PROG_LIBTOOL
static int raw_setup(void *stv, int sk, const struct param *pp)
{
struct raw_state *st = stv;
static int raw_setup(void *stv, int sk, const struct param *pp)
{
struct raw_state *st = stv;
int i, mtu = -1;
struct ifaddrs *ifa, *ifaa, *ifap;
struct ifreq ifr;
int i, mtu = -1;
struct ifaddrs *ifa, *ifaa, *ifap;
struct ifreq ifr;
{
struct linux_state *st = stv;
int i, mtu;
{
struct linux_state *st = stv;
int i, mtu;
/* Snaffle the UDP socket. */
st->sk = sk;
/* Snaffle the UDP socket. */
st->sk = sk;
{
struct linux_state *st = stv;
int mtu;
{
struct linux_state *st = stv;
int mtu;
ssize_t n;
unsigned char b[65536];
ssize_t n;
unsigned char b[65536];
{
int nfd;
struct sockaddr_un sun;
{
int nfd;
struct sockaddr_un sun;
- size_t sz = sizeof(sun);
+ socklen_t sz = sizeof(sun);
if ((nfd = accept(fd, (struct sockaddr *)&sun, &sz)) < 0) {
if (errno != EINTR && errno != EAGAIN && errno != EWOULDBLOCK &&
if ((nfd = accept(fd, (struct sockaddr *)&sun, &sz)) < 0) {
if (errno != EINTR && errno != EAGAIN && errno != EWOULDBLOCK &&
ssize_t n;
int ch;
buf b, bb;
ssize_t n;
int ch;
buf b, bb;
unsigned p_port(void)
{
addr a;
unsigned p_port(void)
{
addr a;
- size_t sz = sizeof(addr);
+ socklen_t sz = sizeof(addr);
if (getsockname(sock.fd, &a.sa, &sz))
die(EXIT_FAILURE, "couldn't read port number: %s", strerror(errno));
if (getsockname(sock.fd, &a.sa, &sz))
die(EXIT_FAILURE, "couldn't read port number: %s", strerror(errno));