aboutsummaryrefslogtreecommitdiff
path: root/libexec/getNAME/getNAME.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
committerWarner Losh <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
commit91477cc4d7fe265d722af24b978c1e6147178301 (patch)
tree8a411abbd72d727a49138925e161f1519e274a41 /libexec/getNAME/getNAME.c
parent93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6 (diff)
downloadsrc-91477cc4d7fe265d722af24b978c1e6147178301.tar.gz
src-91477cc4d7fe265d722af24b978c1e6147178301.zip
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes: svn path=/head/; revision=24349
Diffstat (limited to 'libexec/getNAME/getNAME.c')
-rw-r--r--libexec/getNAME/getNAME.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/getNAME/getNAME.c b/libexec/getNAME/getNAME.c
index f7f29bc7c46e..2961ecf27e82 100644
--- a/libexec/getNAME/getNAME.c
+++ b/libexec/getNAME/getNAME.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: getNAME.c,v 1.4 1997/02/22 14:21:35 peter Exp $
*
*/
@@ -73,7 +73,7 @@ main(argc, argv)
extern int optind;
int ch;
- while ((ch = getopt(argc, argv, "itw")) != EOF)
+ while ((ch = getopt(argc, argv, "itw")) != -1)
switch(ch) {
case 'i':
intro = 1;