message
stringlengths
6
474
diff
stringlengths
8
5.22k
disable state.bri for innr zigbee 3.0 devices
@@ -361,6 +361,7 @@ void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint) { if ((manufacturerCode() == VENDOR_IKEA && endpoint.deviceId() == DEV_ID_Z30_ONOFF_PLUGIN_UNIT) || // IKEA Tradfri control outlet (manufacturerCode() == VENDOR_INNR && endpoint.deviceId() == DEV_ID_ZLL_ONOFF_PLUGIN_UNIT) || // ...
enable ETH2 for nanos
@@ -46,11 +46,9 @@ DEFINES += CHAINID_UPCASE=\"ETHEREUM\" CHAINID_COINNAME=\"ETH\" CHAIN_KIND=CHAIN APP_LOAD_PARAMS += --path "2645'/579218131'" DEFINES += HAVE_STARKWARE DEFINES += STARK_BIP32_PATH_0=0x80000A55 STARK_BIP32_PATH_1=0xA2862AD3 -ifeq ($(TARGET_NAME), TARGET_NANOX) # Allow to derive ETH 2 public keys APP_L...
Add A64 profile
@@ -13,13 +13,14 @@ option(GAMESHELL "Set to ON if targeting a GameShell device" ${GAMESHELL}) option(ODROID "Set to ON if targeting an ODroid device" ${ODROID}) option(POWER9 "Set to ON if targeting a POWER9 processor" ${POWER9}) option(SD845 "Set to ON if targeting a Snapragon 845 based device" ${SD845}) +option(A64 ...
in_forward: fix callback prototype
* accept the connection and create a new FW instance which will wait for * MessagePack records. */ -static int in_fw_collect(struct flb_config *config, void *in_context) +static int in_fw_collect(struct flb_input_instance *i_ins, + struct flb_config *config, void *in_context) { int fd; struct flb_in_fw_config *ctx = in...
FEC: reduce overhead thanks to galois field
protoop_arg_t stream_bytes_max(picoquic_cnx_t* cnx) { size_t bytes_max = get_cnx(cnx, AK_CNX_INPUT, 0); // FIXME there is one more byte than needed (?) in the overhead, but without it, it doesn't work. Find out why - size_t overhead = 1 + (1 + sizeof(uint64_t)) + (DEFAULT_K/2 + sizeof(fec_frame_header_t)); +// size_t o...
Fix depthClamp;
@@ -1301,6 +1301,7 @@ bool gpu_pipeline_init_graphics(gpu_pipeline* pipeline, gpu_pipeline_info* info) VkPipelineRasterizationStateCreateInfo rasterization = { .sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO, + .depthClampEnable = info->rasterizer.depthClamp, .polygonMode = info->rasterizer.wirefram...
SOVERSION bump to version 4.3.8
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 3) -set(SYSREPO_MICRO_SOVERSION 7) +set(SYSREPO_MICRO_SO...
Fix parantheses compiler warning
@@ -1574,7 +1574,7 @@ bool DeRestPluginPrivate::sensorToMap(const Sensor *sensor, QVariantMap &map, bo { const char *key = item->descriptor().suffix + 6; - if (rid.suffix == RStateLastUpdated && !item->lastSet().isValid() || (item->lastSet().date().year() < 2000)) + if (rid.suffix == RStateLastUpdated && (!item->lastSe...
add multiple tempaltes support
@@ -54,11 +54,11 @@ def ongenerate_script(unit, *args): Feel free to remind """ flat, kv = common.sort_by_keywords( - {'OUT': 1, 'TEMPLATE': -1, 'CUSTOM_PROPERTY': -1}, + {'OUT': -1, 'TEMPLATE': -1, 'CUSTOM_PROPERTY': -1}, args ) - if len(kv.get('TEMPLATE', [])) > 1: - ymake.report_configure_error('To mane arguments fo...
Remove elektraClearError, implement elektraErrorDel
@@ -47,10 +47,19 @@ void elektraClose (Elektra * elektra) ksDel (elektra->config); keyDel (elektra->parentKey); - elektraClearError (elektra); elektraFree (elektra); } +void elektraErrorDel (ElektraError * error) +{ + if (error == NULL) + { + return; + } + + elektraFree(error); +} + kdb_boolean_t elektraHasError (const...
grid: PermalinkRoutes consumes pike
+import { Pikes } from '@urbit/api'; import React, { useEffect } from 'react'; import { Switch, Route, Redirect, RouteComponentProps } from 'react-router-dom'; import { Spinner } from '../components/Spinner'; import { useQuery } from '../logic/useQuery'; import { useCharge } from '../state/docket'; -import useKilnState...
When y is None X can be either string or Pool
@@ -1110,8 +1110,8 @@ class CatBoost(_CatBoostBase): if X is None: raise CatBoostError("X must not be None") - if y is None and not isinstance(X, Pool): - raise CatBoostError("y may be None only when X is an instance of catboost.Pool") + if y is None and not isinstance(X, STRING_TYPES + (Pool,)): + raise CatBoostError(...
Use constant time memcmp on 32 bit windows builds
@@ -42,6 +42,14 @@ extern "C" { #define PRIst "zu" #endif +#ifdef _WINDOWS +#ifndef _WINDOWS64 +#ifndef PICOQUIC_USE_CONSTANT_TIME_MEMCMP +#define PICOQUIC_USE_CONSTANT_TIME_MEMCMP +#endif +#endif +#endif + #ifdef __APPLE__ #ifndef PICOQUIC_USE_CONSTANT_TIME_MEMCMP #define PICOQUIC_USE_CONSTANT_TIME_MEMCMP
added another weak password combination
@@ -646,6 +646,15 @@ for(y = 1900; y <= thisyear; y++) return; } /*===========================================================================*/ +void keywritepreappend4(char *basestring) +{ +snprintf(pskstring, 64, "%s1234", basestring); +writepsk(pskstring); +snprintf(pskstring, 64, "1234%s", basestring); +writepsk(p...
Del repeated block
<shadow type="pins_builtinimg"></shadow> </value> </block> - <block type="image_shift"> - <value name="val"> - <shadow type="math_number"> - <field name="NUM">1</field> - </shadow> - </value> - <value name="img"> - <shadow type="pins_builtinimg"></shadow> - </value> - </block> <block type="display_get_pixel"> <value na...
docker/dbuild.sh: change docker options for sevral build env. '-it' option is only for 'menuconfig' in general, '-i' would be used.
@@ -287,9 +287,15 @@ function BUILD() mv build.log build.log.old fi + if [ "$1" == "menuconfig" ]; then + DOCKER_OPT="-it" + else + DOCKER_OPT="-i" + fi + docker rm -f tizenrt > /dev/null 2>&1 - docker run --rm -it -d -v ${TOPDIR}:/root/tizenrt --name tizenrt -w /root/tizenrt/os tizenrt/tizenrt /bin/bash - docker exec ...
Fix chip/imxrt_serial.c:1375:20: error: unused function 'imxrt_disableuartint' and chip/imxrt_serial.c:1400:20: error: unused function 'imxrt_restoreuartint'
@@ -530,10 +530,12 @@ static inline uint32_t imxrt_serialin(struct imxrt_uart_s *priv, uint32_t offset); static inline void imxrt_serialout(struct imxrt_uart_s *priv, uint32_t offset, uint32_t value); +#if defined(CONFIG_SERIAL_TERMIOS) || defined(CONSOLE_DEV) static inline void imxrt_disableuartint(struct imxrt_uart_s...
cmake: do not add_plugintest if plugin is not available
@@ -52,6 +52,9 @@ function (add_plugintest testname) "Trying to add plugintest ${testname} but no such plugin was added (try to use LINK_PLUGIN)" ) endif () + # plugin for test was not added in previous phase or removed + # because of missing deps, exit quietly + return () endif () set (PLUGIN_NAME elektra-${testname})...
Fixed nonlin_matter_power call in ccl_cls to be consistent with new ccl_power
@@ -693,7 +693,7 @@ static double cl_integrand(double lk,void *params) else { double t1,t2; double a=ccl_scale_factor_of_chi(p->cosmo,chi, p->status); //Limber - double pk=ccl_nonlin_matter_power(p->cosmo,a,k, p->status); + double pk=ccl_nonlin_matter_power(p->cosmo,k,a, p->status); t1=transfer_wrap(p->l,k,p->cosmo,p->...
correct the comment.
@@ -82,7 +82,7 @@ for my $i (1..50) { }); } -# if upstream connections are always closed, least-conn will always connect to the same upstream. +# if upstream connections are always closed, least-conn will always connect to the same upstream when no other leased connection exists. ok $access_count1 * $access_count2 == 0...
Update net_syscalls.h
extern "C" { #endif +typedef struct SceNetSyscallParameter SceNetSyscallParameter; // missing struct + +int sceNetSyscallAccept(int s, void *addr, void *addrlen); +int sceNetSyscallBind(int s, const void *addr, int addrlen); +int sceNetSyscallClose(int s); +int sceNetSyscallConnect(int s, const void *name, int namelen)...
filters_sse2,cosmetics: shorten some long lines
@@ -163,8 +163,8 @@ static void GradientPredictDirect_SSE2(const uint8_t* const row, _mm_storel_epi64((__m128i*)(out + i), H); } for (; i < length; ++i) { - out[i] = (uint8_t)(row[i] - - GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1])); + const int delta = GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1]); ...
rm oculus_didChange;
@@ -287,10 +287,6 @@ static bool oculus_isTouched(Device device, DeviceButton button, bool* touched) } } -static bool oculus_didChange(Device device, DeviceButton button, bool* changed) { - return false; // TODO -} - static bool oculus_getAxis(Device device, DeviceAxis axis, vec3 value) { if (device != DEVICE_HAND_LEFT...
Remove version comment left over from Perl.
@@ -21,7 +21,7 @@ repository will be invalid unless migration functions are written. #define REPOSITORY_FORMAT 5 /*********************************************************************************************************************************** -Software version. Currently this value is maintained in Version.pm and up...
[ULOG] fix raw size bug for backend which don't suport color
@@ -396,7 +396,7 @@ void ulog_output_to_all_backend(rt_uint32_t level, const char *tag, rt_bool_t is #if !defined(ULOG_USING_COLOR) || defined(ULOG_USING_SYSLOG) backend->output(backend, level, tag, is_raw, log, size); #else - if (backend->support_color) + if (backend->support_color || is_raw) { backend->output(backend...
zephyr/make-bin-testsuite: Exclude more recent tests.
-e vfs_fat_ramdisklarge -e vfs_fat_mtime -e vfs_lfs_mtime \ -e usocket_udp_nonblock \ -e utime_res \ + -e 'subclass_(list|tuple)' \ | ../tools/tinytest-codegen.py --stdin) > bin-testsuite.c make \
[arch][arm-m] optimize the arch_interrupt_save routine a bit for cortex-m From looking at the dissassembly the compiler wasn't doing a good job with the overly complicated version shared with the larger arm cores. Simplify it by recognizing that you can save the state directly from PRIMASK and restore it more simply.
@@ -50,6 +50,8 @@ static inline void arch_spin_unlock(spin_lock_t *lock) { #endif +#if !ARM_ISA_ARMV7M + /* ARM specific flags */ #define SPIN_LOCK_FLAG_IRQ 0x40000000 #define SPIN_LOCK_FLAG_FIQ 0x80000000 /* Do not use unless IRQs are already disabled */ @@ -86,4 +88,42 @@ arch_interrupt_restore(spin_lock_saved_state_...
nvs_util: Update file I/O handling for error handling across various OS
# from __future__ import division, print_function +from future.moves.itertools import zip_longest from builtins import int, range, bytes from io import open import sys @@ -28,7 +29,6 @@ import random import struct import os import array -import csv import zlib import codecs import datetime @@ -905,19 +905,40 @@ def gen...
improve scale_make
@@ -225,8 +225,10 @@ glm_scale_to(mat4 m, vec3 v, mat4 dest) { CGLM_INLINE void glm_scale_make(mat4 m, vec3 v) { - mat4 t = GLM_MAT4_IDENTITY_INIT; - glm_scale_to(t, v, m); + glm_mat4_identity(m); + m[0][0] = v[0]; + m[1][1] = v[1]; + m[2][2] = v[2]; } /*!
replace offsets
@@ -260,7 +260,7 @@ patch_return_addrs(funchook_t *funchook, void *pre_patch_addr = (void*)asm_inst[i-1].address; - void *patch_addr = (void*)asm_inst[i].address; + void *patch_addr = (void*)asm_inst[i-1].address; // all add_arg values within a function should be the same if (tap->frame_size && (tap->frame_size != add_...
UserNotes: Improve DB cleanup from commit
@@ -182,7 +182,11 @@ NTSTATUS LoadDb( return status; if (!topNode) + { + // Delete the corrupted file. (dmex) + PhDeleteFileWin32(PhGetString(ObjectDbPath)); return STATUS_FILE_CORRUPT_ERROR; + } //LockDb(); @@ -373,8 +377,11 @@ NTSTATUS SaveDb( // Skip saving the DB when there's no objects (dmex) if (GetNumberOfDbObje...
Refacturing: Do not mask long action_types in intersect
@@ -265,7 +265,7 @@ static int action_main(struct snap_sim_action *action, static struct snap_sim_action action = { .vendor_id = SNAP_VENDOR_ID_ANY, .device_id = SNAP_DEVICE_ID_ANY, - .action_type = (HLS_INTERSECT_ID&0xFFFF), + .action_type = HLS_INTERSECT_ID, .job = { .retc = SNAP_RETC_FAILURE, }, .state = ACTION_IDLE...
Simplify the code to keep xcode happy
@@ -5879,9 +5879,14 @@ private: void PostMinorCounter() { if(m_MinorCounter < m_MajorCounter) + { ++m_MinorCounter; + } else if(m_MajorCounter > 0) - --m_MajorCounter, --m_MinorCounter; + { + --m_MajorCounter; + --m_MinorCounter; + } } };
sub shm CHANGE check errno after select only when ret = -1
@@ -2863,7 +2863,7 @@ wait_for_event: SR_ERRINFO_SYSERRNO(&err_info, "select"); sr_errinfo_free(&err_info); goto error; - } else if ((!ret || (errno == EINTR)) && !stop_time_in) { + } else if ((!ret || ((ret == -1) && (errno == EINTR))) && !stop_time_in) { /* timeout/signal received, retry */ goto wait_for_event; }
time: utils: use new coro api
@@ -47,11 +47,11 @@ static void flb_time_thread_wakeup(struct flb_config *config, void *data) static FLB_INLINE void flb_time_sleep(int ms) { int ret; - struct flb_coro *th; + struct flb_coro *coro; struct flb_sched *sched; - th = (struct flb_coro *) pthread_getspecific(flb_coro_key); - if (!th) { + coro = flb_coro_get...
Correct UUID value for ESP_GATT_UUID_ENVIRONMENTAL_SENSING_SVC
@@ -54,7 +54,7 @@ extern "C" { #define ESP_GATT_UUID_CYCLING_SPEED_CADENCE_SVC 0x1816 /* Cycling Speed and Cadence Service*/ #define ESP_GATT_UUID_CYCLING_POWER_SVC 0x1818 /* Cycling Power Service*/ #define ESP_GATT_UUID_LOCATION_AND_NAVIGATION_SVC 0x1819 /* Location and Navigation Service*/ -#define ESP_GATT_UUID_ENVI...
VERSION bump to version 2.0.110
@@ -62,7 +62,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 109) +set(LIBYANG_MICRO_VERSION 110) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
fixed my fixed that broke
@@ -305,7 +305,7 @@ function initialize_build_visit() # use gcc for 10.9 & earlier - VER_MAJOR==${VER%%.*} + VER_MAJOR=${VER%%.*} # bash script educational note: # The less than sign "<" is an arithmetic expression and @@ -318,33 +318,33 @@ function initialize_build_visit() if [[ ${VER_MAJOR} -lt 8 ]] ; then export MAC...
Use bbr2 in interop to see how it performs
@@ -29,7 +29,7 @@ if [ "$ROLE" == "client" ]; then else CLIENT_BIN="/usr/local/bin/h09client" fi - CLIENT_ARGS="$SERVER 443 --download /downloads -s --no-quic-dump --no-http-dump --exit-on-all-streams-close --qlog-dir $QLOGDIR --cc bbr" + CLIENT_ARGS="$SERVER 443 --download /downloads -s --no-quic-dump --no-http-dump -...
sends single-home arvo identity and entropy events
@@ -875,18 +875,36 @@ _pier_boot_vent(u3_pier* pir_u) /* insert module sequence, prepending first identity event */ { - u3_noun seq; + u3_noun seq = u3k(mod); - /* prepend identity event to module sequence - */ - // { - // u3_noun wir = u3nt(c3__name, u3dc("scot", 'p', u3k(who)), u3_nul); - // u3_noun car = u3nc(c3__ve...
bugzzy : tune usb mux tune usb mux for port c1. BRANCH=None TEST=make -j BOARD=bugzzy
@@ -612,6 +612,13 @@ static int ps8743_tune_mux_c1(const struct usb_mux *me) PS8743_USB_EQ_TX_3_6_DB, PS8743_USB_EQ_RX_16_0_DB); + ps8743_write(me, + PS8743_REG_USB_SWING, + PS8743_LFPS_SWG_TD); + ps8743_write(me, + PS8743_REG_DP_SETTING, + PS8743_DP_SWG_ADJ_P15P); + return EC_SUCCESS; }
log CHANGE added LY_ESYS as error return value (LY_ERR)
@@ -142,6 +142,7 @@ typedef enum { LY_SUCCESS = 0, /**< no error, not set by functions, included just to complete #LY_ERR enumeration */ LY_EMEM, /**< Memory allocation failure */ + LY_ESYS, /**< System call failure */ LY_EINVAL, /**< Invalid value */ LY_EEXIST, /**< Item already exists */ LY_EINT, /**< Internal error ...
Better implementation of SIMDE_F{32,64}_ALL_{SET,UNSET}
@@ -328,21 +328,29 @@ HEDLEY_STATIC_ASSERT(sizeof(simde_float64) == 8, "Unable to find 64-bit floating # endif #endif -#if !defined(__cplusplus) -#define SIMDE_F64_ALL_SET (((union { uint64_t u64; simde_float64 f64; }) { .u64 = ~UINT64_C(0x0) }).f64) -#define SIMDE_F64_ALL_UNSET (((union { uint64_t u64; simde_float64 f...
xfconf-plugin: Add introduction in the readme
## Introduction -This is a storage plugin to mount the xfconf configuration settings. +The xfconf plugin is a storage plugin to mount the xfconf configuration settings. +This allows to operate on the XFCE configuration with libelektra. +As usual, this allows the plugin to read and write to the XFCE configuration. + +Yo...
BugID:21247578: [WhiteScan] fix observe.c null pointer check issue
@@ -581,7 +581,7 @@ void observe_step(lwm2m_context_t * contextP, break; } } - if ((watcherP->parameters->toSet & LWM2M_ATTR_FLAG_GREATER_THAN) != 0) + if (((watcherP->parameters->toSet & LWM2M_ATTR_FLAG_GREATER_THAN) != 0) && (dataP != NULL)) { lwm2m_log(LOG_DEBUG, "Checking upper threshold\n"); // Did we cross the up...
reply with ping nonce to all clients
@@ -50,7 +50,7 @@ static const int NOBLKS_VERSION_START = 70002; static const int NOBLKS_VERSION_END = 70006; // BIP 0031, pong message, is enabled for all versions AFTER this one -static const int BIP0031_VERSION = 31005; +static const int BIP0031_VERSION = 21212; // "mempool" command, enhanced "getdata" behavior star...
Move PEGC related manual to the position before WAB part
@@ -526,13 +526,6 @@ You can also see VirMIDI 3-0 to 3-3 at midiC3D0 to midiC3D3. Next boot computer, you command from 4. -WAB ---- -From rev.16 we can use WAB (Window Accelerator Boards). - -To use WAB, enable WAB and restart. - -WAB Type normally uses 'PC-9821Xe10,Xa7e,Xb10 built-in'. PEGC 640x480 256 color support f...
Add internal functions to fetch a refcount
typedef _Atomic int CRYPTO_REF_COUNT; +static ossl_inline int CRYPTO_GET_REF(_Atomic int *val, int *ret, void *lock) +{ + *ret = atomic_fetch_add_explicit(val, 0, memory_order_relaxed); + return 1; +} + static ossl_inline int CRYPTO_UP_REF(_Atomic int *val, int *ret, void *lock) { *ret = atomic_fetch_add_explicit(val, ...
Fix for x86 compile.
@@ -55,7 +55,7 @@ uint8_t* picoquic_transport_param_varint_encode_old(uint8_t* bytes, const uint8_ uint64_t picoquic_transport_param_varint_decode(picoquic_cnx_t * cnx, uint8_t* bytes, uint64_t extension_length, int* ret) { uint64_t n64 = 0; - size_t l_v = picoquic_varint_decode(bytes, extension_length, &n64); + uint64...
Add danger remark for colored lighting. Resolve
@@ -119,13 +119,15 @@ lights have no direction. Light color and brightness """""""""""""""""""""""""" -VisIt allows lights to have color as well as brightness. Colored lighting -can produce interesting effects that may be desirable for presentations. -To change the light color, click on the light **Color** button and s...
bugfix: checkout ref failed for origin branches
@@ -86,10 +86,17 @@ if __name__ == '__main__': for candidate in candidate_branches: # check if the branch, tag or commit exists try: + subprocess.check_call(['git', 'cat-file', '-t', 'origin/{}'.format(candidate)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + ref_to_use = candidate + break + except subprocess.Call...
test/usb_prl.c: Format with clang-format BRANCH=none TEST=none
@@ -34,14 +34,14 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { static enum pd_power_role get_partner_power_role(int port) { - return pd_get_power_role(port) == PD_ROLE_SINK ? - PD_ROLE_SOURCE : PD_ROLE_SINK; + return pd_get_power_role(port) == PD_ROLE_SINK ? PD_ROLE_SOURCE : + PD_ROLE_SINK...
arch/esp32c3: Fix the compiler error in esp32c3_spi.c which is made by: commit Author: Alan Carvalho de Assis Date: Fri Dec 16 15:23:39 2022 -0300 Modify the IRQ APIs to be compatible with ESP32/S2/S3
@@ -1456,7 +1456,7 @@ int esp32c3_spibus_uninitialize(struct spi_dev_s *dev) #ifdef CONFIG_ESP32C3_SPI2_DMA up_disable_irq(priv->config->irq); - esp32c3_free_cpuint(priv->config->periph, priv->cpuint); + esp32c3_teardown_irq(priv->config->periph, priv->cpuint); priv->cpuint = -ENOMEM; #endif
Fix missing style for telephone number input fields.
@@ -8,7 +8,7 @@ body { font-size: 16px; margin: 0; } -code, kbd, pre, tt, input[type=email], input[type=number], input[type=password], input[type=text], textarea { +code, kbd, pre, tt, input[type=email], input[type=number], input[type=password], input[type=tel], input[type=text], textarea { font-family: 'Source Code Pr...
Use AI_ADDRCONFIG hint with getaddrinfo if available. This prevents failure of openssl s_server socket binding to wildcard address on hosts with disabled IPv6.
@@ -683,6 +683,12 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type, hints.ai_family = family; hints.ai_socktype = socktype; hints.ai_protocol = protocol; +#ifdef AI_ADDRCONFIG +#ifdef AF_UNSPEC + if (family == AF_UNSPEC) +#endif + hints.ai_flags |= AI_ADDRCONFIG; +#endif if (lookup_type == BI...
Fixed MirroredAppendOnly_Create issue
@@ -519,7 +519,7 @@ void MirroredAppendOnly_Create( /* traceOpenFlags */ false, primaryError, mirrorDataLossOccurred); - if (primaryError != 0) + if ((*primaryError) != 0) return; MirroredAppendOnly_FlushAndClose(
block command, first version
@@ -222,10 +222,18 @@ static int cheatcoin_command(char *cmd, FILE *out) { } else balance = cheatcoin_get_balance(0); fprintf(out, "Balance: %.9Lf %s\n", amount2cheatcoins(balance), coinname); } + } else if (!strcmp(cmd, "block")) { + cheatcoin_hash_t hash; + cmd = strtok_r(0, " \t\r\n", &lasts); + if (cmd) { + if (che...
chip/mchp/fan.c: Format with clang-format BRANCH=none TEST=none
@@ -38,7 +38,6 @@ static int rpm_setting; static int duty_setting; static int in_rpm_mode = 1; - static void clear_status(void) { /* Clear DRIVE_FAIL, FAN_SPIN, and FAN_STALL bits */ @@ -84,8 +83,8 @@ void fan_set_duty(int ch, int percent) int fan_get_duty(int ch) { - duty_setting = (MCHP_FAN_SETTING(0) >> FAN_DRIVER_S...
Inherit settings in quickstart config setup
@@ -83,18 +83,21 @@ Build { SupportedHosts = { "windows" }, DefaultOnHost = "windows", Tools = { "msvc" }, + Inherit = win64, }, Config { Name = "macosx-clang", SupportedHosts = { "macosx" }, DefaultOnHost = "macosx", Tools = { "clang-osx" }, + Inherit = macosx, }, Config { Name = "linux-gcc", SupportedHosts = { "linux...
sync ymake.core.conf with mapsmobi version
@@ -5145,14 +5145,14 @@ _AAR_AIDL_DIRS_VALUE= ### @usage: AAR_AIDL_SRCS(dir filenames...) # internal macro AAR_AIDL_SRCS(PREFIX, FILES...) { SET_APPEND(_AAR_AIDL_DIRS_VALUE $PREFIX) - SET_APPEND(_AAR_EXTRA_INPUTS_VALUE $FILES) + SET_APPEND(_AAR_EXTRA_INPUTS_VALUE ${pre=$PREFIX/:FILES}) } _AAR_ASSETS_DIRS_VALUE= ### @us...
detect handshake if client sends Key descriptor M4 instead of M2
@@ -1472,6 +1472,10 @@ else if(keyinfo == 3) else if(keyinfo == 2) { + if(memcmp(wpak->nonce, nullnonce, 32) == 0) + { + return; + } if(authlen <= caplen -4) { addeapol(tv_sec, tv_usec, macaddr2, macaddr1, 4, byte_swap_64(wpak->replaycount), authlen +4, packet);
Add test for relaxation parameter grid simulation
@@ -64,7 +64,17 @@ tests/test-sim-ode-hp-bssfp: sim nrmse touch $@ +tests/test-sim-multi-relaxation: sim slice nrmse + set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\ + $(TOOLDIR)/sim --sim bssfp,tr=0.0045,te=0.00225,nrep=1000,ipl=0.0001,ppl=0,trf=0,fa=45,bwtp=4 -1 3:3:4 -2 1:1:5 simu.ra ;\ + $(TOOLDIR)/slice 6 0 7 0 s...
Tools: fix PyYAML deps for pre-commit hook Fix 'error: Library stubs not installed for "yaml" (or incompatiblewith Python 3.9)'
@@ -97,6 +97,7 @@ repos: - 'mypy==0.940' - 'mypy-extensions==0.4.3' - 'types-setuptools==57.4.14' + - 'types-PyYAML==0.1.9' language: python types: [python] - id: check-copyright
test-suite: disable extrae tests - additional work needed for v1.3.6
@@ -256,8 +256,8 @@ AM_CONDITIONAL(EASYBUILD_ENABLED,test "x$enable_easybuild" = "xyes" ) #------------------------------------------------------------------------------------------ # Extrae AC_ARG_ENABLE([extrae], - [AS_HELP_STRING([--enable-extrae],[Enable Extrae tests (default=yes)])],[], - [AX_OPTION_DEFAULT(type=l...
Add qemu to CI rules for rebuilding toolchain
@@ -15,7 +15,7 @@ cd $LOCAL_CHIPYARD_DIR # Use normalized output of git-submodule status as hashfile for tools in 'riscv-tools' 'esp-tools' ; do - git submodule status "toolchains/${tools}" | while read -r line ; do + git submodule status "toolchains/${tools}" "toolchains/qemu" | while read -r line ; do echo "${line#[!...
Make startup abort more readable.
@@ -55,6 +55,7 @@ using Prometheus; using WebSocketManager; using ILogger = NLog.ILogger; using LogLevel = Microsoft.Extensions.Logging.LogLevel; +using static Miningcore.Util.ActionUtils; // ReSharper disable AssignNullToNotNullAttribute // ReSharper disable PossibleNullReferenceException @@ -315,6 +316,7 @@ public cl...
libtools: Remove TODO-comment about implementing tests from the Error-Factory
@@ -39,7 +39,6 @@ Error * ErrorFactory::create (const std::string & type, const std::string & desc } -/* TODO: Test method */ Error * ErrorFactory::fromKey (kdb::Key key) { Error * err = nullptr;
Minor comment update for get_level_property function.
@@ -322,7 +322,7 @@ HRESULT openbor_set_set_property(ScriptVariant **varlist, ScriptVariant **pretva // // Access level property by handle. // -// get_level_property(void handle, int frame, int property) +// get_level_property(void handle, int property) HRESULT openbor_get_level_property(ScriptVariant **varlist, Script...
correct pvalue in eval feature
@@ -115,6 +115,5 @@ TWxTestResult WxTest(const TVector<double>& baseline, } else { result.PValue = 2 * CalcLevelOfSignificanceWXMPSR(Abs(w), (int) n); } - result.PValue = 1.0 - result.PValue; return result; }
minor tweaks for pagebreaks
@@ -575,7 +575,7 @@ replacing the \texttt{pxelinux.0} and \texttt{lpxelinux.0} files supplied with %---------------- % CentOS specific %---------------- -\clearpage +%\clearpage \begin{lstlisting}[language=bash,keywords={}] [sms](*\#*) yum search petsc-gnu ohpc Loaded plugins: fastestmirror @@ -588,6 +588,7 @@ petsc-gn...
Fix missing gettimeofday() declaration. This avoids a warning under MinGW versions having gettimeofday(), per buildfarm member walleye.
#include <ctype.h> #include <limits.h> +#include <sys/time.h> #include <time.h> #ifdef WIN32 #include "win32.h" #else #include <unistd.h> -#include <sys/time.h> #endif #include "libpq-fe.h"
update ya tool arc don't fail in case of replaced element on status calculation keepalive & async timeout options for grpc clients (set fuse timeout to 1s) option for reading commit message from file
}, "arc": { "formula": { - "sandbox_id": [343949356], + "sandbox_id": [345042646], "match": "arc" }, "executable": {
OcDevicePropertyLib: Fix bugs reported by Download-Fritz
@@ -485,8 +485,8 @@ DppDbRemoveProperty ( --Node->Hdr.NumberOfProperties; - // BUG: Name and Value are not freed. - + gBS->FreePool ((VOID *)Property->Name); + gBS->FreePool ((VOID *)Property->Value); gBS->FreePool ((VOID *)Property); Status = EFI_SUCCESS; @@ -882,8 +882,10 @@ OcDevicePathPropertyInstallProtocol ( } el...
fix typo in rename
@@ -246,7 +246,8 @@ def rmdir(path): #renames a file, i.e. the backing Elektra-key def rename(old_path, new_path): - _ensure_namespace_is_writable(path) + _ensure_namespace_is_writable(old_path) + _ensure_namespace_is_writable(new_path) if Path(old_path).name == dir_file_special_name: #see https://github.com/ElektraIni...
vppinfra: fix coverity issue 205691 in pmalloc set the address to MMAP_FAILED if mmap has failed, so that we do not attempt to free it in the error handling path. Type: fix
@@ -331,6 +331,7 @@ pmalloc_map_pages (clib_pmalloc_main_t * pm, clib_pmalloc_arena_t * a, pm->error = clib_error_return_unix (0, "failed to mmap %u pages at %p " "fd %d numa %d flags 0x%x", n_pages, va, a->fd, numa_node, mmap_flags); + va = MAP_FAILED; goto error; }
Forward declaration of check max streams repeat
@@ -33,6 +33,8 @@ int picoquic_process_ack_of_max_stream_data_frame(picoquic_cnx_t* cnx, const uin size_t bytes_size, size_t* consumed); int picoquic_process_ack_of_max_streams_frame(picoquic_cnx_t* cnx, const uint8_t* bytes, size_t bytes_size, size_t* consumed); +int picoquic_check_max_streams_frame_needs_repeat(picoq...
Change refs of int64:int64->int64_t in src/framework-dfp.c
@@ -1044,7 +1044,7 @@ Graph *build_fusion_conflict_graph(PlutoProg *prog, int *colour, int num_nodes, if (options->fuse == TYPED_FUSE) { par_preventing_adj_mat = pluto_matrix_alloc(num_nodes, num_nodes); for (i = 0; i < num_nodes; i++) { - bzero(par_preventing_adj_mat->val[i], num_nodes * sizeof(int64)); + bzero(par_pr...
s_socket.c: Avoid possible NULL pointer dereference
@@ -82,7 +82,6 @@ int init_client(int *sock, const char *host, const char *port, BIO_ADDRINFO *bindaddr = NULL; const BIO_ADDRINFO *ai = NULL; const BIO_ADDRINFO *bi = NULL; - char *hostname = NULL; int found = 0; int ret; @@ -173,10 +172,6 @@ int init_client(int *sock, const char *host, const char *port, break; } - ho...
Add a test to verify bytes_sent to respond to PATH_CHALLENGE
@@ -5609,6 +5609,7 @@ void test_ngtcp2_conn_recv_path_challenge(void) { ngtcp2_path_storage ps; ngtcp2_ssize shdlen; ngtcp2_pkt_hd hd; + ngtcp2_dcid *dcid; ngtcp2_cid_init(&cid, raw_cid, sizeof(raw_cid)); @@ -5649,6 +5650,10 @@ void test_ngtcp2_conn_recv_path_challenge(void) { CU_ASSERT(0 == ngtcp2_ringbuf_len(&conn->r...
Moved lazy load of default config to s2n_init.
@@ -31,6 +31,13 @@ int s2n_init(void) S2N_ERROR_IF(atexit(s2n_cleanup_atexit) != 0, S2N_ERR_ATEXIT); + /* these functions do lazy init. Avoid the race conditions and just do it here. */ + if (s2n_is_in_fips_mode()) { + s2n_fetch_default_fips_config(); + } else { + s2n_fetch_default_config(); + } + return 0; }
Update comments in CMakeLists respect to version of Net Core 5.
@@ -7,7 +7,7 @@ endif() option(OPTION_BUILD_LOADERS_C "Build C Foreign Function Interface library loader plugin." OFF) option(OPTION_BUILD_LOADERS_COB "Build GNU/COBOL 2.2 loader plugin." OFF) option(OPTION_BUILD_LOADERS_CR "Build Crystal 0.33.0 loader plugin." OFF) -option(OPTION_BUILD_LOADERS_CS "Build C# CoreCLR 2.2...
PHP: fixed script filename setting, broken after
@@ -180,7 +180,7 @@ static void ***tsrm_ls; static nxt_int_t nxt_php_init(nxt_task_t *task, nxt_common_app_conf_t *conf) { - u_char *p; + u_char *p, *tmp; nxt_str_t ini_path; nxt_str_t *root, *script_filename, *script_name, *index; nxt_port_t *my_port, *main_port; @@ -221,24 +221,26 @@ nxt_php_init(nxt_task_t *task, nx...
armv7: enabling VFP
@@ -280,6 +280,14 @@ arch_init(struct arm_core_data *boot_core_data, /* disable counter overflow interrupts (just in case) */ __asm volatile ("mcr p15, 0, %0, C9, C14, 2\n\t" :: "r"(0x8000000f)); + MSG("Enabling VFP\n"); + // full access to cp10 and cp11 + __asm volatile ("ldr r0, =(0xf << 20)\n" + "mcr p15, 0, r0, c1,...
Fix datafari-community/datafari#681 Admin link to the search UI should point to DatafariUI
@@ -4,7 +4,7 @@ $(function($) { var elm = $(this); // Set the language parameter for search page - elm.find('#datafariSearchUiLink').prop('href', "/Datafari/Search?lang=" + window.i18n.language); + elm.find('#datafariSearchUiLink').prop('href', "/"); // Service Administration elm.find('#service-administration-AdminUI')...
don't run get phase poststorage twice for spec:/
#include <kdbinternal.h> +#define KDB_GET_PHASE_POST_STORAGE_SPEC (KDB_GET_PHASE_POST_STORAGE "/spec") +#define KDB_GET_PHASE_POST_STORAGE_NONSPEC (KDB_GET_PHASE_POST_STORAGE "/nonspec") + /** * @defgroup kdb KDB * @brief General methods to access the Key database. @@ -1372,12 +1375,32 @@ static bool resolveBackendsFor...
Avoid Windows init for xterm on MinGW.
@@ -315,7 +315,7 @@ TCOD_Context* TCOD_renderer_init_xterm( context->c_recommended_console_size_ = xterm_recommended_console_size; atexit(&xterm_cleanup); setlocale(LC_ALL, ".UTF-8"); // Enable UTF-8. -#if defined(_WIN32) +#if defined(_WIN32) && !defined(__MINGW32__) HANDLE handle_stdin = GetStdHandle(STD_INPUT_HANDLE)...
Replace anything named titan with pallene in coder_test_operators.lua
@@ -26,24 +26,24 @@ local function are_same(a, b) return (a == b) or (isnan(a) and isnan(b)) end -local function check(f_lua, f_titan, ...) +local function check(f_lua, f_pallene, ...) local ok_lua, r_lua = pcall(f_lua, ...) - local ok_titan, r_titan = pcall(f_titan, ...) - if ok_lua ~= ok_titan then - return false, st...
deflate/shuffle: usage & error messages
@@ -3879,10 +3879,10 @@ grib_option grib_options[] = { "\n\t\t3 -> netCDF-4 file format" "\n\t\t4 -> netCDF-4 classic model file format\n" , 0, 1, "2" }, - { "d:", "level", "\n\t\tDeflate data. Only for netCDF-4 kind output format." + { "d:", "level", "\n\t\tDeflate data (compression level). Only for netCDF-4 output fo...
Documentation of grib_filter
@@ -120,25 +120,27 @@ echo "-# The switch statement is an enhanced version of the if statement. Its sy echo "\\verbatim" echo "switch (key1) {" echo " case val1:" -echo " # block of rules;" +echo " # statements" echo " case val2:" -echo " # block of rules;" +echo " # statements" echo " default:" -echo " # block of rule...
app/eth: remove debug
#include "eth_params.h" #include "eth_sighash.h" #include "eth_verify.h" -#include "screen.h" #include <hardfault.h> #include <keystore.h> @@ -57,7 +56,6 @@ app_eth_sign_error_t app_eth_sign(const ETHSignRequest* request, ETHSignResponse const uint8_t erc20_transfer[4] = {0xa9, 0x05, 0x9c, 0xbb}; bool is_erc20_transfer...
py/modenum: Use built-in function to get type string Otherwise, Motor('crash') would cause a crash, since a string does not have a -> name.
@@ -24,7 +24,7 @@ mp_int_t enum_get_value_maybe(mp_obj_t enum_elem, const mp_obj_type_t *valid_typ pb_assert(PBIO_ERROR_INVALID_ARG); } else { nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, - "can't convert %s to %s", qstr_str(elem->base.type->name), qstr_str(valid_type->name))); + "can't convert %s to %s"...
Apply a few updates to README
@@ -10,16 +10,13 @@ easy software upgrade. MCUboot is operating system and hardware independent, and relies on hardware porting layers from the operating system it works with. Currently mcuboot works with both the Apache Mynewt, and Zephyr operating systems, but -more ports are planned in the future. +more ports are pl...
[shell] set prompt mode is default enable.
* 2011-02-23 Bernard fix variable section end issue of finsh shell * initialization when use GNU GCC compiler. * 2016-11-26 armink add password authentication + * 2018-07-02 aozima add custome prompt support. */ #include <rthw.h> @@ -853,6 +854,7 @@ int finsh_system_init(void) #endif /* RT_USING_HEAP */ rt_sem_init(&(s...
[Fix] RTfiltering initialization assert
@@ -510,7 +510,11 @@ search_result_t *RTFilter_ID(search_result_t *result, uint16_t id) uint8_t entry_nbr = 0; // Check result pointer LUOS_ASSERT(result != 0); - LUOS_ASSERT(RTFilter_InitCheck(result)); + // if we the result is not initialized return 0 + if (RTFilter_InitCheck(result) == 0) + { + result->result_nbr = ...
CONTRIBUTING: Clarifications to Mention that the message and that the e-mail address must be valid. Acked-by: Michael Holzheu
@@ -42,13 +42,15 @@ Developer's Certificate of Origin 1.1 this project or the open source license(s) involved. ``` -If you can certify the above, just add a line saying: +If you can certify the above, just add a line stating the following at the +bottom of each of your commit messages: ``` Signed-off-by: Random Develop...
Coverity: Unchecked return value should check the return value of BufFileSeek
@@ -1159,7 +1159,10 @@ BufFileResume(BufFile *buffile) Assert(buffile->buffer.data == NULL); buffile->buffer.data = palloc(BLCKSZ); - BufFileSeek(buffile, 0, 0, SEEK_SET); + if (BufFileSeek(buffile, 0, 0, SEEK_SET) != 0) + ereport(ERROR, + (errcode_for_file_access(), + errmsg("could not seek to the first block of tempo...
hv: fix general protection injection Exception type is missing when inject a #GP. GP should be injected even when guest irq disabled. Acked-by: Eddie Dong
@@ -200,9 +200,17 @@ static int vcpu_do_pending_extint(struct vcpu *vcpu) static int vcpu_do_pending_gp(__unused struct vcpu *vcpu) { + /* SDM Vol. 3A 6-37: if the fault condition was detected while loading + * a segment descriptor, the error code contains a segment selecor to or + * IDT vector number for the descripto...
fix: send response after passed tokens saved in session
@@ -3709,6 +3709,18 @@ static int oidc_handle_info_request(request_rec *r, oidc_cfg *c, json_string(refresh_token)); } + /* pass the tokens to the application and save the session, possibly updating the expiry */ + if (oidc_session_pass_tokens(r, c, session, &needs_save) == FALSE) + oidc_warn(r, "error passing tokens")...
neon/qdmulh: Add scalar function implementations
@@ -40,6 +40,21 @@ HEDLEY_DIAGNOSTIC_PUSH SIMDE_DISABLE_UNWANTED_DIAGNOSTICS SIMDE_BEGIN_DECLS_ +SIMDE_FUNCTION_ATTRIBUTES +int32_t +simde_vqdmulhs_s32(int32_t a, int32_t b) { + #if defined(SIMDE_ARM_NEON_A64V8_NATIVE) + return vqdmulhs_s32(a, b); + #else + int64_t tmp = simde_vqdmulls_s32(a, b); + return HEDLEY_STATIC...
Added pointer to help page to print_usage.
@@ -57,6 +57,7 @@ static void print_usage(void) printf(" EXIST=COMMON@TYPE=DIFFER\n"); printf(" EXIST=COMMON@CONTENT=COMMON\n"); printf(" EXIST=COMMON@CONTENT=DIFFER\n"); + printf("For more information see https://lc.llnl.gov/confluence/display/deg/mpiFileUtils."); printf("\n"); fflush(stdout); }