diff options
author | nijtmans <nijtmans> | 2009-12-16 23:25:59 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-12-16 23:25:59 (GMT) |
commit | c09d5284e91311929d7e92c73492076e8a05cd36 (patch) | |
tree | b7038bbc46d46d90860a433594776df4f31d744e /win | |
parent | cf4896697457a54ad804eebeb31b63e27e41cb6c (diff) | |
download | tcl-c09d5284e91311929d7e92c73492076e8a05cd36.zip tcl-c09d5284e91311929d7e92c73492076e8a05cd36.tar.gz tcl-c09d5284e91311929d7e92c73492076e8a05cd36.tar.bz2 |
Fix gcc warning: ignoring return value of ‘write’,
declared with attribute warn_unused_result
CONSTify functions TclpGetUserHome and
TclSetPreInitScript (TIP #27)
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinFile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 25e1eac..23fea2b 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.99 2009/11/24 00:08:27 patthoyts Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.100 2009/12/16 23:26:02 nijtmans Exp $ */ /* #define _WIN32_WINNT 0x0500 */ @@ -1416,13 +1416,13 @@ NativeMatchType( *---------------------------------------------------------------------- */ -char * +const char * TclpGetUserHome( const char *name, /* User name for desired home directory. */ Tcl_DString *bufferPtr) /* Uninitialized or free DString filled with * name of user's home directory. */ { - char *result; + const char *result; HINSTANCE netapiInst; result = NULL; |