message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add "-Wformat=2" to compiler flags and fix 1 warning | @@ -102,7 +102,7 @@ static void print_tag_stack (
print_message(parser, output, ", ");
}
GumboTag tag = (GumboTag) error->tag_stack.data[i];
- print_message(parser, output, gumbo_normalized_tagname(tag));
+ print_message(parser, output, "%s", gumbo_normalized_tagname(tag));
}
gumbo_string_buffer_append_codepoint(parser... |
VERSION bump to version 2.1.81 | @@ -64,7 +64,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 1)
-set(SYSREPO_MICRO_VERSION 80)
+set(SYSREPO_MICRO_VERSION 81)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
data tree BUGFIX set out param | @@ -978,6 +978,9 @@ lyd_new_meta(const struct ly_ctx *ctx, struct lyd_node *parent, const struct lys
LOGERR(ctx, LY_EINVAL, "Cannot add metadata to an opaque node \"%s\".", ((struct lyd_node_opaq *)parent)->name);
return LY_EINVAL;
}
+ if (meta) {
+ *meta = NULL;
+ }
/* parse the name */
tmp = name;
@@ -1013,6 +1016,9 ... |
Throw error also for negative interval values | @@ -2176,7 +2176,7 @@ int DeRestPluginPrivate::modifyConfig(const ApiRequest &req, ApiResponse &rsp)
if (map.contains("lightlastseeninterval")) // optional
{
int lightLastSeen = map["lightlastseeninterval"].toInt(&ok);
- if (!ok || lightLastSeen = 0 || lightLastSeen > 65535)
+ if (!ok || lightLastSeen <= 0 || lightLast... |
input_chunk: change log level to avoid noisy logs | @@ -836,7 +836,7 @@ int flb_input_chunk_append_raw(struct flb_input_instance *in,
}
if (buf_size == 0) {
- flb_info("[input chunk] skip ingesting data with 0 bytes");
+ flb_debug("[input chunk] skip ingesting data with 0 bytes");
return -1;
}
|
filter_lua: calculate table size using table.maxn(#3433)
Lua5.1 can't get the size of table which contains null using operator #.
In 5.1, we can get the size using table.maxn.
Note: table.maxn is deprecated from Lua5.2. | @@ -116,11 +116,58 @@ static void lua_pushmsgpack(lua_State *l, msgpack_object *o)
}
+/*
+ * This function is to call lua function table.maxn.
+ * CAUTION: table.maxn is removed from Lua 5.2.
+ * If we update luajit which is based Lua 5.2+,
+ * this function should be removed.
+*/
+static int lua_isinteger(lua_State *L... |
tcmu-runner: fix the resource released when exception exits in main | @@ -814,7 +814,7 @@ int main(int argc, char **argv)
optarg, PATH_MAX - TCMU_LOG_FILENAME_MAX);
}
if (!tcmu_logdir_create(optarg)) {
- exit(1);
+ goto err_out;
}
tcmu_log_dir = strdup(optarg);
break;
@@ -823,11 +823,11 @@ int main(int argc, char **argv)
break;
case 'V':
printf("tcmu-runner %s\n", TCMUR_VERSION);
- exit(... |
For version verb ignore return code for initialization
Initialization failures prevented the version command from
running when it could partially work. This was seen when a
non-privileged account executed the ipmctl version command.
Fixes | @@ -285,7 +285,9 @@ UefiMain(
UINTN Argc = 0;
CHAR16 **ppArgv = NULL;
UINT32 NextId = 0;
-#ifndef OS_BUILD
+#ifdef OS_BUILD
+ BOOLEAN IsVersionCommand = FALSE;
+#else
SHELL_FILE_HANDLE StdIn = NULL;
#endif
@@ -576,16 +578,22 @@ UefiMain(
#endif
#ifdef OS_BUILD
+ // different handling of returncodes for version command ... |
Properly name the build artifacts w/ shield name. | @@ -59,5 +59,5 @@ jobs:
uses: actions/upload-artifact@v2
if: ${{ matrix.board == 'nice_nano' }}
with:
- name: "${{ matrix.board }}-zmk-uf2"
+ name: "${{ matrix.board }}-${{ matrix.shield }}-zmk-uf2"
path: build/zephyr/zmk.uf2
|
Improve compilation on Windows. | @@ -116,7 +116,11 @@ handle_events(int sock, struct socket* s, void* sconn_addr)
FD_ZERO(&rfds);
FD_SET(sock, &rfds);
+#ifdef _WIN32
+ select(0 /* ignored */, &rfds, NULL, NULL, &tv);
+#else
select(sock + 1, &rfds, NULL, NULL, &tv);
+#endif
if (FD_ISSET(sock, &rfds)) {
length = recv(sock, buf, MAX_PACKET_SIZE, 0);
|
pkcs12 kdf: implement ctx dup operation | #include "prov/provider_util.h"
static OSSL_FUNC_kdf_newctx_fn kdf_pkcs12_new;
+static OSSL_FUNC_kdf_dupctx_fn kdf_pkcs12_dup;
static OSSL_FUNC_kdf_freectx_fn kdf_pkcs12_free;
static OSSL_FUNC_kdf_reset_fn kdf_pkcs12_reset;
static OSSL_FUNC_kdf_derive_fn kdf_pkcs12_derive;
@@ -178,6 +179,29 @@ static void kdf_pkcs12_re... |
add note to ksCut that it only works by accident | @@ -1590,6 +1590,8 @@ KeySet * ksCut (KeySet * ks, const Key * cutpoint)
elektraOpmphmInvalidate (ks->data);
+ // NOTE: Works only because KEY_NS_CASCADING is the first namespace
+ // TODO: Should use ksFindHierarchy like ksBelow
if (cutpoint->keyName->ukey[0] == KEY_NS_CASCADING)
{
ret = ksNew (0, KS_END);
|
amdgpu: change cpu/gpu temps from max to avg | @@ -178,9 +178,10 @@ void amdgpu_metrics_polling_thread() {
UPDATE_METRIC_AVERAGE(current_gfxclk_mhz);
UPDATE_METRIC_AVERAGE(current_uclk_mhz);
- UPDATE_METRIC_MAX(soc_temp_c);
- UPDATE_METRIC_MAX(gpu_temp_c);
- UPDATE_METRIC_MAX(apu_cpu_temp_c);
+ UPDATE_METRIC_AVERAGE(soc_temp_c);
+ UPDATE_METRIC_AVERAGE(gpu_temp_c);... |
print error message on unsupported dum file formats | @@ -5096,7 +5096,6 @@ if(fd_pcap == -1)
return false;
}
magicnumber = getmagicnumber(fd_pcap);
-
resseek = lseek(fd_pcap, 0L, SEEK_SET);
if(resseek < 0)
{
@@ -5105,7 +5104,6 @@ if(resseek < 0)
if(fh_log != NULL) fprintf(fh_log, "failed to set file pointer: %s\n", pcapinname);
return false;
}
-
if(magicnumber == PCAPNGB... |
Fix URL loader example to use os/spawn | -# An example of using Janet's extensible module system
-# to import files from URL. To try this, run `janet -l examples/urlloader.janet`
-# from the repl, and then:
+# An example of using Janet's extensible module system to import files from
+# URL. To try this, run `janet -l ./examples/urlloader.janet` from the comma... |
py/obj.h: Fix broken build for object repr C when float disabled.
Fixes issue | @@ -138,6 +138,7 @@ static inline bool MP_OBJ_IS_SMALL_INT(mp_const_obj_t o)
#define MP_OBJ_SMALL_INT_VALUE(o) (((mp_int_t)(o)) >> 1)
#define MP_OBJ_NEW_SMALL_INT(small_int) ((mp_obj_t)((((mp_uint_t)(small_int)) << 1) | 1))
+#if MICROPY_PY_BUILTINS_FLOAT
#define mp_const_float_e MP_ROM_PTR((mp_obj_t)(((0x402df854 & ~3)... |
Fixes the rpath setting to have the correct variable name | @@ -91,8 +91,8 @@ if(OPENEXR_NAMESPACE_VERSIONING)
endif()
# MacOs/linux rpathing
-set(CMAKE_MACOSX_RPATH 1)
-set(BUILD_WITH_INSTALL_RPATH 1)
+set(CMAKE_MACOSX_RPATH ON)
+set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
# Set position independent code (mostly for static builds, but not a bad idea regardless)
set(CMAKE_POSITION_I... |
Support for ipv6 hostnames
For cases when connection endpoint specified as hostname with ipv6
address only. | @@ -104,7 +104,7 @@ mongoc_uri_append_host (mongoc_uri_t *uri, const char *host, uint16_t port)
"%s:%hu",
host,
port);
- link_->family = strstr (host, ".sock") ? AF_UNIX : AF_INET;
+ link_->family = strstr (host, ".sock") ? AF_UNIX : AF_UNSPEC;
}
link_->host_and_port[sizeof link_->host_and_port - 1] = '\0';
link_->port... |
[Rust] Add utility methods to base graphics types | #![feature(format_args_nl)]
extern crate alloc;
+extern crate core;
#[cfg(target_os = "axle")]
extern crate libc;
@@ -14,6 +15,7 @@ use alloc::{format, rc::Rc, string::String, vec::Vec};
use alloc::boxed::Box;
use alloc::rc::Weak;
+use core::fmt::Formatter;
use core::{
cmp::{max, min},
fmt::Display,
@@ -123,6 +125,12 @... |
hw/occ-sensor: fix 'sensor' may be used uninitialized warning on some GCC
On some GCC versions we could get an (arguably incorrect) compiler warning
saying we may use the value of sensor uninitialised.
Fixes: | @@ -322,7 +322,7 @@ int occ_sensor_read(u32 handle, u32 *data)
struct occ_sensor_data_header *hb;
struct occ_sensor_name *md;
struct occ_sensor_record *sping, *spong;
- struct occ_sensor_record *sensor;
+ struct occ_sensor_record *sensor = NULL;
u8 *ping, *pong;
u16 id = sensor_get_rid(handle);
u8 occ_num = sensor_get_... |
transport_ssl: reset state on connection closure
For url redirection cases (HTTP status 301/302), internal
transport ssl connection state must be reinitialized for
successful (new) connection on updated url.
Closes | @@ -171,6 +171,7 @@ static int ssl_close(esp_transport_handle_t t)
transport_ssl_t *ssl = esp_transport_get_context_data(t);
if (ssl->ssl_initialized) {
esp_tls_conn_delete(ssl->tls);
+ ssl->conn_state = TRANS_SSL_INIT;
ssl->ssl_initialized = false;
}
return ret;
|
CMakeLists,emscripten: use EXPORTED_RUNTIME_METHODS
rather than EXTRA_EXPORTED_RUNTIME_METHODS. this was deprecated in
2.0.18.
quiets a warning:
emcc: warning: EXTRA_EXPORTED_RUNTIME_METHODS is deprecated, please use
EXPORTED_RUNTIME_METHODS instead [-Wdeprecated] | @@ -605,7 +605,7 @@ if(WEBP_BUILD_WEBP_JS)
webp_js
PROPERTIES LINK_FLAGS "-s WASM=0 \
-s EXPORTED_FUNCTIONS='[\"_WebpToSDL\"]' -s INVOKE_RUN=0 \
- -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'")
+ -s EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'")
set_target_properties(webp_js PROPERTIES OUTPUT_NAME webp)
target_compile_def... |
allow to explicitly set cache path | @@ -63,8 +63,20 @@ def _cached_download(url, md5, dst):
url=u, expected=md5, got=dst_md5))
+_cache_path = None
+
+
def _get_cache_path():
- return os.path.join(os.getcwd(), 'catboost_cached_datasets')
+ global _cache_path
+ if _cache_path is None:
+ _cache_path = os.path.join(os.getcwd(), 'catboost_cached_datasets')
+ ... |
typo in command for ignoring qemu submodule | @@ -30,7 +30,7 @@ cd "$RDIR"
for name in toolchains/*/*/ ; do
git config submodule."${name%/}".update none
done
-git config submodule.toolchains.qemu.update none
+git config submodule.toolchains/qemu.update none
# Disable updates to the FireSim submodule until explicitly requested
git config submodule.sims/firesim.upda... |
c++ SOVERSION bump to version 2.2.1 | @@ -9,7 +9,7 @@ project(Sysrepo-cpp)
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_CPP_MAJOR_SOVERSION 2)
set(SYSREPO_CPP_MINOR_SOVERSION 2)
-set(SYSREPO_CPP_MICRO_SOVERSION 0)
+set(SYSREPO_CPP_MICRO_SOVERSION 1)
set(SYSREPO_CPP_SOVERSION_FULL ${SY... |
main: load_our_module maybe failure but can't sensed | */
#define _GNU_SOURCE
+#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
@@ -544,14 +545,23 @@ static int load_our_module(void)
if (err == 0) {
tcmu_info("Inserted module '%s'\n",
kmod_module_get_name(mod));
- } else if (err == KMOD_PROBE_APPLY_BLACKLIST) {
- tcmu_err("Module '%s' is black... |
fix: add missing #endif in platform.h of mbedtls | @@ -164,6 +164,7 @@ int mbedtls_platform_set_calloc_free( void * (*calloc_func)( size_t, size_t ),
#else
#define mbedtls_free free
#define mbedtls_calloc calloc
+ #endif
#endif /* MBEDTLS_PLATFORM_MEMORY && !MBEDTLS_PLATFORM_{FREE,CALLOC}_MACRO */
/*
|
Fixed autoconf CFLAGS to select an empty default instead. | @@ -7,17 +7,19 @@ AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/goaccess.c])
AC_CONFIG_HEADERS([src/config.h])
-AM_GNU_GETTEXT([external])
-AM_GNU_GETTEXT_VERSION([0.18])
-
# Use empty CFLAGS by default so autoconf does not add
# CFLAGS="-O2 -g"
+# NOTE: Needs to go after AC_INIT and before AC_PROG_CC to select an
+# empty de... |
Restore RISCV entries accidentally trashed by my PR 3005 | @@ -983,6 +983,20 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else
#endif
+#ifdef FORCE_RISCV64_GENERIC
+#define FORCE
+#define ARCHITECTURE "RISCV64"
+#define SUBARCHITECTURE "RISCV64_GENERIC"
+#define SUBDIRNAME "riscv64"
+#define ARCHCONFIG "-DRISCV64_GENERIC " \
+ "-DL1_DATA_SIZE=32... |
api: add missing format_vl_api_ip[46]_address_with_prefix_t
Type: fix | @@ -89,4 +89,16 @@ format_vl_api_address_with_prefix_t (u8 * s, va_list * args)
return format_vl_api_prefix_t (s, args);
}
+static inline u8 *
+format_vl_api_ip4_address_with_prefix_t (u8 * s, va_list * args)
+{
+ return format_vl_api_ip4_prefix_t (s, args);
+}
+
+static inline u8 *
+format_vl_api_ip6_address_with_pref... |
refrain from asserting when callback is invoked with null sock or sock->ssl. Also adjust style. | @@ -965,7 +965,8 @@ static SSL_SESSION *on_async_resumption_get(SSL *ssl,
int h2o_socket_ssl_new_session_cb(SSL *s, SSL_SESSION *sess)
{
h2o_socket_t *sock = (h2o_socket_t *)SSL_get_app_data(s);
- assert(sock && sock->ssl);
+ if (sock == NULL || sock->ssl == NULL)
+ return 0;
SSL_SESSION *session = NULL;
if (!SSL_is_se... |
fixed wrong register assignment | @@ -369,10 +369,11 @@ begin
slv_reg12 <= slv_reg12;
slv_reg13 <= slv_reg13;
slv_reg14 <= slv_reg14;
- slv_reg15 <= slv_reg16;
- slv_reg15 <= slv_reg17;
- slv_reg15 <= slv_reg18;
- slv_reg15 <= slv_reg19;
+ slv_reg15 <= slv_reg15;
+ slv_reg16 <= slv_reg16;
+ slv_reg17 <= slv_reg17;
+ slv_reg18 <= slv_reg18;
+ slv_reg19 ... |
android: setting stable build tools 22.0.1 | @@ -61,7 +61,7 @@ android:
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- - build-tools-26.0.2
+ - build-tools-22.0.1
- android-${RHO_ANDROID_LEVEL:-19}
- addon-google_apis-google-${RHO_ANDROID_LEVEL:-19}
|
Update expected output for dummy_index_am
Forgot to add the file in the previous commit. | @@ -42,6 +42,10 @@ ALTER INDEX dummy_test_idx SET (option_bool = true);
ALTER INDEX dummy_test_idx SET (option_real = 3.2);
ALTER INDEX dummy_test_idx SET (option_string_val = 'val2');
ALTER INDEX dummy_test_idx SET (option_string_null = NULL);
+ALTER INDEX dummy_test_idx SET (option_enum = 'one');
+ALTER INDEX dummy_t... |
base64: style fixes | @@ -131,19 +131,26 @@ token_decode(const char *token, int len)
int i;
unsigned int val = 0;
int marker = 0;
- if (len < 4)
+
+ if (len < 4) {
return DECODE_ERROR;
+ }
+
for (i = 0; i < 4; i++) {
val *= 64;
- if (token[i] == '=')
+ if (token[i] == '=') {
marker++;
- else if (marker > 0)
+ } else if (marker > 0) {
return... |
RemoteContent: flex truncate links | import React, { Component, Fragment } from 'react';
import { BaseAnchor, BaseImage, Box, Button, Text, Row, Icon } from '@tlon/indigo-react';
+import styled from 'styled-components';
import { hasProvider } from 'oembed-parser';
import EmbedContainer from 'react-oembed-container';
import useSettingsState from '~/logic/s... |
print facil.io version and engine | @@ -168,11 +168,11 @@ static void iodine_print_startup_message(iodine_start_params_s params) {
fio_expected_concurrency(¶ms.threads, ¶ms.workers);
fprintf(stderr,
"\nStarting up Iodine:\n"
- " * Ruby v.%s\n * Iodine v.%s\n"
+ " * Iodine %s\n * Ruby %s\n * facil.io " FIO_VERSION_STRING " (%s)\n"
" * %d Workers X... |
cups-browsed.c: uuid was used after its pointer was freed by ippDelete() | @@ -3614,7 +3614,7 @@ new_local_printer (const char *device_uri,
{
local_printer_t *printer = g_malloc (sizeof (local_printer_t));
printer->device_uri = strdup (device_uri);
- printer->uuid = (uuid ? strdup (uuid) : NULL);
+ printer->uuid = uuid;
printer->cups_browsed_controlled = cups_browsed_controlled;
return printe... |
net: annotate deliberate case fallthrough | @@ -110,6 +110,7 @@ lnet_userdata *net_create( lua_State *L, enum net_type type ) {
ud->client.cb_reconnect_ref = LUA_NOREF;
ud->client.cb_disconnect_ref = LUA_NOREF;
ud->client.hold = 0;
+ /* FALLTHROUGH */
case TYPE_UDP_SOCKET:
ud->client.wait_dns = 0;
ud->client.cb_dns_ref = LUA_NOREF;
|
libcupsfilters: Added documentation for parameters of pdftopdf() in filter.h | @@ -176,6 +176,11 @@ extern int pdftopdf(int inputfd,
filter_data_t *data,
void *parameters);
+/* Parameters: const char*
+ For CUPS value of FINAL_CONTENT_TYPE environment variable, generally
+ MIME type of the final output format of the filter chain for this job
+ (not the output of the pdftopdf() filter function) */... |
add backtrace to exception | #pragma once
-#include <util/generic/yexception.h>
+#include <util/generic/bt_exception.h>
-class TCatboostException : public yexception {
+class TCatboostException : public TWithBackTrace<yexception> {
};
#define CB_ENSURE_IMPL_1(CONDITION) Y_ENSURE_EX(CONDITION, TCatboostException() << AsStringBuf("Condition violated... |
fix ios build with system stl | @@ -19,8 +19,8 @@ IF (USE_STL_SYSTEM)
DECLARE_EXTERNAL_RESOURCE(XCODE_TOOLCHAIN_ROOT sbr:498971125)
IF (OS_IOS)
CFLAGS(
- GLOBAL -isystem GLOBAL $XCODE_TOOLCHAIN_ROOT_RESOURCE_GLOBAL/usr/include/c++/v1
- GLOBAL -isystem GLOBAL $XCODE_TOOLCHAIN_ROOT_RESOURCE_GLOBAL/usr/include
+ GLOBAL -cxx-isystem GLOBAL $XCODE_TOOLCHA... |
build: luajit: Use `BUILDMODE` variable instead of `BUILD_MODE`
Current LuaJIT should use `BUILDMODE` variable instead of `BUILD_MODE`. | @@ -30,7 +30,7 @@ ExternalProject_Add(luajit
EXCLUDE_FROM_ALL TRUE
SOURCE_DIR ${LUAJIT_SRC}
CONFIGURE_COMMAND ./configure
- BUILD_COMMAND $(MAKE) CC=${CMAKE_C_COMPILER} ${DEPLOYMENT_TARGET} CFLAGS=${CFLAGS} BUILD_MODE=static "XCFLAGS=-fPIC"
+ BUILD_COMMAND $(MAKE) CC=${CMAKE_C_COMPILER} ${DEPLOYMENT_TARGET} CFLAGS=${CF... |
Documentation: Add link to `kdb` directory | @@ -6,7 +6,7 @@ There should be no scripts top-level but only in sub directories.
These files are installed on the target system.
-- kdb: for scripts to be used with `kdb <script>`.
+- [kdb](kdb): for scripts to be used with `kdb <script>`.
- [ffconfig](ffconfig): to configure firefox.
- [completion](completion): for s... |
tree data BUGFIX too small buffer | @@ -784,7 +784,7 @@ API LY_ERR
ly_time_time2str(time_t time, const char *fractions_s, char **str)
{
struct tm tm;
- char zoneshift[7];
+ char zoneshift[8];
int32_t zonediff_h, zonediff_m;
LY_CHECK_ARG_RET(NULL, str, LY_EINVAL);
|
options/rtdl: Don't panic if we can't find the symbol in __dlapi_reverse() | @@ -422,7 +422,7 @@ int __dlapi_reverse(const void *ptr, __dlapi_symbol *info) {
}
}
- mlibc::panicLogger() << "rtdl: Could not find symbol in __dlapi_reverse()" << frg::endlog;
+ mlibc::infoLogger() << "rtdl: Could not find symbol in __dlapi_reverse()" << frg::endlog;
return -1;
}
|
Update tcpserver.c
This is 'tcp server', not is 'tcp client'
tcpclient -> tcpserver | @@ -229,8 +229,8 @@ static void tcpserver_test(int argc, char** argv)
{
if (started)
{
- LOG_I("The tcpclient has started!");
- LOG_I("Please stop tcpclient firstly, by: tcpclient --stop");
+ LOG_I("The tcpserver has started!");
+ LOG_I("Please stop tcpserver firstly, by: tcpserver --stop");
return;
}
|
Add search on PATH for async execute example | (defn dowork [name n]
(print name " starting work...")
- (os/execute [(dyn :executable) "-e" (string "(os/sleep " n ")")])
+ (os/execute [(dyn :executable) "-e" (string "(os/sleep " n ")")] :p)
(print name " finished work!"))
# Will be done in parallel
|
only update runloop timer if root of heap changed | @@ -30,6 +30,7 @@ queue bhqueue; /* kernel from interrupt */
queue thread_queue; /* kernel to user */
timerheap runloop_timers;
u64 idle_cpu_mask; /* xxx - limited to 64 aps. consider merging with bitmask */
+timestamp last_timer_update;
static timestamp runloop_timer_min;
static timestamp runloop_timer_max;
@@ -91,9 +... |
chip/stm32/debug_printf.h: Format with clang-format
BRANCH=none
TEST=none | #define __CROS_EC_DEBUG_H
#ifdef CONFIG_DEBUG_PRINTF
-__attribute__((__format__(__printf__, 1, 2)))
-void debug_printf(const char *format, ...);
+__attribute__((__format__(__printf__, 1, 2))) void
+debug_printf(const char *format, ...);
#else
#define debug_printf(...)
#endif
|
Split long string in test_nsalloc_realloc_long_context_in_dtd()
C99 only requires compilers to handle string literals up to 4095
characters long. Split the parse string so that it is below this
limit. | @@ -11661,7 +11661,7 @@ END_TEST
*/
START_TEST(test_nsalloc_realloc_long_context_in_dtd)
{
- const char *text =
+ const char *text1 =
"<!DOCTYPE "
/* 64 characters per line */
"ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP"
@@ -11717,7 +11717,8 @@ START_TEST(test_nsalloc_realloc_long_context_in_dtd)
... |
The kqueue EOF flag might be ignored on some conditions.
If kqueue reported both the EVFILT_READ and the EVFILT_WRITE events
for the socket but only the former had the EV_EOF flag set, the flag
was silently ignored. | @@ -747,7 +747,7 @@ nxt_kqueue_poll(nxt_event_engine_t *engine, nxt_msec_t timeout)
err = kev->fflags;
eof = (kev->flags & EV_EOF) != 0;
ev->kq_errno = err;
- ev->kq_eof = eof;
+ ev->kq_eof |= eof;
if (ev->read <= NXT_EVENT_BLOCKED) {
nxt_debug(ev->task, "blocked read event fd:%d", ev->fd);
@@ -778,7 +778,7 @@ nxt_kque... |
Additional tesselation tweaks | @@ -46,6 +46,7 @@ namespace carto {
}
void SphericalProjectionSurface::tesselateSegment(const MapPos& mapPos0, const MapPos& mapPos1, std::vector<MapPos>& mapPoses) const {
+ // TODO: make it faster, non-recursive
MapPos mapPosM;
if (SplitSegment(mapPos0, mapPos1, mapPosM)) {
tesselateSegment(mapPos0, mapPosM, mapPoses... |
Feat:Add the log function path in external.env | @@ -12,6 +12,7 @@ BOAT_FIND := find
# External include path and libraries
EXTERNAL_INC := -I$(BOAT_BASE_DIR)/../../../common/include/qapi \
+ -I$(BOAT_BASE_DIR)/../../../common/include/log/inc \
-I$(BOAT_BASE_DIR)/../../../common/include/threadx_api \
-I$(BOAT_BASE_DIR)/../../../llvmtools/4.0.3/armv7m-none-eabi/libc \
... |
perf(hebcs):
Incorrect comments | * limitations under the License.
*****************************************************************************/
-/*!@brief Ethereum wallet API for BoAT IoT SDK
+/*!@brief hwbcs wallet API for BoAT IoT SDK
@file
-api_hw_bcs.c defines the Ethereum wallet API for BoAT IoT SDK.
+api_hw_bcs.c defines the hwbcs wallet API fo... |
Enchance documentation of OIDCRequestObject configuration option. | # (Optional)
# Request Object/URI settings. For example:
-# "{ \"copy_from_request\": [ \"claims\", \"response_type\", \"response_mode\", \"login_hint\", \"id_token_hint\", \"nonce\", \"state\", \"redirect_uri\", \"scope\", \"client_id\" ], \"static\": { \"some\": \"value\", \"some_nested\": { \"some_array\": [ 1,2,3] ... |
Add test for isa trait in metadirective clause
Features recognized by an ISA backend can be specified like
`device = {isa("some-supported-feature")}` in when clause of
metadirective clause. | @@ -79,6 +79,25 @@ int check_device_arch_x86_64_selector() {
return 1;
}
+int check_device_isa_feature_selector() {
+ int threadCount = 0;
+
+ #pragma omp target map(tofrom: threadCount)
+ {
+ #pragma omp metadirective \
+ when(device = {isa("flat-address-space")}: parallel) \
+ default(single)
+
+ threadCount = omp_ge... |
Fix typo in comment in ImfChromaticities.h | @@ -80,14 +80,14 @@ struct IMF_EXPORT_TYPE Chromaticities
// Xr / (Xr + Yr + Zr) == c.red.x
// Yr / (Xr + Yr + Zr) == c.red.y
//
-// Xg / (Xg + Yg + Zg) == c.red.x
-// Yg / (Xg + Yg + Zg) == c.red.y
+// Xg / (Xg + Yg + Zg) == c.green.x
+// Yg / (Xg + Yg + Zg) == c.green.y
//
-// Xb / (Xb + Yb + Zb) == c.red.x
-// Yb / ... |
BugID:17712290: component modification
modified: aos_target_config.mk | @@ -335,12 +335,12 @@ endif
ifeq ($(MBINS),app)
COMPONENTS += mbins.umbins
COMPONENTS += rhino.mm
-COMPONENTS += rhino.uspace
+COMPONENTS += uspace
AOS_SDK_DEFINES += BUILD_APP
AOS_SDK_LDFLAGS += -Wl,-wrap,vprintf -Wl,-wrap,fflush -nostartfiles
else ifeq ($(MBINS),kernel)
COMPONENTS += mbins.kmbins
-COMPONENTS += rhino... |
improve signal propagation in Rubyland | @@ -130,6 +130,23 @@ module Iodine
end
end
+ ### trap some signals to avoid exception reports
+ begin
+ old_sigint = Signal.trap("SIGINT") { old_sigint.call if old_sigint.respond_to?(:call) }
+ rescue Exception
+ end
+ begin
+ old_sigterm = Signal.trap("SIGTERM") { old_sigterm.call if old_sigterm.respond_to?(:call) }
+... |
BugID:17115493:add README file and makefile summary | @@ -2,7 +2,7 @@ NAME := sensor
$(NAME)_MBINS_TYPE := kernel
$(NAME)_VERSION := 0.0.1
-$(NAME)_SUMMARY :=
+$(NAME)_SUMMARY := Hardware abstract layer for sensors
$(NAME)_SOURCES += \
hal/sensor_hal.c \
|
Update to indicate FIS 2.2 support. | #define ERROR_INJ_TYPE_INVALID 0x08
#define MAX_FIS_SUPPORTED_BY_THIS_SW_MAJOR 2
-#define MAX_FIS_SUPPORTED_BY_THIS_SW_MINOR 0
+#define MAX_FIS_SUPPORTED_BY_THIS_SW_MINOR 1
/**
The device path type for our driver and HII driver.
|
bugfix in ossl_cmp_msg_protect(): set senderKID and extend extraCerts also for unprotected CMP requests | @@ -179,7 +179,7 @@ int ossl_cmp_msg_add_extraCerts(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg)
X509_ADD_FLAG_UP_REF | X509_ADD_FLAG_NO_DUP))
return 0;
- /* if none was found avoid empty ASN.1 sequence */
+ /* in case extraCerts are empty list avoid empty ASN.1 sequence */
if (sk_X509_num(msg->extraCerts) == 0) {
sk_X509_fre... |
output: include http debug calls if they are enabled | @@ -470,6 +470,7 @@ int flb_output_set_property(struct flb_output_instance *ins,
ins->retry_limit = 0;
}
}
+#ifdef FLB_HAVE_HTTP_CLIENT_DEBUG
else if (strncasecmp("_debug.http.", k, 12) == 0 && tmp) {
ret = flb_http_client_debug_property_is_valid((char *) k, tmp);
if (ret == FLB_TRUE) {
@@ -488,6 +489,7 @@ int flb_outp... |
OSX: install r via brew. | @@ -30,7 +30,8 @@ pushd "$DEPS_DIR"
brew upgrade \
python
brew install \
- lua
+ lua \
+ r
fi
if [ "$CIRCLECI" == "true" ]; then
sudo apt-get -qq update
|
Fix crash from partially discovered SNMP printer (Issue | @@ -21,6 +21,7 @@ Changes in v1.0.1
callback after loading the printer's attributes (Issue #107)
- Added additional error handling for memory allocations throughout the library
(Issue #113)
+- Partially-discovered SNMP printers would cause a crash (Issue #121)
- The "copies-supported" attribute was not report correctly... |
Fix ifdef for glTexStorage;
It's always present on GLES. | @@ -1480,7 +1480,7 @@ void lovrTextureAllocate(Texture* texture, uint32_t width, uint32_t height, uint
GLenum glFormat = convertTextureFormat(format);
GLenum internalFormat = convertTextureFormatInternal(format, texture->srgb);
-#ifndef LOVR_WEBGL
+#ifdef LOVR_GL
if (GLAD_GL_ARB_texture_storage) {
#endif
if (texture->t... |
admin/meta-packages: enable dimemas for Leap now that builds are available | @@ -255,10 +255,8 @@ Collection of parallel library builds for use with GNU compiler toolchain and th
%package -n %{PROJ_NAME}-%{compiler_family}-perf-tools
Summary: OpenHPC performance tools for GNU
-%if 0%{?rhel}
Requires: dimemas-%{compiler_family}-mpich%{PROJ_DELIM}
Requires: dimemas-%{compiler_family}-%{mpi_family... |
Set missing company identifier in ble adv data for Nordic | #include "iot_logging_setup.h"
#define iot_ble_hal_gapADVERTISING_BUFFER_SIZE 31
+#define iot_ble_hal_gapADVERTISING_COMPANY_ID_SIZE 2
BTBleAdapterCallbacks_t xBTBleAdapterCallbacks;
uint16_t usConnHandle = BLE_CONN_HANDLE_INVALID; /**< Handle of the current connection. */
@@ -736,6 +737,8 @@ ret_code_t prvBTAdvDataCon... |
tools/dual-boot: remove extra info
We are no longer using this | @@ -20,9 +20,6 @@ FLASH_SIZE = 1024 * 1024 # 1MiB
BIN1_BASE_OFFSET = 0x8000
BIN2_BASE_OFFSET = 0xC0000
-# Size of data inserted into empty space just before second binary.
-EXTRA_SIZE = 4
-
def build_blob(bin1: FileIO, bin2: FileIO, out: FileIO) -> None:
"""Combines two firmware binary blobs ``bin1`` and ``bin2`` into ... |
Cache process main window handle | * process tree list
*
* Copyright (C) 2010-2016 wj32
- * Copyright (C) 2016-2021 dmex
+ * Copyright (C) 2016-2022 dmex
* Copyright (C) 2021 jxy-s
*
* This file is part of Process Hacker.
@@ -912,11 +912,14 @@ static VOID PhpUpdateProcessNodeWindow(
PhClearReference(&ProcessNode->WindowText);
if (ProcessNode->ProcessIte... |
in_syslog: fix log format specifier (CID 304440) | @@ -46,7 +46,7 @@ int syslog_conn_event(void *data)
if (available < 1) {
if (conn->buf_size + ctx->buffer_chunk_size > ctx->buffer_max_size) {
flb_plg_debug(ctx->ins,
- "fd=%i incoming data exceed limit (%i bytes)",
+ "fd=%i incoming data exceed limit (%zd bytes)",
event->fd, (ctx->buffer_max_size));
syslog_conn_del(co... |
Update PKGBUILD-pandora | -# Maintainer: Jai-JAP <parjailu@gmail.com>, SpacingBat3 <git@spacingbat3.anonaddy.com>
+# Maintainer: Jai-JAP <jai.jap.318@gmail.com>, SpacingBat3 <git@spacingbat3.anonaddy.com>
# Author: Sebastien Chevalier <ptitseb@box86.org>
pkgname=box86-pandora-git
-pkgver=3494.bedacef
+pkgver=3858.5368285
pkgrel=1
pkgdesc="Linux... |
Update HierarchicalMulticlockBusTopologyParams to use cross{In, Out} | @@ -54,9 +54,9 @@ case class HierarchicalMulticlockBusTopologyParams(
(FBUS, fbus),
(CBUS, cbus)),
connections = List(
- (SBUS, CBUS, TLBusWrapperConnection(xType = xTypes.sbusToCbusXType, nodeBinding = BIND_STAR)()),
- (CBUS, PBUS, TLBusWrapperConnection(xType = xTypes.cbusToPbusXType, nodeBinding = BIND_STAR)()),
- (... |
SOVERSION bump to version 2.20.5 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 20)
-set(LIBYANG_MICRO_SOVERSION 4)
+set(LIBYANG_MICRO_SOVERSION 5)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
bench: fix the compilation error. | @@ -98,7 +98,7 @@ void OnetoOneHandler(std::unique_ptr<rt::TcpConn> conn) {
for (auto &addr : memcached_addrs) {
rt::TcpConn *c;
if (use_affinity_dial) {
- c = conn->DialAffinity(addr);
+ c = rt::TcpConn::DialAffinity(conn.get(), addr);
} else {
c = rt::TcpConn::Dial({0, 0}, addr);
}
|
server messages CHANGE libyang error removed
Fixes | @@ -468,7 +468,6 @@ nc_err_libyang(void)
break;
case LYVE_INATTR:
case LYVE_MISSATTR:
- case LYVE_INVALATTR:
str = ly_errmsg();
stri = strchr(str, '"');
stri++;
@@ -477,10 +476,8 @@ nc_err_libyang(void)
attr = strndup(stri, strj - stri);
if (ly_vecode == LYVE_INATTR) {
e = nc_err(NC_ERR_UNKNOWN_ATTR, NC_ERR_TYPE_PROT, ... |
BUFR Performance: remove function call overhead and simplify | @@ -2139,14 +2139,7 @@ static grib_accessor* create_accessor_from_descriptor(const grib_accessor* a, gr
#define MAX_NUMBER_OF_BITMAPS 5
static const int number_of_qualifiers = NUMBER_OF_QUALIFIERS_PER_CATEGORY * NUMBER_OF_QUALIFIERS_CATEGORIES;
-
-static GRIB_INLINE int significanceQualifierIndex(int X, int Y)
-{
- sta... |
Fix TCOD_tileset_load_truetype_ function.
This function was incomplete. | @@ -214,5 +214,7 @@ int TCOD_tileset_load_truetype_(const char* path, int tile_width, int tile_heigh
if (!tileset) {
return TCOD_E_ERROR;
}
+ TCOD_set_default_tileset(tileset);
+ TCOD_tileset_delete(tileset);
return TCOD_E_OK;
}
|
Fix viz linking errors take 2
closes | # permissions and limitations under the License.
#
-
.PHONY : all
all: build_viz
@@ -21,12 +20,17 @@ include ../../s2n.mk
LDFLAGS += -L../../lib ${LIBS} -ls2n -L$(LIBCRYPTO_ROOT)/lib ${CRYPTO_LIBS}
+UNAME_S := $(shell uname -s)
+ifeq ($(UNAME_S),Linux)
+ CFLAGS := -Wl,--no-as-needed $(CFLAGS)
+endif
+
# Run state machi... |
[org] document testing examples | @@ -37,3 +37,13 @@ to re-generate it. It will call a script in io/src/tools called build_from_doxy
Information on how to manage and update the Debian package can be
found in Build/debian/README-debian-packaging.org.
+* Testing
+
+You can test all examples by running cmake in the examples directory:
+
+#+BEGIN_SRC shell... |
Mark devices as not reachable after repeated APS confirm errors
The error counter is `16` to not jummp too conclusions too quickly.
Prior to this PR DDF based devices could be stuck in the reachable: true state for a long time
and needless APS requests where made. | @@ -69,6 +69,7 @@ constexpr int RxOffWhenIdleResponseTime = 8000; // 7680 ms + some space for time
constexpr int MaxConfirmTimeout = 20000; // If for some reason no APS-DATA.confirm is received (should almost
constexpr int BindingAutoCheckInterval = 1000 * 60 * 60;
constexpr int MaxPollItemRetries = 3;
+constexpr int M... |
Remove redundant defstat parser helper | @@ -75,11 +75,6 @@ function defs.ifstat(pos, exp, block, thens, elseopt)
return ast.Stat_If(pos, thens, elseopt)
end
-function defs.defstat(pos, decl, exp)
- local declstat = ast.Stat_Decl(pos, decl, exp)
- return declstat
-end
-
function defs.fold_binop_left(pos, matches)
local lhs = matches[1]
for i = 2, #matches, 2 ... |
Release notes for 3.0.268.1 | ### Supported Platforms
-- Windows Desktop for C/C++ (x86/x64)
-- Windows 10 Universal (x86/x64/ARM)
+- Windows Desktop for C/C++ (x86/x64/ARM64)
+- Windows 10 Universal (x86/x64/ARM/ARM64)
- Windows Desktop for .NET 4.x (x86/x64)
-- Linux x86/x64/ARM (gcc-5+)
+- Linux x86/x64/ARM/ARM64 (gcc-5+)
- Mac OS X (experimenta... |
[mod_webdav] preserve bytes_out when chunks merged | @@ -4231,8 +4231,12 @@ mod_webdav_write_single_file_chunk (request_st * const r, chunkqueue * const cq)
chunk * const c = cq->first;
cq->first = c->next;
const off_t len = chunkqueue_length(cq);
+ const off_t bytes_out = cq->bytes_out;
if (mod_webdav_write_cq(r, cq, c->file.fd)) {
/*assert(cq->first == NULL);*/
+ /* ch... |
SOVERSION bump to version 1.0.2 | @@ -46,7 +46,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 1)
set(LIBNETCONF2_MINOR_SOVERSION 0)
-set(LIBNETCONF2_MICRO_SOVERSION 1)
+set(LIBN... |
pyocf: add FLUSH flag
Flush I/O must be recognized by the bottom adapter by inspecting
adapter specific flags | @@ -22,6 +22,7 @@ from ctypes import (
)
from hashlib import md5
import weakref
+from enum import IntEnum
from .io import Io, IoOps, IoDir
from .queue import Queue
@@ -32,6 +33,10 @@ from .data import Data
from .queue import Queue
+class IoFlags(IntEnum):
+ FLUSH = 1
+
+
class VolumeCaps(Structure):
_fields_ = [("_atom... |
baseboard/kukui/battery_max17055.c: Format with clang-format
BRANCH=none
TEST=none | #define CPRINTS(format, args...) cprints(CC_CHARGER, format, ##args)
-enum battery_type {
- BATTERY_SIMPLO = 0,
- BATTERY_COUNT
-};
+enum battery_type { BATTERY_SIMPLO = 0, BATTERY_COUNT };
static const struct battery_info info[] = {
[BATTERY_SIMPLO] = {
|
build FEATURE use GNU99 standard
Also, support cmake pre 3.1. | @@ -31,9 +31,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
-set(CMAKE_C_STANDARD 11)
-set(CMAKE_CXX_EXTENSIONS ON)
-add_compile_options(-Wall -Wextra -fvisibility=hidden)
+add_compile_options(-Wall -Wextra -fvisibility=hidden -std=gnu99)
set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG")
# Version of the ... |
Fix text output for ASCII codes more then 127 | @@ -203,7 +203,7 @@ void VDP_drawTextBG(VDPPlan plan, const char *str, u16 x, u16 y)
{
u32 len;
u16 data[128];
- char *s;
+ const u8 *s;
u16 *d;
u16 i;
@@ -215,7 +215,7 @@ void VDP_drawTextBG(VDPPlan plan, const char *str, u16 x, u16 y)
if (len > (i - x))
len = i - x;
- s = (char*) str;
+ s = (const u8*) str;
d = data;... |
VERSION bump to version 1.3.21 | @@ -27,7 +27,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 3)
-set(SYSREPO_MICRO_VERSION 20)
+set(SYSREPO_MICRO_VERSION 21)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
Update README.md
Add the link for the Arduino Interface Library. | @@ -35,7 +35,7 @@ You can find examples that run on the OpenMV Cam under `File->Examples->Remote C
* [Generic Python Interface Library for USB and WiFi Comms](tools/rpc/README.md)
* Provides Python code for connecting your OpenMV Cam to a Windows, Mac, or Linux computer (or RaspberryPi/Beaglebone, etc.) with python pro... |
add wifi bt group to rom and pm components | /components/esp_local_ctrl/ @esp-idf-codeowners/app-utilities
/components/esp_netif/ @esp-idf-codeowners/network
/components/esp_phy/ @esp-idf-codeowners/bluetooth @esp-idf-codeowners/wifi @esp-idf-codeowners/ieee802154
-/components/esp_pm/ @esp-idf-codeowners/power-management
+/components/esp_pm/ @esp-idf-codeowners/p... |
Allow enabling task function wrappers in more cases | @@ -421,7 +421,7 @@ menu "FreeRTOS"
config FREERTOS_TASK_FUNCTION_WRAPPER
bool "Enclose all task functions in a wrapper function"
- depends on COMPILER_OPTIMIZATION_DEFAULT
+ depends on COMPILER_OPTIMIZATION_DEFAULT || ESP_COREDUMP_ENABLE || ESP_GDBSTUB_ENABLED
default y
help
If enabled, all FreeRTOS task functions wil... |
Add 2 little missing words. | @@ -14,7 +14,7 @@ The executable `scope` is provided with AppScope. The `scope` executable provide
# Requirements
-AppScope supports Linux distros `yum` or `apt-get` package managers, and supports any runtime environment supported by Linux.
+AppScope supports Linux distros that have `yum` or `apt-get` package managers,... |
os: create goal: don't allow create goal if namespaces present
Add IS and namespace initialization so that the check for namespaces
actually works in os. | @@ -5611,6 +5611,23 @@ CreateGoalConfig(
goto Finish;
}
+#ifdef OS_BUILD
+ if (!gNvmDimmData->PMEMDev.RegionsAndNsInitialized) {
+ ReturnCode = InitializeISs(gNvmDimmData->PMEMDev.pFitHead,
+ &gNvmDimmData->PMEMDev.Dimms, &gNvmDimmData->PMEMDev.ISs);
+ if (EFI_ERROR(ReturnCode)) {
+ NVDIMM_WARN("Failed to retrieve the ... |
resamp/example: cleaning up help file, general maintenance | void usage()
{
printf("Usage: %s [OPTION]\n", __FILE__);
- printf(" h : print help\n");
- printf(" r : resampling rate (output/input), default: 1.1\n");
- printf(" m : filter semi-length (delay), default: 13\n");
- printf(" b : filter bandwidth, 0 < b < 0.5, default: 0.4\n");
- printf(" s : filter stop-band attenuation... |
Fix `type` "Unknown" for `lights` resource for coordinator
* Update light_node.cpp
Don't restore the `type` value of a `lights` resource from the database, as it's already set when (re-) creating the resource on startup. See
* Update light_node.cpp
Check for `"Unknown"`. | @@ -736,6 +736,11 @@ void LightNode::jsonToResourceItems(const QString &json)
if (map.contains(QLatin1String(key)))
{
+ if (item->descriptor().suffix == RAttrType && map[key] == QLatin1String("Unknown"))
+ {
+ // type is set in setHaEndpoint()
+ continue;
+ }
item->setValue(map[key]);
item->setTimeStamps(dt);
}
|
arvo: update bootstrap/lifecycle formulas to be fully static | ?@ epic arvo
%= $
epic +.epic
- arvo .*(arvo [%9 2 %10 [6 %1 -.epic] %0 1])
+ arvo .*([arvo -.epic] [%9 2 %10 [6 %0 3] %0 2])
==
::
:: +boot: event 2: bootstrap a kernel from source
::
~> %slog.[0 leaf+"1-c (compiling compiler, wait a few minutes)"]
=/ compiler-tool
- .*(compiler-gate [%9 2 %10 [6 %1 noun/hoon.log] %0 ... |
netutils/dhcpc: Fix dhcpc lease bug | @@ -468,6 +468,7 @@ static void *dhcpc_run(void *args)
else
{
pdhcpc->callback(NULL);
+ memset(&result, 0, sizeof(result));
nerr("dhcpc_request error\n");
}
@@ -476,6 +477,7 @@ static void *dhcpc_run(void *args)
return NULL;
}
+ result.lease_time /= 2;
while (result.lease_time)
{
result.lease_time = sleep(result.lease_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.