Purely cosmetic.

This commit is contained in:
Sterling Hughes 2000-08-18 13:24:00 +00:00
parent 1b8ee02fd6
commit c80f2bcba2
2 changed files with 10 additions and 9 deletions

View file

@ -313,14 +313,16 @@ PHP_FUNCTION(curl_setopt)
if (option == CURLOPT_FILE) {
CURLG(output_node) = &CURLG(output_start);
while (CURLG(output_node)->next)
CURLG(output_node) = CURLG(output_node)->next;
CURLG(output_node)->next = (struct curl_fileid_table *)emalloc(sizeof(struct curl_fileid_table));
CURLG(output_node)->next = (struct curl_file_id_table *)emalloc(sizeof(struct curl_file_id_table));
CURLG(output_node) = CURLG(output_node)->next;
CURLG(output_node)->id = Z_LVAL_PP(uCurlId);
CURLG(output_node)->next = NULL;
}
}
RETURN_LONG(php_curl_error_translator(ret));

View file

@ -87,16 +87,15 @@ PHP_FUNCTION(curl_close);
#define CE_BAD_CALLING_ORDER 44
#define C_LAST 45
struct curl_fileid_table
{
struct curl_file_id_table {
int id;
struct curl_fileid_table *next;
struct curl_file_id_table *next;
};
typedef struct {
int use_file;
int le_curl;
struct curl_fileid_table *output_node, output_start;
struct curl_file_id_table *output_node, output_start;
} php_curl_globals;
#ifdef ZTS