Fixed an issue in the threadstorage cli functions resulting from the constification...
authorDavid Vossel <dvossel@digium.com>
Mon, 1 Jun 2009 15:23:21 +0000 (15:23 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 1 Jun 2009 15:23:21 +0000 (15:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198558 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/threadstorage.c

index a54ffac..83c9ebe 100644 (file)
@@ -125,7 +125,7 @@ void __ast_threadstorage_object_replace(void *key_old, void *key_new, size_t len
 
 static char *handle_cli_threadstorage_show_allocations(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
-       char *fn = NULL;
+       const char *fn = NULL;
        size_t len = 0;
        unsigned int count = 0;
        struct tls_object *to;
@@ -169,7 +169,7 @@ static char *handle_cli_threadstorage_show_allocations(struct ast_cli_entry *e,
 
 static char *handle_cli_threadstorage_show_summary(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
-       char *fn = NULL;
+       const char *fn = NULL;
        size_t len = 0;
        unsigned int count = 0;
        struct tls_object *to;