$OpenBSD: patch-opt_c,v 1.2 2004/01/04 21:39:33 espie Exp $ --- opt.c.orig 1998-04-13 16:39:59.000000000 +0200 +++ opt.c 2004-01-04 22:36:26.000000000 +0100 @@ -1,4 +1,6 @@ #include +#include +#include #include #include "newsfetch.h" @@ -34,7 +36,7 @@ while (1) -Y -> pipe each article */ c = Getopt(argc, argv, "w:t:T:d:f:U:N:x:p:P:Y:yslVvchH-"); - if (c == EOF) + if (c == -1) break; switch (c) @@ -192,9 +194,8 @@ opt_help(char *prog_name) { char *options= -" [-clsyvV] [-d dirname] [-f rcfile] [-t N] - [-T timeout] [-w M ] [-pPY filter] [-x command] -"; +" [-clsyvV] [-d dirname] [-f rcfile] [-t N] \n" +" [-T timeout] [-w M ] [-pPY filter] [-x command]\n"; fprintf(stderr,"Usage: %s nntp_server [options]\n", prog_name); fprintf(stderr,"Options:\n%s\n",options); exit(1);