summaryrefslogtreecommitdiffstats
path: root/libexec/tftpd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
committerimp <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
commit3125d931c2865b48cb5780a22e277701803212c6 (patch)
tree5fe9e887ce5fdacb7324ecf172d3dc7bbd561532 /libexec/tftpd
parent054f35c2222ef251bc2877814cf7bf5ff6038166 (diff)
downloadFreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.zip
FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.tar.gz
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'libexec/tftpd')
-rw-r--r--libexec/tftpd/tftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index 5fc430d..199ec2b 100644
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: tftpd.c,v 1.7 1997/02/22 14:22:36 peter Exp $
+ * $Id: tftpd.c,v 1.8 1997/03/24 06:04:08 imp Exp $
*/
#ifndef lint
@@ -121,7 +121,7 @@ main(argc, argv)
struct passwd *nobody;
openlog("tftpd", LOG_PID, LOG_FTP);
- while ((ch = getopt(argc, argv, "lns:")) != EOF) {
+ while ((ch = getopt(argc, argv, "lns:")) != -1) {
switch (ch) {
case 'l':
logging = 1;
OpenPOWER on IntegriCloud