summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-07 17:00:59 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-08 19:20:02 -0700
commit9932303fbd0390628efc714d9c52718eca008015 (patch)
treed2b38622b16cc1239a0e0a95f88db9f42d838e67 /src
parentc6c61c93154635018c901ace6251018dfc3d9961 (diff)
Make WriteToFile take constified arguments
Fixes compiler warning: "AsciiSrc.c", line 858: warning: argument #2 is incompatible with prototype: prototype: pointer to char : "AsciiSrc.c", line 118 argument : pointer to const char Has to use _XtString (#define char *) instead of String (typedef char *) to correctly be a pointer to const chars instead of a const pointer to chars. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/AsciiSrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AsciiSrc.c b/src/AsciiSrc.c
index 7df327d..e490b33 100644
--- a/src/AsciiSrc.c
+++ b/src/AsciiSrc.c
@@ -115,7 +115,7 @@ static void GetValuesHook(Widget, ArgList, Cardinal *);
static String MyStrncpy(char *, char *, int);
static String StorePiecesInString(AsciiSrcObject);
static Boolean SetValues(Widget, Widget, Widget, ArgList, Cardinal *);
-static Boolean WriteToFile(String, String);
+static Boolean WriteToFile(_Xconst _XtString, _Xconst _XtString);
#ifdef X_NOT_STDC_ENV
extern int errno;
#endif
@@ -915,7 +915,7 @@ RemoveOldStringOrFile(AsciiSrcObject src, Boolean checkString)
*/
static Boolean
-WriteToFile(String string, String name)
+WriteToFile(_Xconst _XtString string, _Xconst _XtString name)
{
int fd;