Add const, from Andrew Abartlet <abartlet@samba.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15506 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -39,13 +39,13 @@ RCSID("$Id$");
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "base64.h"
|
#include "base64.h"
|
||||||
|
|
||||||
static char base64_chars[] =
|
static const char base64_chars[] =
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
|
||||||
static int
|
static int
|
||||||
pos(char c)
|
pos(char c)
|
||||||
{
|
{
|
||||||
char *p;
|
const char *p;
|
||||||
for (p = base64_chars; *p; p++)
|
for (p = base64_chars; *p; p++)
|
||||||
if (*p == c)
|
if (*p == c)
|
||||||
return p - base64_chars;
|
return p - base64_chars;
|
||||||
|
Reference in New Issue
Block a user