Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib Correct format mismatch for field widths



details:   https://anonhg.NetBSD.org/src/rev/313302635c21
branches:  trunk
changeset: 494572:313302635c21
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sat Jul 08 14:58:43 2000 +0000

description:
Correct format mismatch for field widths

diffstat:

 lib/libc/stdlib/getopt_long.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 0239f2df1973 -r 313302635c21 lib/libc/stdlib/getopt_long.c
--- a/lib/libc/stdlib/getopt_long.c     Sat Jul 08 14:57:57 2000 +0000
+++ b/lib/libc/stdlib/getopt_long.c     Sat Jul 08 14:58:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getopt_long.c,v 1.6 2000/06/09 21:35:53 nathanw Exp $  */
+/*     $NetBSD: getopt_long.c,v 1.7 2000/07/08 14:58:43 sommerfeld Exp $       */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getopt_long.c,v 1.6 2000/06/09 21:35:53 nathanw Exp $");
+__RCSID("$NetBSD: getopt_long.c,v 1.7 2000/07/08 14:58:43 sommerfeld Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -398,7 +398,7 @@
                        else {
                                /* ambiguous abbreviation */
                                if (PRINT_ERROR)
-                                       warnx(ambig, current_argv_len,
+                                       warnx(ambig, (int)current_argv_len,
                                             current_argv);
                                optopt = 0;
                                return BADCH;
@@ -408,7 +408,7 @@
                        if (long_options[match].has_arg == no_argument
                            && has_equal) {
                                if (PRINT_ERROR)
-                                       warnx(noarg, current_argv_len,
+                                       warnx(noarg, (int)current_argv_len,
                                             current_argv);
                                /*
                                 * XXX: GNU sets optopt to val regardless of



Home | Main Index | Thread Index | Old Index