cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl and apt-get update

From: Alan Ezust <alan.ezust_at_gmail.com>
Date: Fri, 6 Jul 2007 11:50:05 -0700

Ah, I found the culprit:

#ifdef CURL_DO_LINEEND_CONV
          /* always convert if we're FTPing in ASCII mode */
          if ((data->set.crlf) || (data->set.prefer_ascii)) {
#else
          if (data->set.crlf) {
#endif /* CURL_DO_LINEEND_CONV */

Editors would parse this better if the open curly bracket would be on
the following line, OUTSIDE of the macro expansion. i.e.

#ifdef CURL_DO_LINEEND_CONV
          /* always convert if we're FTPing in ASCII mode */
          if ((data->set.crlf) || (data->set.prefer_ascii))
#else
          if (data->set.crlf)
#endif /* CURL_DO_LINEEND_CONV */
          {
Received on 2007-07-06