X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=etc%2Fafpd%2Fuam.c;h=5ebf617cf84ab3933944cc0262eeae1d0a8e7312;hb=be96d276348da0a7e66eeec844b306e8a5fa8fac;hp=b9045743a8abaab5dd132bc3e82645d1d7833415;hpb=cb8de5b604041071f3454dd8df97295544caba59;p=netatalk.git diff --git a/etc/afpd/uam.c b/etc/afpd/uam.c index b9045743..5ebf617c 100644 --- a/etc/afpd/uam.c +++ b/etc/afpd/uam.c @@ -26,8 +26,6 @@ #include #include -#include -#include #include #include #include @@ -468,16 +466,6 @@ int uam_afp_read(void *handle, char *buf, size_t *buflen, if (!obj) return AFPERR_PARAM; -#ifndef NO_DDP - switch (obj->proto) { - case AFPPROTO_ASP: - if ((len = asp_wrtcont(obj->handle, buf, buflen )) < 0) - goto uam_afp_read_err; - return action(handle, buf, *buflen); - break; - - case AFPPROTO_DSI: -#endif len = dsi_writeinit(obj->handle, buf, *buflen); if (!len || ((len = action(handle, buf, len)) < 0)) { dsi_writeflush(obj->handle); @@ -490,10 +478,6 @@ int uam_afp_read(void *handle, char *buf, size_t *buflen, goto uam_afp_read_err; } } -#ifndef NO_DDP - break; - } -#endif return 0; uam_afp_read_err: