diff --git a/httpd.c b/httpd.c index 20d87bd..213f751 100644 --- a/httpd.c +++ b/httpd.c @@ -448,7 +448,7 @@ static void *job_thread(void *arg) /* it's a socket */ FILE *f = NULL; - xs_data_get(job, &f); + xs_data_get(&f, job); if (f != NULL) httpd_connection(f); diff --git a/xs.h b/xs.h index 18b1d9c..7b85dcb 100644 --- a/xs.h +++ b/xs.h @@ -115,7 +115,7 @@ const char *xs_number_str(const xs_number *v); xs_data *xs_data_new(const void *data, int size); int xs_data_size(const xs_data *value); -void xs_data_get(const xs_data *value, void *data); +void xs_data_get(void *data, const xs_data *value); void *xs_memmem(const char *haystack, int h_size, const char *needle, int n_size); @@ -1153,7 +1153,7 @@ int xs_data_size(const xs_data *value) } -void xs_data_get(const xs_data *value, void *data) +void xs_data_get(void *data, const xs_data *value) /* copies the raw data stored inside value into data */ { memcpy(data, &value[4], xs_data_size(value)); diff --git a/xs_version.h b/xs_version.h index f5836c7..a30fb2d 100644 --- a/xs_version.h +++ b/xs_version.h @@ -1 +1 @@ -/* 0b8d1591403ac07d83de975db6afa27e353f958c */ +/* a9cd3893c427bbcc478c5680245d435e415fd58a */