Source-Changes-HG archive

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

[src/trunk]: src/lib/libform Constify set_field_buffer.



details:   https://anonhg.NetBSD.org/src/rev/533b4c9c2f09
branches:  trunk
changeset: 810618:533b4c9c2f09
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Sep 07 15:50:49 2015 +0000

description:
Constify set_field_buffer.

diffstat:

 lib/libform/field.c |  6 +++---
 lib/libform/form.h  |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 0b9b4da178b6 -r 533b4c9c2f09 lib/libform/field.c
--- a/lib/libform/field.c       Mon Sep 07 15:19:05 2015 +0000
+++ b/lib/libform/field.c       Mon Sep 07 15:50:49 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: field.c,v 1.28 2014/10/18 08:33:23 snj Exp $   */
+/*     $NetBSD: field.c,v 1.29 2015/09/07 15:50:49 joerg Exp $ */
 /*-
  * Copyright (c) 1998-1999 Brett Lymn
  *                         (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: field.c,v 1.28 2014/10/18 08:33:23 snj Exp $");
+__RCSID("$NetBSD: field.c,v 1.29 2015/09/07 15:50:49 joerg Exp $");
 
 #include <sys/param.h>
 #include <stdlib.h>
@@ -409,7 +409,7 @@
  */
 
 int
-set_field_buffer(FIELD *field, int buffer, char *value)
+set_field_buffer(FIELD *field, int buffer, const char *value)
 {
        unsigned int len;
        int status;
diff -r 0b9b4da178b6 -r 533b4c9c2f09 lib/libform/form.h
--- a/lib/libform/form.h        Mon Sep 07 15:19:05 2015 +0000
+++ b/lib/libform/form.h        Mon Sep 07 15:50:49 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: form.h,v 1.22 2013/11/26 01:17:00 christos Exp $       */
+/*     $NetBSD: form.h,v 1.23 2015/09/07 15:50:49 joerg Exp $  */
 
 /*-
  * Copyright (c) 1998-1999 Brett Lymn
@@ -349,7 +349,7 @@
 int          scale_form(FORM *, int *, int *);
 int          set_current_field(FORM *, FIELD *);
 int          set_field_back(FIELD *, chtype);
-int          set_field_buffer(FIELD *, int, char *);
+int          set_field_buffer(FIELD *, int, const char *);
 int          set_field_fore(FIELD *, chtype);
 int          set_field_init(FORM *, Form_Hook);
 int          set_field_just(FIELD *, int);



Home | Main Index | Thread Index | Old Index