Commit d4e3eec8 authored by Christian Oien's avatar Christian Oien

Declare as const char when use of literal strings

parent 23337a99
......@@ -119,7 +119,7 @@ typedef enum {
*/
err_status_t
err_reporting_init(char *ident);
err_reporting_init(const char *ident);
#ifdef SRTP_KERNEL_LINUX
extern err_reporting_level_t err_level;
......@@ -136,7 +136,7 @@ extern err_reporting_level_t err_level;
*/
void
err_report(int priority, char *format, ...);
err_report(int priority, const char *format, ...);
#endif /* ! SRTP_KERNEL_LINUX */
......@@ -146,7 +146,7 @@ err_report(int priority, char *format, ...);
typedef struct {
int on; /* 1 if debugging is on, 0 if it is off */
char *name; /* printable name for debug module */
const char *name; /* printable name for debug module */
} debug_module_t;
#ifdef ENABLE_DEBUGGING
......
......@@ -61,7 +61,7 @@ err_reporting_level_t err_level = err_level_none;
#ifdef SRTP_KERNEL_LINUX
err_status_t
err_reporting_init(char *ident) {
err_reporting_init(const char *ident) {
return err_status_ok;
}
......@@ -73,7 +73,7 @@ err_reporting_init(char *ident) {
static FILE *err_file = NULL;
err_status_t
err_reporting_init(char *ident) {
err_reporting_init(const char *ident) {
#ifdef ERR_REPORTING_SYSLOG
openlog(ident, LOG_PID, LOG_AUTHPRIV);
#endif
......@@ -96,7 +96,7 @@ err_reporting_init(char *ident) {
}
void
err_report(int priority, char *format, ...) {
err_report(int priority, const char *format, ...) {
va_list args;
if (priority <= err_level) {
......
......@@ -1242,7 +1242,7 @@ srtp_install_event_handler(srtp_event_handler_func_t func);
* @brief Returns the version string of the library.
*
*/
char *srtp_get_version_string(void);
const char *srtp_get_version_string(void);
/**
* @brief Returns the numeric representation of the library version.
......
......@@ -72,7 +72,7 @@ debug_module_t mod_srtp = {
#define octets_in_rtcp_header 8
#define uint32s_in_rtcp_header 2
char *srtp_get_version_string ()
const char *srtp_get_version_string ()
{
/*
* Simply return the autotools generated string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment