Date: Sat, 15 Mar 1997 23:47:13 +0100 (CET) From: Philippe Charnier <charnier@xp11.frmug.org> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/2996: incorrect parameter in df Message-ID: <199703152247.XAA05337@xp11.frmug.org> Resent-Message-ID: <199703152310.PAA14860@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2996 >Category: bin >Synopsis: incorrect parameter in df >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 15 15:10:01 PST 1997 >Last-Modified: >Originator: Philippe Charnier >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: ===> bin/df /usr/src/bin/df/df.c: In function `main': /usr/src/bin/df/df.c:153: warning: passing arg 1 of `mount' makes integer from p ointer without a cast >How-To-Repeat: >Fix: Index: bin/df/df.c =================================================================== RCS file: /home2h/FreeBSD.cvsroot/src/bin/df/df.c,v retrieving revision 1.15 diff -u -r1.15 df.c --- df.c 1997/03/13 17:41:37 1.15 +++ df.c 1997/03/15 10:57:08 @@ -149,7 +149,7 @@ warn("%s", mntpt); continue; } - if (mount("ufs", mntpt, MNT_RDONLY, + if (mount(MOUNT_UFS, mntpt, MNT_RDONLY, &mdev) != 0) { ufs_df(*argv, maxwidth); (void)rmdir(mntpt); >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703152247.XAA05337>