Skip to content
Browse files

minor API fix; these char* are actually const

  • Loading branch information...
1 parent 0c6d6a0 commit 38499ea1a2aeed0b8bd18a531d8d439b4fd016b5 @bwalex committed Jul 3, 2011
Showing with 5 additions and 6 deletions.
  1. +3 −4 tc-play-api.c
  2. +2 −2 tc-play-api.h
View
7 tc-play-api.c
@@ -50,14 +50,13 @@ tc_api_uninit(void)
return TC_OK;
}
-char *
+const char *
tc_api_get_error_msg(void)
{
- return (tc_internal_verbose) ? __DECONST(char *, "") :
- tc_internal_log_buffer;
+ return (tc_internal_verbose) ? "" : tc_internal_log_buffer;
}
-char *
+const char *
tc_api_get_summary(void)
{
if (summary_fn != NULL) {
View
4 tc-play-api.h
@@ -55,6 +55,6 @@ int tc_api_create_volume(tc_api_op *api_opts);
int tc_api_map_volume(tc_api_op *api_opts);
int tc_api_check_cipher(tc_api_op *api_opts);
int tc_api_check_prf_hash(tc_api_op *api_opts);
-char *tc_api_get_error_msg(void);
-char *tc_api_get_summary(void);
+const char *tc_api_get_error_msg(void);
+const char *tc_api_get_summary(void);

0 comments on commit 38499ea

Please sign in to comment.
Something went wrong with that request. Please try again.