diff options
author | imp <imp@FreeBSD.org> | 1997-03-28 15:24:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-28 15:24:41 +0000 |
commit | 054f35c2222ef251bc2877814cf7bf5ff6038166 (patch) | |
tree | bf569c1217b3803ad2d64ba6083e1610213c7ece /bin/rm/rm.c | |
parent | 3ad19c4ae3d0f156867d86a310e2d6d0f40a7a51 (diff) | |
download | FreeBSD-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/rm/rm.c')
-rw-r--r-- | bin/rm/rm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 80f6012d..40a86dc 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: rm.c,v 1.14 1997/02/22 14:05:27 peter Exp $ */ #ifndef lint @@ -93,9 +93,9 @@ main(argc, argv) Pflag = rflag = 0; #ifdef BSD4_4_LITE - while ((ch = getopt(argc, argv, "dfiPRr")) != EOF) + while ((ch = getopt(argc, argv, "dfiPRr")) != -1) #else - while ((ch = getopt(argc, argv, "dfiPRrW")) != EOF) + while ((ch = getopt(argc, argv, "dfiPRrW")) != -1) #endif switch(ch) { case 'd': |