Module Name: src
Committed By: riz
Date: Thu Nov 5 05:24:11 UTC 2015
Modified Files:
src/lib/libform [netbsd-7]: field.c form.h
Log Message:
Pull up following revision(s) (requested by joerg in ticket #980):
lib/libform/form.h: revision 1.23
lib/libform/field.c: revision 1.29
Constify set_field_buffer.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.27.4.1 src/lib/libform/field.c
cvs rdiff -u -r1.22 -r1.22.4.1 src/lib/libform/form.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libform/field.c
diff -u src/lib/libform/field.c:1.27 src/lib/libform/field.c:1.27.4.1
--- src/lib/libform/field.c:1.27 Thu Nov 21 15:40:17 2013
+++ src/lib/libform/field.c Thu Nov 5 05:24:11 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: field.c,v 1.27 2013/11/21 15:40:17 christos Exp $ */
+/* $NetBSD: field.c,v 1.27.4.1 2015/11/05 05:24:11 riz Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
* ([email protected], [email protected])
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: field.c,v 1.27 2013/11/21 15:40:17 christos Exp $");
+__RCSID("$NetBSD: field.c,v 1.27.4.1 2015/11/05 05:24:11 riz Exp $");
#include <sys/param.h>
#include <stdlib.h>
@@ -409,7 +409,7 @@ set_field_printf(FIELD *field, int buffe
*/
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;
Index: src/lib/libform/form.h
diff -u src/lib/libform/form.h:1.22 src/lib/libform/form.h:1.22.4.1
--- src/lib/libform/form.h:1.22 Tue Nov 26 01:17:00 2013
+++ src/lib/libform/form.h Thu Nov 5 05:24:11 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: form.h,v 1.22 2013/11/26 01:17:00 christos Exp $ */
+/* $NetBSD: form.h,v 1.22.4.1 2015/11/05 05:24:11 riz Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
@@ -349,7 +349,7 @@ int post_form(FORM *);
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);