Re: cvs: php4 /ext/ftp ftp.c php_ftp.c
| From: | Andi Gutmans | Date: | Sun, 08 Sep 2002 10:16:30 +0000 |
| Subject: | Re: cvs: php4 /ext/ftp ftp.c php_ftp.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-13926@lists.php.net to get a copy of this message | ||
There should be a standard way of writing this. It kind of sucks to have two lines with almost exactly the same code.
At 10:13 AM 9/5/2002 +0000, Anantha Kesari H Y wrote:
+#if defined(NETWARE) && !defined(USE_WINSOCK)Also is there a reason for all of those ugly: + +#if defined(NETWARE) && defined(USE_WINSOCK) /* Atleast for now, to allow sockets to be freed */ + /*THREAD_SWITCH_WITH_DELAY;*/ + printf ("PHP | ftp_login: sending password...\n"); +#endif I think it's good you guys are working on novell support but you should try and keep it as clean as possible. Andi+ if (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, (unsigned int*)&size) == -1) {+#elseif (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, &size) == -1) {+#endif