diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-03 21:10:51 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-23 12:15:06 -0800 |
commit | cccafabd56d0f8e5784ea0ad9fdc03224f952bfe (patch) | |
tree | 7c0370ec1734080c3a20f34a5a79935d6c9c09dc /include/os.h | |
parent | 3d0ece5e8467d823afb227b7a7f8b12b906b6ba9 (diff) |
Mark arguments to fopen/popen/system wrappers as const char *
Silencing more gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/os.h b/include/os.h index df3580521..22983814b 100644 --- a/include/os.h +++ b/include/os.h @@ -307,10 +307,10 @@ extern _X_EXPORT void OsReleaseSignals (void); extern _X_EXPORT void OsAbort (void) _X_NORETURN; #if !defined(WIN32) -extern _X_EXPORT int System(char *); -extern _X_EXPORT pointer Popen(char *, char *); +extern _X_EXPORT int System(const char *); +extern _X_EXPORT pointer Popen(const char *, const char *); extern _X_EXPORT int Pclose(pointer); -extern _X_EXPORT pointer Fopen(char *, char *); +extern _X_EXPORT pointer Fopen(const char *, const char *); extern _X_EXPORT int Fclose(pointer); #else #define System(a) system(a) |