diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2011-04-12 16:05:23 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2011-05-24 17:41:19 -0700 |
commit | 99abe6b32def53ab8b2e34ca630ffa99f230313a (patch) | |
tree | f3490dd683305f61554d65afa34edb4230e0c77c /include | |
parent | 0caed7231667a617d26e9f3a01ce91412ae34539 (diff) |
tet: tet_getvar needs to take a const char* argument
config.c: In function ‘initconfig’:
config.c:394: error: passing argument 1 of ‘_initconfig’ from incompatible pointer type
config.c:328: note: expected ‘char * (*)(const char *)’ but argument is of type ‘char * (*)(char *)’
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/tet_api.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/tet_api.h b/include/tet_api.h index 1f70e287..36561eaf 100644 --- a/include/tet_api.h +++ b/include/tet_api.h @@ -104,6 +104,9 @@ MODIFICATIONS: Andrew Dingwall, UniSoft Ltd., August 1998 Added support for shared libraries. + Aaron Plattner, NVIDIA Corporation, April 2011 + tet_getvar needs to take a const char* argument. + ************************************************************************/ #ifndef TET_API_H_INCLUDED @@ -311,7 +314,7 @@ extern "C" { /* functions in TETware-Lite and in Distrubuted TETware */ TET_IMPORT_FUNC(void, tet_delete, TET_PROTOLIST((int, char *))); TET_NORETURN TET_IMPORT_FUNC(void, tet_exit, TET_PROTOLIST((int))); -TET_IMPORT_FUNC(char *, tet_getvar, TET_PROTOLIST((char *))); +TET_IMPORT_FUNC(char *, tet_getvar, TET_PROTOLIST((const char *))); TET_IMPORT_FUNC(void, tet_infoline, TET_PROTOLIST((char *))); TET_IMPORT_FUNC(int, tet_kill, TET_PROTOLIST((pid_t, int))); TET_IMPORT_FUNC(void, tet_logoff, TET_PROTOLIST((void))); |