Source-Changes-HG archive

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

[src/trunk]: src/sbin/wsconsctl Do not use FLG_MODIFY to mark color settings....



details:   https://anonhg.NetBSD.org/src/rev/c354782d132b
branches:  trunk
changeset: 580588:c354782d132b
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sat Apr 30 16:38:21 2005 +0000

description:
Do not use FLG_MODIFY to mark color settings.  I thought this was used to
denote that a flag was readable/writeable, but that is achieved by passing
a 0 as the flags.

Thanks to uwe@ for finding this out and explaining me why it was wrong.

diffstat:

 sbin/wsconsctl/display.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (37 lines):

diff -r c079bc431d6d -r c354782d132b sbin/wsconsctl/display.c
--- a/sbin/wsconsctl/display.c  Sat Apr 30 16:26:06 2005 +0000
+++ b/sbin/wsconsctl/display.c  Sat Apr 30 16:38:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: display.c,v 1.10 2005/02/27 15:26:16 uwe Exp $ */
+/*     $NetBSD: display.c,v 1.11 2005/04/30 16:38:21 jmmv Exp $ */
 
 /*-
  * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
 static int msg_kernel_attrs, msg_kernel_bg, msg_kernel_fg;
 
 struct field display_field_tab[] = {
-    { "border",                        &border,        FMT_COLOR,      FLG_MODIFY },
+    { "border",                        &border,        FMT_COLOR,      0 },
     { "type",                  &dpytype,       FMT_DPYTYPE,    FLG_RDONLY },
     { "font",                  &font.name,     FMT_STRING,     FLG_WRONLY },
     { "backlight",             &backlight.curval,  FMT_UINT,   0 },
@@ -67,12 +67,12 @@
     { "contrast",              &contrast.curval,   FMT_UINT,   FLG_MODIFY },
     { "scroll.fastlines",      &scroll_l.fastlines, FMT_UINT, FLG_MODIFY },
     { "scroll.slowlines",      &scroll_l.slowlines, FMT_UINT, FLG_MODIFY },
-    { "msg.default.attrs",     &msg_default_attrs, FMT_ATTRS,  FLG_MODIFY },
-    { "msg.default.bg",                &msg_default_bg, FMT_COLOR,     FLG_MODIFY },
-    { "msg.default.fg",                &msg_default_fg, FMT_COLOR,     FLG_MODIFY },
-    { "msg.kernel.attrs",      &msg_kernel_attrs, FMT_ATTRS,   FLG_MODIFY },
-    { "msg.kernel.bg",         &msg_kernel_bg, FMT_COLOR,      FLG_MODIFY },
-    { "msg.kernel.fg",         &msg_kernel_fg, FMT_COLOR,      FLG_MODIFY },
+    { "msg.default.attrs",     &msg_default_attrs, FMT_ATTRS,  0 },
+    { "msg.default.bg",                &msg_default_bg, FMT_COLOR,     0 },
+    { "msg.default.fg",                &msg_default_fg, FMT_COLOR,     0 },
+    { "msg.kernel.attrs",      &msg_kernel_attrs, FMT_ATTRS,   0 },
+    { "msg.kernel.bg",         &msg_kernel_bg, FMT_COLOR,      0 },
+    { "msg.kernel.fg",         &msg_kernel_fg, FMT_COLOR,      0 },
 };
 
 int display_field_tab_len = sizeof(display_field_tab)/



Home | Main Index | Thread Index | Old Index