X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fspotlight_marshalling.c;h=9329dde23a20af14f4a16c5277299977e30c666e;hp=f156656ad7c831429c7657d38fd6197a96712378;hb=071887b8a84c7111477d9e1fcc8be9ea2b0c47e5;hpb=623c302f9f9fec9e2b81f4f7b2dbd958ed1e0b87 diff --git a/etc/afpd/spotlight_marshalling.c b/etc/afpd/spotlight_marshalling.c index f156656a..9329dde2 100644 --- a/etc/afpd/spotlight_marshalling.c +++ b/etc/afpd/spotlight_marshalling.c @@ -216,7 +216,7 @@ EC_CLEANUP: static int sl_pack_CNID(sl_cnids_t *cnids, char *buf, int offset, char *toc_buf, int *toc_idx) { EC_INIT; - int off = 0, len; + int len; int cnid_count = talloc_array_length(cnids->ca_cnids->dd_talloc_array); uint64_t id; @@ -233,7 +233,7 @@ static int sl_pack_CNID(sl_cnids_t *cnids, char *buf, int offset, char *toc_buf, offset += 8; if (cnid_count > 0) { - EC_ZERO( slvalc(buf, offset, MAX_SLQ_DAT, sl_pack_tag(0x0add, cnid_count, cnids->ca_context)) ); + EC_ZERO( slvalc(buf, offset, MAX_SLQ_DAT, sl_pack_tag(cnids->ca_unkn1, cnid_count, cnids->ca_context)) ); offset += 8; for (int i = 0; i < cnid_count; i++) { @@ -472,7 +472,6 @@ static int sl_unpack_floats(DALLOC_CTX *query, const char *buf, int offset, uint { int count, i; uint64_t query_data64; - double fval; union { double d; uint32_t w[2]; @@ -786,8 +785,8 @@ EC_CLEANUP: int sl_unpack(DALLOC_CTX *query, const char *buf) { EC_INIT; - int encoding, i, toc_entries; - uint64_t toc_offset, tquerylen, toc_entry; + int encoding, toc_entries; + uint64_t toc_offset; if (strncmp(buf, "md031234", 8) == 0) encoding = SL_ENC_BIG_ENDIAN;