mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Changed UNUSED to make it Windows compatible
This commit is contained in:
parent
46cbc18df5
commit
ccd2bee54f
@ -2545,12 +2545,15 @@ void split_url(const char *url, char *host, int *port, char *subdir, char *param
|
|||||||
|
|
||||||
/*-------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------*/
|
||||||
|
|
||||||
int retrieve_url(LOGBOOK *lbs, const char *url, UNUSED(int ssl), char **buffer) {
|
int retrieve_url(LOGBOOK *lbs, const char *url, int ssl, char **buffer) {
|
||||||
char str[1000], unm[256], upwd[256], host[256], subdir[256], param[256];
|
char str[1000], unm[256], upwd[256], host[256], subdir[256], param[256];
|
||||||
int port, bufsize;
|
int port, bufsize;
|
||||||
int i, n;
|
int i, n;
|
||||||
fd_set readfds;
|
fd_set readfds;
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
|
|
||||||
|
UNUSED(ssl);
|
||||||
|
|
||||||
#ifdef HAVE_SSL
|
#ifdef HAVE_SSL
|
||||||
static SSL *ssl_con = NULL;
|
static SSL *ssl_con = NULL;
|
||||||
#else
|
#else
|
||||||
@ -12761,8 +12764,9 @@ void remove_crlf(char *buffer) {
|
|||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|
||||||
void adjust_crlf(char *buffer, UNUSED(int bufsize)) {
|
void adjust_crlf(char *buffer, int bufsize) {
|
||||||
char *p;
|
char *p;
|
||||||
|
UNUSED(bufsize);
|
||||||
|
|
||||||
#ifdef OS_UNIX
|
#ifdef OS_UNIX
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* unused function parameters */
|
/* unused function parameters */
|
||||||
#define UNUSED(x) __attribute__((unused)) x
|
#define UNUSED(expr) do { (void)(expr); } while (0)
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user