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