X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=regress%2Fhplayback.c.m4;h=908886957f7fea3285b64811b1bd753bce12cc3d;hp=ce295d0b10703eac098f37f40b5b2ccb23308648;hb=ac77ffc12405483a2b65ec2b27006426719113aa;hpb=8b1171e6b5eb5524958f1876e2753f5b75a26cfd 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;