mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CLuaInstCurl: Fix compiler warning
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6b6dff36d6
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-22 (Tue, 22 Dec 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -99,7 +99,7 @@ int CLuaInstCurl::CurlProgressFunc(void *p, curl_off_t dltotal, curl_off_t dlnow
|
|||||||
curl_easy_getinfo(_pgd->curl, CURLINFO_RESPONSE_CODE, &responseCode);
|
curl_easy_getinfo(_pgd->curl, CURLINFO_RESPONSE_CODE, &responseCode);
|
||||||
|
|
||||||
uint32_t MUL = 0x7FFF;
|
uint32_t MUL = 0x7FFF;
|
||||||
uint32_t dlFragment = (dlnow * MUL) / dltotal;
|
uint32_t dlFragment = (uint32_t)((dlnow * MUL) / dltotal);
|
||||||
if (responseCode != 200) {
|
if (responseCode != 200) {
|
||||||
dlFragment = 0;
|
dlFragment = 0;
|
||||||
dlSpeed = 0;
|
dlSpeed = 0;
|
||||||
|
@@ -21,8 +21,6 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
|
@@ -30,6 +30,7 @@ extern "C"
|
|||||||
#include <lauxlib.h>
|
#include <lauxlib.h>
|
||||||
#include <lualib.h>
|
#include <lualib.h>
|
||||||
}
|
}
|
||||||
|
#include <pthread.h>
|
||||||
|
|
||||||
/* wrap strerror_r(). */
|
/* wrap strerror_r(). */
|
||||||
#ifndef strerror_r
|
#ifndef strerror_r
|
||||||
|
Reference in New Issue
Block a user