X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/2d5cce6288931ae7fc0b65ad2f51207dc0d1ccdf..2277ca1a2098f784630d4c50f8ff0327bf7ac685:/regress/hplayback.c.m4 diff --git a/regress/hplayback.c.m4 b/regress/hplayback.c.m4 index ce295d0..9088869 100644 --- a/regress/hplayback.c.m4 +++ b/regress/hplayback.c.m4 @@ -2,7 +2,12 @@ m4_dnl hplayback.c.m4 m4_dnl (part of complex test harness, not of the library) m4_dnl - playback routines -m4_dnl This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson +m4_dnl This file is +m4_dnl Copyright (C) 1997-1999 Ian Jackson +m4_dnl +m4_dnl It is part of adns, which is +m4_dnl Copyright (C) 1997-1999 Ian Jackson +m4_dnl Copyright (C) 1999 Tony Finch m4_dnl m4_dnl This program is free software; you can redistribute it and/or modify m4_dnl it under the terms of the GNU General Public License as published by @@ -110,8 +115,8 @@ static int Perrno(const char *stuff) { for (te= Terrnos; te->n && strcmp(te->n,stuff); te++); if (te->n) return te->v; - r= strtoul(stuff+1,&ep,10); - if (ep) Psyntax("errno value not recognised, not numeric"); + r= strtoul(stuff+2,&ep,10); + if (*ep) Psyntax("errno value not recognised, not numeric"); return r; } @@ -150,6 +155,7 @@ static void Pfdset(fd_set *set, int max) { } } +#ifdef HAVE_POLL static int Ppollfdevents(void) { int events; @@ -190,6 +196,7 @@ static void Ppollfds(struct pollfd *fds, int nfds) { } if (vb2.buf[vb2.used++] != hm_squote]hm_squote) Psyntax("pollfds end not ]"); } +#endif static void Paddr(struct sockaddr *addr, int *lenr) { struct sockaddr_in *sa= (struct sockaddr_in*)addr;