X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=etc%2Fafpd%2Fstatus.c;h=caa74d5d154d0fd4e00ed30a25c6a69be536fec2;hb=3a43b6ca05ec2b8f0494f8619a82d25204b7b457;hp=f42bf5ec0ef97d657caca080f4a095b36f3db6b4;hpb=4e9103b8f614e81a66f4c21511cc8b97f25111c9;p=netatalk.git diff --git a/etc/afpd/status.c b/etc/afpd/status.c index f42bf5ec..caa74d5d 100644 --- a/etc/afpd/status.c +++ b/etc/afpd/status.c @@ -95,7 +95,7 @@ static void status_flags(char *data, static int status_server(char *data, const char *server, const struct afp_options *options) { char *start = data; - char *Obj, *Type, *Zone; + char *Obj; char buf[32]; uint16_t status; size_t len; @@ -364,7 +364,6 @@ static size_t status_directorynames(char *data, data += offset; char *DirectoryNamesCount = data++; - char *DirectoryNames = data; size_t size = sizeof(uint8_t); *DirectoryNamesCount = 0; @@ -441,7 +440,7 @@ static size_t status_directorynames(char *data, } krb5_unparse_name(context, entry.principal, &principal); - krb5_kt_free_entry(context, &entry); + krb5_free_keytab_entry_contents(context, &entry); append_directoryname(&data, offset, @@ -501,7 +500,7 @@ static size_t status_utf8servername(char *data, int *nameoffset, uint16_t namelen; size_t len; char *begin = data; - uint16_t offset, status; + uint16_t offset; memcpy(&offset, data + *nameoffset, sizeof(offset)); offset = ntohs(offset); @@ -645,7 +644,7 @@ void set_signature(struct afp_options *options) { char *servername_conf; int header = 0; char buf[1024], *p; - FILE *fp = NULL, *randomp; + FILE *fp = NULL; size_t len; char *server_tmp;