mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
make configuration variable const so they are not accidentally
modified. This requires casting the strings in asterisk.c when writing to them, so we do it through a macro to do it consistently. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -146,7 +146,7 @@ static struct ast_key *__ast_key_get(const char *kname, int ktype)
|
||||
* \retval key on success.
|
||||
* \retval NULL on failure.
|
||||
*/
|
||||
static struct ast_key *try_load_key(char *dir, char *fname, int ifd, int ofd, int *not2)
|
||||
static struct ast_key *try_load_key(const char *dir, const char *fname, int ifd, int ofd, int *not2)
|
||||
{
|
||||
int ktype = 0, found = 0;
|
||||
char *c = NULL, ffname[256];
|
||||
|
Reference in New Issue
Block a user