summaryrefslogtreecommitdiff
path: root/scheduler
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2019-06-07 02:44:58 +0000
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2019-06-07 04:06:34 +0000
commitce3f7bf3e99873d9fae2325835792b9c9cf805c2 (patch)
tree6498f113d226e025f514ec3d4d3691829c81b56a /scheduler
parent2e738f0309576e4dcb846939b8934e409b3d3e78 (diff)
downloadcups-ce3f7bf3e99873d9fae2325835792b9c9cf805c2.tar.gz
remove unused to64()
Diffstat (limited to 'scheduler')
-rw-r--r--scheduler/auth.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/scheduler/auth.c b/scheduler/auth.c
index e4c9157f5..c910c131d 100644
--- a/scheduler/auth.c
+++ b/scheduler/auth.c
@@ -67,8 +67,6 @@ static void free_authmask(cupsd_authmask_t *am, void *data);
#if HAVE_LIBPAM
static int pam_func(int, const struct pam_message **,
struct pam_response **, void *);
-#else
-static void to64(char *s, unsigned long v, int n);
#endif /* HAVE_LIBPAM */
@@ -2068,24 +2066,4 @@ pam_func(
return (PAM_SUCCESS);
}
-#else
-
-
-/*
- * 'to64()' - Base64-encode an integer value...
- */
-
-static void
-to64(char *s, /* O - Output string */
- unsigned long v, /* I - Value to encode */
- int n) /* I - Number of digits */
-{
- const char *itoa64 = "./0123456789"
- "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "abcdefghijklmnopqrstuvwxyz";
-
-
- for (; n > 0; n --, v >>= 6)
- *s++ = itoa64[v & 0x3f];
-}
#endif /* HAVE_LIBPAM */