Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Nov 2011 22:33:19 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227124 - head/tools/regression/fifo/fifo_misc
Message-ID:  <201111052233.pA5MXJMd087581@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sat Nov  5 22:33:19 2011
New Revision: 227124
URL: http://svn.freebsd.org/changeset/base/227124

Log:
  fifo_misc test: Fix swapped lseek arguments.
  
  It worked regardless because SEEK_CUR happens to be 1.

Modified:
  head/tools/regression/fifo/fifo_misc/fifo_misc.c

Modified: head/tools/regression/fifo/fifo_misc/fifo_misc.c
==============================================================================
--- head/tools/regression/fifo/fifo_misc/fifo_misc.c	Sat Nov  5 22:25:15 2011	(r227123)
+++ head/tools/regression/fifo/fifo_misc/fifo_misc.c	Sat Nov  5 22:33:19 2011	(r227124)
@@ -115,7 +115,7 @@ test_lseek(void)
 		exit(-1);
 	}
 
-	if (lseek(reader_fd, SEEK_CUR, 1) >= 0) {
+	if (lseek(reader_fd, 1, SEEK_CUR) >= 0) {
 		warnx("%s: lseek succeeded instead of returning ESPIPE",
 		    __func__);
 		cleanfifo("testfifo", reader_fd, writer_fd);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111052233.pA5MXJMd087581>