From 765e68032e2ef7d7a9956232fed9c36d3b5da2d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 10 Aug 2010 07:27:55 +0000 Subject: [PATCH] Allow callers to supply string literals (i.e., const char *s') to function getField() and still build the API relatively warning free. --- mrst_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrst_api.c b/mrst_api.c index 194dc8b0..32801596 100644 --- a/mrst_api.c +++ b/mrst_api.c @@ -4,7 +4,7 @@ /* ------------------------------------------------------------------ */ static mxArray* -getField(const mxArray *a, char *field, char *subfield) +getField(const mxArray *a, const char *field, const char *subfield) /* ------------------------------------------------------------------ */ { if (subfield)