Commit e1d2d67c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Namespace cleanup: base64_* -> VB64_*

parent 9787e415
......@@ -608,11 +608,11 @@ h_ncsa(void *priv, enum vsl_tag tag, unsigned fd,
char *rubuf;
size_t rulen;
base64_init();
VB64_init();
rulen = ((strlen(lp->df_u) + 3) * 4) / 3;
rubuf = malloc(rulen);
assert(rubuf != NULL);
base64_decode(rubuf, rulen, lp->df_u);
VB64_decode(rubuf, rulen, lp->df_u);
q = strchr(rubuf, ':');
if (q != NULL)
*q = '\0';
......
......@@ -264,7 +264,7 @@ extern const char *VSL_tags[256];
/* base64.c */
void base64_init(void);
int base64_decode(char *d, unsigned dlen, const char *s);
void VB64_init(void);
int VB64_decode(char *d, unsigned dlen, const char *s);
#endif
......@@ -15,7 +15,7 @@ static const char b64[] =
static char i64[256];
void
base64_init(void)
VB64_init(void)
{
int i;
const char *p;
......@@ -28,7 +28,7 @@ base64_init(void)
}
int
base64_decode(char *d, unsigned dlen, const char *s)
VB64_decode(char *d, unsigned dlen, const char *s)
{
unsigned u, v, l;
int i;
......@@ -78,9 +78,9 @@ main(int argc, char **argv)
(void)argc;
(void)argv;
base64_init();
VB64_init();
l = sizeof buf;
base64_decode(buf, &l, test1);
VB64_decode(buf, &l, test1);
printf("%s\n", buf);
return (0);
}
......
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