Pārlūkot izejas kodu

Removed the http_redo hack.

master
Richard Nyberg pirms 19 gadiem
vecāks
revīzija
e3dc78703a
2 mainītis faili ar 0 papildinājumiem un 13 dzēšanām
  1. +0
    -11
      btpd/http.c
  2. +0
    -2
      btpd/http.h

+ 0
- 11
btpd/http.c Parādīt failu

@@ -88,17 +88,6 @@ http_get(struct http **ret,
return 0;
}

int
http_redo(struct http **http)
{
int err;
struct http *ret;
err = http_get(&ret, (*http)->cb, "%s", (*http)->url);
http_cancel(*http);
*http = ret;
return err;
}

void
http_cancel(struct http *http)
{


+ 0
- 2
btpd/http.h Parādīt failu

@@ -20,9 +20,7 @@ int http_get(struct http **ret,
void (*cb)(struct http *, struct http_res *, void *),
void *arg,
const char *fmt, ...);
int http_redo(struct http **http);
void http_cancel(struct http *http);

int http_succeeded(struct http_res *res);

void http_init(void);


Notiek ielāde…
Atcelt
Saglabāt