X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ftpd.c;h=7f73e8951ca177e08e15bbd060c05c9e2b1ae16a;hb=f0c7394d9bdae7e980847003f2da6dcc3d2ad96c;hp=0f497c9a2a60bc194db5c5bfe055546219d384b2;hpb=1d1dd8f55a8b91e873db2f4255a1f1d9446e1bd0;p=betaftpd diff --git a/ftpd.c b/ftpd.c index 0f497c9..7f73e89 100644 --- a/ftpd.c +++ b/ftpd.c @@ -28,10 +28,6 @@ #include #endif -#if HAVE_SYS_TYPES_H -#include -#endif - #if HAVE_ERRNO_H #include #endif @@ -76,10 +72,6 @@ #include #endif -#if HAVE_NETINET_IN_H -#include -#endif - #if HAVE_ARPA_INET_H #include #endif @@ -88,10 +80,6 @@ #include #endif -#if HAVE_SYS_SOCKET_H -#include -#endif - #if HAVE_SYS_IOCTL_H #include #endif @@ -522,27 +510,6 @@ void destroy_ftran(struct ftran * const f) remove_from_linked_list((struct list_element *)f); } -#if WANT_DCACHE -/* - * destroy_dcache(): - * Destroy a directory listing cache entry, remove it from the - * linked list, and clean up after it. - * - * If you free a cache entry that is in use (use_count > 0), - * BetaFTPD will most likely crash (later). The thing you're supposed - * to do when you're done with a dcache entry, is to decrement - * its use_count, and let the timeout functions do the destroying - * when it's time to do so. - */ -void destroy_dcache(struct dcache * const d) -{ - if (d == NULL) return; - - if (d->dir_data != NULL) free(d->dir_data); - remove_from_linked_list((struct list_element *)d); -} -#endif - /* * process_all_clients(): * Processes all the _control_ connections in active_clients