From 313930a36a3a3d73836e860a54311f4b5742cba5 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 10 May 2019 04:02:14 +0200 Subject: [PATCH] Remove unused variables --- ext/iconv/iconv.c | 2 +- sapi/litespeed/lscriu.c | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 7e8852cc47..f064b65290 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -540,7 +540,7 @@ PHP_ICONV_API php_iconv_err_t php_iconv_string(const char *in_p, size_t in_len, char *out_p; iconv_t cd; size_t result; - zend_string *ret, *out_buffer; + zend_string *out_buffer; *out = NULL; diff --git a/sapi/litespeed/lscriu.c b/sapi/litespeed/lscriu.c index 9fa1de22c5..7c5bda7e88 100644 --- a/sapi/litespeed/lscriu.c +++ b/sapi/litespeed/lscriu.c @@ -142,12 +142,6 @@ typedef struct char m_chServiceAddress[SUN_PATH_MAX]; } criu_native_dump_t; -typedef struct -{ - int m_iDumpResult; - char m_chDumpResponseMessage[1024]; -} criu_native_dump_response_t; - typedef sem_t * (*psem_open_t) (const char *__name, int __oflag, ...); typedef int (*psem_post_t) (sem_t *__sem); typedef int (*psem_close_t) (sem_t *__sem); @@ -421,7 +415,6 @@ static int LSCRIU_Native_Dump(pid_t iPid, int iFdNative) { criu_native_dump_t criu_native_dump; char *pchLastSlash; - criu_native_dump_response_t criu_native_dump_response; memset(&criu_native_dump, 0, sizeof(criu_native_dump)); criu_native_dump.m_iPidToDump = iPid; @@ -441,18 +434,6 @@ static int LSCRIU_Native_Dump(pid_t iPid, return(-1); } return 0; - /* do not wait response. - //while (sleep(7200)); - if (read(iFdNative, - &criu_native_dump_response, - sizeof(criu_native_dump_response)) == -1) { - // The test will actually fail it! - //LSCRIU_Restored_Error(1, "Error reading dump socket #%d from parent: %s", - // iFdNative, strerror(errno)); - //return(-1); - } - return(-1); - */ } -- 2.40.0