X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Ffork.c;h=0c9ccef9c3c6f5e318532cce3f653c0cbd425276;hp=eb18fd3373109d5c3b72fc1a8ea06e0f5b510cb8;hb=cb8de5b604041071f3454dd8df97295544caba59;hpb=7c09afb84102a4468867886469dcee108888126e diff --git a/etc/afpd/fork.c b/etc/afpd/fork.c index eb18fd33..0c9ccef9 100644 --- a/etc/afpd/fork.c +++ b/etc/afpd/fork.c @@ -34,12 +34,6 @@ #include "desktop.h" #include "volume.h" -#ifdef DEBUG1 -#define Debug(a) ((a)->options.flags & OPTION_DEBUG) -#else -#define Debug(a) (0) -#endif - #ifdef AFS struct ofork *writtenfork; #endif @@ -918,7 +912,7 @@ static int read_fork(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, si /* due to the nature of afp packets, we have to exit if we get an error. we can't do this with translation on. */ #ifdef WITH_SENDFILE - if (!(xlate || Debug(obj) )) { + if (!(xlate)) { int fd; fd = ad_readfile_init(ofork->of_ad, eid, &offset, 0); @@ -945,12 +939,6 @@ static int read_fork(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, si goto afp_read_exit; offset += *rbuflen; -#ifdef DEBUG1 - if (obj->options.flags & OPTION_DEBUG) { - printf( "(read) reply: %d, %d\n", *rbuflen, dsi->clientID); - bprint(rbuf, *rbuflen); - } -#endif /* dsi_read() also returns buffer size of next allocation */ cc = dsi_read(dsi, rbuf, *rbuflen); /* send it off */ if (cc < 0) @@ -1266,12 +1254,6 @@ static int write_fork(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, s return( AFPERR_PARAM ); } -#ifdef DEBUG1 - if (obj->options.flags & OPTION_DEBUG) { - printf("(write) len: %d\n", *rbuflen); - bprint(rbuf, *rbuflen); - } -#endif if ((cc = write_file(ofork, eid, offset, rbuf, *rbuflen, xlate)) < 0) { *rbuflen = 0;