summaryrefslogtreecommitdiffstats
path: root/bin/df/df.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-28 15:24:41 +0000
committerimp <imp@FreeBSD.org>1997-03-28 15:24:41 +0000
commit054f35c2222ef251bc2877814cf7bf5ff6038166 (patch)
treebf569c1217b3803ad2d64ba6083e1610213c7ece /bin/df/df.c
parent3ad19c4ae3d0f156867d86a310e2d6d0f40a7a51 (diff)
downloadFreeBSD-src-054f35c2222ef251bc2877814cf7bf5ff6038166.zip
FreeBSD-src-054f35c2222ef251bc2877814cf7bf5ff6038166.tar.gz
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'bin/df/df.c')
-rw-r--r--bin/df/df.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index f32dba3..122906c 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: df.c,v 1.13 1997/02/22 14:02:57 peter Exp $
+ * $Id: df.c,v 1.15 1997/03/13 17:41:37 bde Exp $
*/
#ifndef lint
@@ -85,7 +85,7 @@ main(argc, argv)
char *mntpt, **vfslist;
vfslist = NULL;
- while ((ch = getopt(argc, argv, "iknt:")) != EOF)
+ while ((ch = getopt(argc, argv, "iknt:")) != -1)
switch (ch) {
case 'i':
iflag = 1;
OpenPOWER on IntegriCloud