]> arthur.barton.de Git - netatalk.git/commitdiff
Remove log statement, AD_MAX was wrong
authorFrank Lahm <franklahm@googlemail.com>
Thu, 28 Oct 2010 04:33:08 +0000 (06:33 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 28 Oct 2010 04:33:08 +0000 (06:33 +0200)
include/atalk/adouble.h
libatalk/adouble/ad_open.c

index fe763a8f3ec1ca9e138e00e70f3ef5054c292157..a1a2ecbd8047ba9346a4248c77ff458a2208f641 100644 (file)
@@ -75,7 +75,7 @@
 #define ADEID_PRIVINO       17
 #define ADEID_PRIVSYN       18 /* in synch with database */
 #define ADEID_PRIVID        19
-#define ADEID_MAX           19
+#define ADEID_MAX           (ADEID_PRIVID + 1)
 
 /* These are the real ids for these entries, as stored in the adouble file */
 #define AD_DEV              0x80444556
index 283efc0a3e6a33be6d523381174ee8fb6629f7cb..fd6e9f56afed07addc3d02e6ab1e97033cfedf28 100644 (file)
@@ -346,7 +346,6 @@ static int ad_header_read(struct adouble *ad, struct stat *hst)
     /* figure out all of the entry offsets and lengths. if we aren't
      * able to read a resource fork entry, bail. */
     nentries = len / AD_ENTRY_LEN;
-    LOG(log_error, logtype_default, "nentries: %d", nentries);
     parse_entries(ad, buf, nentries);
     if (!ad_getentryoff(ad, ADEID_RFORK)
         || (ad_getentryoff(ad, ADEID_RFORK) > sizeof(ad->ad_data))