From 5824af9cbc354a1570f9fb6363cdfb1b0a4fb2fe Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Wed, 6 Dec 2006 07:39:39 +0000
Subject: [PATCH] Resolve some pointer signedness compiler warnings in
 app_osplookup, and constify a bunch of usage strings for CLI commands.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_meetme.c    | 4 ++--
 apps/app_osplookup.c | 4 ++--
 apps/app_queue.c     | 6 +++---
 apps/app_voicemail.c | 4 ++--
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index d094bb1103..403517f1d6 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -900,11 +900,11 @@ static char *complete_meetmecmd(const char *line, const char *word, int pos, int
 	return NULL;
 }
 	
-static char meetme_usage[] =
+static const char meetme_usage[] =
 "Usage: meetme (un)lock|(un)mute|kick|list [concise] <confno> <usernumber>\n"
 "       Executes a command for the conference or on a conferee\n";
 
-static char sla_show_usage[] =
+static const char sla_show_usage[] =
 "Usage: sla show\n"
 "       Lists status of all shared line appearances\n";
 
diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c
index 4bdc55a92f..3adde50f2f 100644
--- a/apps/app_osplookup.c
+++ b/apps/app_osplookup.c
@@ -146,7 +146,7 @@ struct osp_provider {
 
 /* Call ID */
 struct osp_callid {
-	char buf[OSPC_CALLID_MAXSIZE];		/* Call ID string */
+	unsigned char buf[OSPC_CALLID_MAXSIZE];		/* Call ID string */
 	unsigned int len;					/* Call ID length */
 };
 
@@ -2159,7 +2159,7 @@ static const char* descrip4 =
 "	OSPFINISHSTATUS The status of the OSP Finish attempt as a text string, one of\n"
 "		SUCCESS | FAILED | ERROR \n";
 
-static char osp_usage[] =
+static const char osp_usage[] =
 "Usage: osp show\n"
 "       Displays information on Open Settlement Protocol support\n";
 
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 75892cdea3..1bcfaf60aa 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4633,14 +4633,14 @@ static char *complete_queue_remove_member(const char *line, const char *word, in
 	return NULL;
 }
 
-static char queue_show_usage[] =
+static const char queue_show_usage[] =
 "Usage: queue show\n"
 "       Provides summary information on a specified queue.\n";
 
-static char qam_cmd_usage[] =
+static const char qam_cmd_usage[] =
 "Usage: queue add member <channel> to <queue> [penalty <penalty>]\n";
 
-static char qrm_cmd_usage[] =
+static const char qrm_cmd_usage[] =
 "Usage: queue remove member <channel> from <queue>\n";
 
 static struct ast_cli_entry cli_queue[] = {
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 73f470536f..7000b94444 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -6938,11 +6938,11 @@ static int vmauthenticate(struct ast_channel *chan, void *data)
 	return res;
 }
 
-static char voicemail_show_users_help[] =
+static const char voicemail_show_users_help[] =
 "Usage: voicemail show users [for <context>]\n"
 "       Lists all mailboxes currently set up\n";
 
-static char voicemail_show_zones_help[] =
+static const char voicemail_show_zones_help[] =
 "Usage: voicemail show zones\n"
 "       Lists zone message formats\n";
 
-- 
GitLab