summaryrefslogtreecommitdiffstats
path: root/fs/ceph/armor.c
diff options
context:
space:
mode:
authorYehuda Sadeh2010-06-12 01:58:48 +0200
committerSage Weil2010-08-02 05:11:40 +0200
commitcd84db6e4051a9fb7941d49d31a0193a3371fd61 (patch)
treebeb657b2cc6b4184d97a85502b29a291616a83ab /fs/ceph/armor.c
parentceph: skip if no auth cap in flush_snaps (diff)
downloadkernel-qcow2-linux-cd84db6e4051a9fb7941d49d31a0193a3371fd61.tar.gz
kernel-qcow2-linux-cd84db6e4051a9fb7941d49d31a0193a3371fd61.tar.xz
kernel-qcow2-linux-cd84db6e4051a9fb7941d49d31a0193a3371fd61.zip
ceph: code cleanup
Mainly fixing minor issues reported by sparse. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/armor.c')
-rw-r--r--fs/ceph/armor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/ceph/armor.c b/fs/ceph/armor.c
index 67b2c030924b..eb2a666b0be7 100644
--- a/fs/ceph/armor.c
+++ b/fs/ceph/armor.c
@@ -1,11 +1,15 @@
#include <linux/errno.h>
+int ceph_armor(char *dst, const char *src, const char *end);
+int ceph_unarmor(char *dst, const char *src, const char *end);
+
/*
* base64 encode/decode.
*/
-const char *pem_key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+static const char *pem_key =
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static int encode_bits(int c)
{