Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sushi Change the "exact match" parameter of set_fie...



details:   https://anonhg.NetBSD.org/src/rev/3fdc4217f760
branches:  trunk
changeset: 559721:3fdc4217f760
user:      jdc <jdc%NetBSD.org@localhost>
date:      Mon Mar 22 19:03:19 2004 +0000

description:
Change the "exact match" parameter of set_field_type() to TRUE, to match
the change to match_enum() in libform (src/lib/libform/type_enum.c:r1.8).
>From Brett Lymn.
Fixes PR bin/24604.

diffstat:

 usr.sbin/sushi/scanform.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r f73dbb54f6a8 -r 3fdc4217f760 usr.sbin/sushi/scanform.c
--- a/usr.sbin/sushi/scanform.c Mon Mar 22 19:02:06 2004 +0000
+++ b/usr.sbin/sushi/scanform.c Mon Mar 22 19:03:19 2004 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: scanform.c,v 1.34 2004/03/10 19:03:16 garbled Exp $       */
+/*      $NetBSD: scanform.c,v 1.35 2004/03/22 19:03:19 jdc Exp $       */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -761,7 +761,7 @@
 
        if (f) {
                set_field_back(f, A_REVERSE);
-               set_field_type(f, TYPE_ENUM, x->list, FALSE, FALSE);
+               set_field_type(f, TYPE_ENUM, x->list, FALSE, TRUE);
                set_field_userptr(f, x->list);
                if (x->newpage == 1)
                        set_new_page(f, TRUE);
@@ -1267,7 +1267,8 @@
                p[len - 1] = '\0';      /* strip newline & NUL terminate */
                q = strdup(p);
        } else
-               bailout("fgetln: %s", strerror(errno));
+               bailout("fgetln: on command '%s' gave error %s", buf,
+                       strerror(errno));
 
        pclose(file);
        free(comm);
@@ -1382,7 +1383,8 @@
                p[len - 1] = '\0';      /* strip newline & NUL terminate */
                q = strdup(p);
        } else
-               bailout("fgetln: %s", strerror(errno));
+               bailout("fgetln: on command '%s' gave error %s", buf,
+                       strerror(errno));
 
        pclose(file);
        snprintf(buf, sizeof(buf), "%d,%d,%d,%s", pre, min, maxi, q);



Home | Main Index | Thread Index | Old Index