From: didg Date: Fri, 15 Sep 2006 00:35:03 +0000 (+0000) Subject: remove the daemon icon, it's not displayed on OS9 and not always on OSX, from HAT X-Git-Tag: netatalk-2-0-4-beta1~46 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=a2a39457c35fb267c8a09ee2e613c0f2e2f692e7 remove the daemon icon, it's not displayed on OS9 and not always on OSX, from HAT --- diff --git a/etc/afpd/desktop.c b/etc/afpd/desktop.c index 0b9e2a56..ae9521d3 100644 --- a/etc/afpd/desktop.c +++ b/etc/afpd/desktop.c @@ -1,5 +1,5 @@ /* - * $Id: desktop.c,v 1.26.2.4.2.18.2.4 2006-03-14 06:14:51 didg Exp $ + * $Id: desktop.c,v 1.26.2.4.2.18.2.5 2006-09-15 00:35:03 didg Exp $ * * See COPYRIGHT. * @@ -315,6 +315,8 @@ static const u_char utag[] = { 0, 0, 0, 0 }; static const u_char ucreator[] = { 0, 0, 0, 0 };/* { 'U', 'N', 'I', 'X' };*/ static const u_char utype[] = { 0, 0, 0, 0 };/* { 'T', 'E', 'X', 'T' };*/ static const short usize = 256; + +#if 0 static const u_char uicon[] = { 0x1F, 0xFF, 0xFC, 0x00, 0x10, 0x00, 0x06, 0x00, 0x10, 0x00, 0x05, 0x00, 0x10, 0x00, 0x04, 0x80, @@ -349,6 +351,7 @@ static const u_char uicon[] = { 0x1F, 0xFF, 0xFF, 0xF0, 0x1F, 0xFF, 0xFF, 0xF0, 0x1F, 0xFF, 0xFF, 0xF0, 0x1F, 0xFF, 0xFF, 0xF0, }; +#endif int afp_geticoninfo(obj, ibuf, ibuflen, rbuf, rbuflen ) AFPObj *obj _U_; @@ -454,6 +457,7 @@ int ibuflen _U_, *rbuflen; memcpy( &bsize, ibuf, sizeof( bsize )); bsize = ntohs( bsize ); +#if 0 if ( memcmp( fcreator, ucreator, sizeof( ucreator )) == 0 && memcmp( ftype, utype, sizeof( utype )) == 0 && itype == 1 && @@ -462,6 +466,7 @@ int ibuflen _U_, *rbuflen; *rbuflen = bsize; return( AFP_OK ); } +#endif if ( iconopen( vol, fcreator, O_RDONLY, 0 ) < 0) { return( AFPERR_NOITEM );