message
stringlengths
6
474
diff
stringlengths
8
5.22k
json BUGFIX provided value in case of JSON [null] instead of the pointer into the parsed data ("null]"), return just an empty string "".
@@ -578,7 +578,7 @@ lyjson_value(struct lyjson_ctx *jsonctx) } else if ((*jsonctx->in->current == 'n') && !strncmp(jsonctx->in->current, "null", ly_strlen_const("null"))) { /* none */ - lyjson_ctx_set_value(jsonctx, jsonctx->in->current, 0, 0); + lyjson_ctx_set_value(jsonctx, "", 0, 0); ly_in_skip(jsonctx->in, ly_strle...
tests: runtime: filter_modify: add a conditional chaining test
@@ -26,13 +26,13 @@ static int cb_check_result(void *record, size_t size, void *data) flb_error("Expected to find: '%s' in result '%s'", expected, result); } - flb_free(record); - /* * If you want to debug your test * * printf("Expect: '%s' in result '%s'", expected, result); */ + + flb_free(record); return 0; } @@ -10...
ExtendedServices: Remove unused handle
@@ -35,32 +35,35 @@ VOID NTAPI MenuItemCallback( { PPH_PLUGIN_MENU_ITEM menuItem = Parameter; + if (!menuItem) + return; + switch (menuItem->Id) { case ID_SERVICE_GOTOSERVICE: { - ProcessHacker_SelectTabPage(PhMainWndHandle, 1); - ProcessHacker_SelectServiceItem(PhMainWndHandle, (PPH_SERVICE_ITEM)menuItem->Context); + ...
Don't monitor kernel rules. This is a remainder from the disambiguation code, which was removed back in 2020.
@@ -39,7 +39,6 @@ THE SOFTWARE. #include <sys/socket.h> #include <linux/netlink.h> #include <linux/rtnetlink.h> -#include <linux/fib_rules.h> #include <net/if_arp.h> /* From <linux/if_bridge.h> */ @@ -668,13 +667,9 @@ kernel_setup_socket(int setup) | rtnlgrp_to_mask(RTNLGRP_IPV4_ROUTE) | rtnlgrp_to_mask(RTNLGRP_LINK) |...
socket-connect.c: print "Trying hostname:port (ip)" or "ip:port"
@@ -90,6 +90,8 @@ gftp_connect_server_with_getaddrinfo (gftp_request * request, char *service, unsigned int proxy_port) { struct addrinfo *res, *hostp, *current_hostp; + struct sockaddr_in * addrin; + char ipstr[128], * hostname; unsigned int port; int sock = -1; struct timeval timeout; @@ -116,16 +118,31 @@ gftp_conne...
Add comment to rationale this if statement
@@ -937,7 +937,7 @@ lwespi_parse_received(lwesp_recv_t* rcv) { } } } else if (CMD_IS_CUR(LWESP_CMD_TCPIP_CIPSTART)) { - + /* Do nothing, it is either OK or not OK */ } else if (CMD_IS_CUR(LWESP_CMD_TCPIP_CIPSEND)) { if (is_ok) { /* Check for OK and clear as we have to check for "> " statement after OK */ is_ok = 0; /* ...
Params from text to allow zero length value fields
@@ -107,6 +107,7 @@ static int construct_from_text(OSSL_PARAM *to, const OSSL_PARAM *paramdef, if (buf == NULL) return 0; + if (buf_n > 0) { switch (paramdef->data_type) { case OSSL_PARAM_INTEGER: case OSSL_PARAM_UNSIGNED_INTEGER: @@ -146,10 +147,10 @@ static int construct_from_text(OSSL_PARAM *to, const OSSL_PARAM *pa...
Remove obsolete thread count check.
@@ -435,7 +435,6 @@ static void CalcBestScore(const TTrainingForCPUDataProviders& data, TCandidateList* candidateList, TFold* fold, TLearnContext* ctx) { - CB_ENSURE(static_cast<ui32>(ctx->LocalExecutor->GetThreadCount()) == ctx->Params.SystemOptions->NumThreads - 1); const TFlatPairsInfo pairs = UnpackPairsFromQueries...
doc: improve sentence see
@@ -84,7 +84,7 @@ You have some options to avoid running them as root: 3. Compile Elektra so that system paths are not actual system paths, e.g. to write everything into the home directory (`~`) use cmake options: `-DKDB_DB_SYSTEM="~/.config/kdb/system" -DKDB_DB_SPEC="~/.config/kdb/spec"` - (for another example with in...
Removed TODO (completed by 7f6e928)
@@ -257,7 +257,6 @@ void generateInstruction(sCurStatus *curStatusPtr, int vertex, glsl_t *glsl, sIn } // Instruction variable pushing - // TODO: MOV, LG2 and similar use only (a) specific component(s) (mask), optimize generated code #define PUSH_MASKDST(i) \ PUSH_VARNAME(i) \ PUSH_DSTMASK(i, i)
Add static build assert to celix properties iterator
@@ -470,6 +470,8 @@ int celix_properties_size(const celix_properties_t *properties) { celix_properties_iterator_t celix_propertiesIterator_construct(const celix_properties_t *properties) { celix_properties_iterator_t iter; + CELIX_BUILD_ASSERT(sizeof(celix_properties_iterator_t) == sizeof(hash_map_iterator_t)); + CELIX...
fix-website-build... Got it working! Cleanup the debug a bit.
@@ -4,29 +4,23 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd ${DIR} -# for debugging -ls -al $HOME -env - # nvm is provided by the runner, but needs to be setup for this shell env export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion...
filter_parser: validate return value when expanding map
@@ -222,6 +222,12 @@ static int cb_parser_filter(void *data, size_t bytes, ret = flb_msgpack_expand_map(out_buf, out_size, append_arr, append_arr_len, &new_buf, &new_size); + if (ret == -1) { + flb_error("[filter_parser] cannot expand map"); + msgpack_unpacked_destroy(&result); + return FLB_FILTER_NOTOUCH; + } + flb_fr...
raspberrypi4.conf: The firmware uses kernel7l.img when LPAE is supported
@@ -11,7 +11,8 @@ MACHINE_EXTRA_RRECOMMENDS += "\ bluez-firmware-rpidistro-bcm4345c0-hcd \ " -SDIMG_KERNELIMAGE ?= "kernel7.img" +# 'l' stands for LPAE +SDIMG_KERNELIMAGE ?= "kernel7l.img" UBOOT_MACHINE = "rpi_4_32b_config" SERIAL_CONSOLES ?= "115200;ttyS0"
SOVERSION bump to version 2.24.21
@@ -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 24) -set(LIBYANG_MICRO_SOVERSION 20) +set(LIBYANG_MICRO_SOVERSION 21) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG...
Fix crash when global functions didn't have a return and arguments being shifted by 1
@@ -166,8 +166,8 @@ sol::object Scripting::Execute(const std::string& aFuncName, sol::variadic_args { auto arg = aArgs[i]; - auto* pType = *reinterpret_cast<RED4ext::REDreverse::CRTTIBaseType**>(pFunc->params.unk0[i]); - args[i].type = pType; + auto* pType = *reinterpret_cast<RED4ext::REDreverse::CRTTIBaseType**>(pFunc...
Add detailed pin mapping explanation to underglow docs * Update underglow.md Updated the documentation according to my current understandring of how to pin-mapping works, also split the chapter into a nrf-section and a non-nrf-section since that information isn't applicable to both * Ran prettier and updated pin refere...
@@ -55,10 +55,16 @@ If you have a shield with RGB underglow, you must add a `boards/` directory with Inside the `boards/` folder, you define a `<board>.overlay` for each different board. For example, the Kyria shield has a `boards/nice_nano.overlay` file that defines the RGB underglow for the `nice_nano` board specific...
Babelstream: add CCC_OVERRIDE_OPTIONS check before setting -DOMP_TARGET_FAST_DOT Check if new runtime is disabled via: CCC_OVERRIDE_OPTIONS='+-fno-openmp-target-new-runtime' Don't set -DOMP_TARGET_FAST_DOT if new runtime is disabled.
@@ -95,7 +95,14 @@ for option in $RUN_OPTIONS; do elif [ "$option" == "no_loop" ]; then # FAST_DOT requires merge of http://gerrit-git.amd.com/c/lightning/ec/llvm-project/+/705744 $AOMP/bin/llvm-nm $AOMP/lib/libomptarget-new-amdgpu-gfx906.bc | grep kmpc_xteam_sum_d >/dev/null - [ $? == 0 ] && omp_flags+=" -DOMP_TARGET_...
Fix RX GFIR setup for R3 chip
@@ -168,7 +168,13 @@ int LMS7_Device::ConfigureGFIR(bool enabled,bool tx, double bandwidth, size_t ch lms->Modify_SPI_Reg_bits(LMS7param(GFIR1_BYP_RXTSP), enabled == false, true); lms->Modify_SPI_Reg_bits(LMS7param(GFIR2_BYP_RXTSP), enabled == false, true); lms->Modify_SPI_Reg_bits(LMS7param(GFIR3_BYP_RXTSP), enabled =...
test: fix ethereum test case test_005ParametersSet_0002SetNonceSuccess
@@ -285,9 +285,14 @@ START_TEST(test_005ParametersSet_0002SetNonceSuccess) TEST_GAS_LIMIT, TEST_RECIPIENT_ADDRESS); ck_assert(rtnVal == BOAT_SUCCESS); - rtnVal = BoatEthTxSetNonce(&tx_ptr, 0x01); + rtnVal = BoatEthTxSetNonce(&tx_ptr, 0xA1); + BoatFieldMax32B NONCE; + NONCE.field_len = UtilityHexToBin(NONCE.field, 32, "...
possibly fixed all the bugs notsure sob
@@ -89,34 +89,27 @@ for bp in range(len(beatmap_info)): repeatedTime.append(beatmap_info[bp]["repeated"]) durationTime.append(beatmap_info[bp]["duration"]) endTime.append(beatmap_info[bp]["end time"]) - #print(beatmap_info[bp]["duration"] + beatmap_info[bp]["time"] * beatmap_info[bp]["repeated"]) for x in range(len(my_...
scripts: add quotes
@@ -22,9 +22,9 @@ KDBSYSTEM="$($KDB file system)" KDBUSER="$($KDB file user)" KDBSPEC="$($KDB file spec)" -$KDB reset-elektra +"$KDB" reset-elektra -f -$KDB rm -r --without-elektra system || rm -f $KDBSYSTEM +"$KDB" rm -r --without-elektra system || rm -f "$KDBSYSTEM" -$KDB rm -r user || rm -f $KDBUSER -$KDB rm -r spec...
common/online_calibration.c: Format with clang-format BRANCH=none TEST=none
@@ -202,8 +202,7 @@ void online_calibration_init(void) void *type_specific_data = NULL; s->online_calib_data->last_temperature = -1; - type_specific_data = - s->online_calib_data->type_specific_data; + type_specific_data = s->online_calib_data->type_specific_data; if (!type_specific_data) continue;
py/asmxtensa: Fix bug with order of regs in addi encoding.
@@ -118,7 +118,7 @@ static inline void asm_xtensa_op_add(asm_xtensa_t *as, uint reg_dest, uint reg_s } static inline void asm_xtensa_op_addi(asm_xtensa_t *as, uint reg_dest, uint reg_src, int imm8) { - asm_xtensa_op24(as, ASM_XTENSA_ENCODE_RRI8(2, 12, reg_dest, reg_src, imm8 & 0xff)); + asm_xtensa_op24(as, ASM_XTENSA_E...
Fix crash when recovering from exceeding the recursion limit.
@@ -23,6 +23,13 @@ void lily_mb_escape_add_str(lily_msgbuf *, const char *); are to be returned from. */ static uint16_t foreign_code[1] = {o_vm_exit}; +/* Operations called from the vm that may raise an error must set the current + frame's code first. This allows parser and vm to assume that any native + function's li...
Remove non-functional CRYPTO_AES_CTR ifdef disabling AES-CTR in cryptodev
@@ -184,7 +184,6 @@ static struct { { CRYPTO_AES_CBC, NID_aes_256_cbc, 16, 32, }, -# ifdef CRYPTO_AES_CTR { CRYPTO_AES_CTR, NID_aes_128_ctr, 14, 16, }, @@ -194,7 +193,6 @@ static struct { { CRYPTO_AES_CTR, NID_aes_256_ctr, 14, 32, }, -# endif { CRYPTO_BLF_CBC, NID_bf_cbc, 8, 16, }, @@ -812,7 +810,6 @@ static const EVP_...
Fix unused var warning in release mode
@@ -159,7 +159,8 @@ size_t cbor_serialize_alloc(const cbor_item_t *item, unsigned char **buffer, return 0; } - size_t written = cbor_serialize(item, *buffer, serialized_size); + size_t written __attribute__((unused)) = + cbor_serialize(item, *buffer, serialized_size); CBOR_ASSERT(written == serialized_size); if (buffer...
input_thread: pause coll_fd when read pipe is closed
@@ -744,6 +744,7 @@ int flb_input_thread_collect(struct flb_input_instance *ins, if (bytes_read == 0) { flb_plg_warn(ins, "end of file (read pipe closed by input thread)"); + flb_input_collector_pause(it->coll_fd, ins); return 0; }
Bump firmware version to 0x262f0500 Clear existing route when device rejoins (APS update command) Force stable link status commands/neighbor table
@@ -71,7 +71,7 @@ DEFINES += GIT_COMMMIT=\\\"$$GIT_COMMIT\\\" \ # Minimum version of the RaspBee firmware # which shall be used in order to support all features for this software release (case sensitive) DEFINES += GW_AUTO_UPDATE_FW_VERSION=0x260b0500 -DEFINES += GW_MIN_RPI_FW_VERSION=0x262e0500 +DEFINES += GW_MIN_RPI_...
Increased maximal connection time for AT+CIPSTART
@@ -161,7 +161,7 @@ esp_conn_start(esp_conn_p* conn, esp_conn_type_t type, const char* host, uint16_ ESP_MSG_VAR_REF(msg).msg.conn_start.cb_func = cb_func; ESP_MSG_VAR_REF(msg).msg.conn_start.arg = arg; - return espi_send_msg_to_producer_mbox(&ESP_MSG_VAR_REF(msg), espi_initiate_cmd, blocking, 30000); /* Send message t...
esp_http_client.h: Fix return type in declaration of esp_http_client_flush_response. Closes:
@@ -537,7 +537,7 @@ int esp_http_client_read_response(esp_http_client_handle_t client, char *buffer, * - ESP_FAIL If failed to read response * - ESP_ERR_INVALID_ARG If the client is NULL */ -int esp_http_client_flush_response(esp_http_client_handle_t client, int *len); +esp_err_t esp_http_client_flush_response(esp_http...
Fixed enum name for iblanking
@@ -59,7 +59,7 @@ GetPLOT3DReadOptions(void) rv->SetBool("Big Endian", true); rv->SetBool("Double Precision", false); - rv->SetEnum("IBlanking In File", 0); + rv->SetEnum("IBlanking", 0); vector<string> iBlankingOptions = {"Auto", "Always", "Never"}; rv->SetEnumStrings("IBlanking", iBlankingOptions); rv->SetBool("Use I...
Move PhNfPluginRegisterIcon typedef
@@ -155,16 +155,6 @@ HICON PhNfBitmapToIcon( _In_ HBITMAP Bitmap ); -struct _PH_NF_ICON *PhNfPluginRegisterIcon( - _In_ struct _PH_PLUGIN * Plugin, - _In_ ULONG SubId, - _In_ GUID Guid, - _In_opt_ PVOID Context, - _In_ PWSTR Text, - _In_ ULONG Flags, - _In_ struct _PH_NF_ICON_REGISTRATION_DATA *RegistrationData - ); - ...
Update: This example does not need so many inference step, also added some interesting questions showing inductive capabilities as well
<orangejuice --> [yellow]>. :@: //milk is white <milk --> [white]>. :@: -100 +15 //arriving at school, you see a wooden object (a door knob!) <{obj1} --> [wooden]>. :|: //on the door //the goal is to educate children <child --> [educated]>! :|: //expected: ^pick executed with args ({SELF} * {obj1}) -100 +15 //you are i...
Eliminate duplicated statements in re-parser.c JerryScript-DCO-1.0-Signed-off-by: Robert Sipka
@@ -215,14 +215,14 @@ re_parse_iterator (re_parser_ctx_t *parser_ctx_p, /**< RegExp parser context */ if (qmax != RE_ITERATOR_INFINITE) { re_token_p->qmin = qmax; - re_token_p->qmax = qmin; } else { re_token_p->qmin = qmin; - re_token_p->qmax = qmin; } + re_token_p->qmax = qmin; + break; } else
output: initialize match_regex conditionally The attribute `match_regex` does not exist if FLB_REGEX is turned off at compile time, so we need special care not to touch it in such case.
@@ -271,7 +271,9 @@ struct flb_output_instance *flb_output_new(struct flb_config *config, instance->data = data; instance->upstream = NULL; instance->match = NULL; +#ifdef FLB_HAVE_REGEX instance->match_regex = NULL; +#endif instance->retry_limit = 1; instance->host.name = NULL;
Fix again for
@@ -235,7 +235,9 @@ load_pnm(unsigned char /* in */ *p, } n = 0; if (maps == 0) { - n = *s++ == '0'; + n = *s == '0'; + if (*s != '\0') + s++; } else { while (isdigit(*s) && n >= 0) { n = n * 10 + (*s++ - '0');
envydis/falcon: add new v6 opcodes and sprs
@@ -73,6 +73,9 @@ static struct sreg sreg_sr[] = { { 0xa, "cauth", .fmask = F_CRYPT }, { 0xb, "xtargets" }, { 0xc, "tstatus", .fmask = F_FUC3P }, + { 0xd, "cauth1", .fmask = F_FUC6P | F_CRYPT }, + { 0xe, "xcbase1", .fmask = F_FUC6P }, + { 0xf, "xdbase1", .fmask = F_FUC6P }, { -1 }, }; static struct bitfield reg0_bf = {...
io-libs/hdf5: update version to v1.10.4
Summary: A general purpose library and file format for storing scientific data Name: %{pname}-%{compiler_family}%{PROJ_DELIM} -Version: 1.10.3 +Version: 1.10.4 Release: 1%{?dist} License: Hierarchical Data Format (HDF) Software Library and Utilities License Group: %{PROJ_NAME}/io-libs
power/rk3399: Fix the power sequence length passed to power_seq_run() BRANCH=none TEST=build scarlet
@@ -475,7 +475,7 @@ enum power_state power_handle_state(enum power_state state) HOST_SLEEP_EVENT_S3_WAKEABLE_SUSPEND); if (!usb_wake_enabled && power_seq_run(s0s3_usb_wake_power_seq, - ARRAY_SIZE(s0s3_power_seq))) + ARRAY_SIZE(s0s3_usb_wake_power_seq))) return POWER_S3S0; #endif @@ -501,7 +501,7 @@ enum power_state pow...
boot/mcuboot: Fix inclusion of more than one example app Even though the options existed, the second application would override the values, resulting in the missing first application on the final binary.
@@ -31,23 +31,27 @@ VPATH += :$(MCUBOOT_UNPACK)$(DELIM)src VPATH += :$(MCUBOOT_SRCDIR) ifneq ($(CONFIG_MCUBOOT_UPDATE_AGENT_EXAMPLE),) -MAINSRC = mcuboot_agent_main.c - -PROGNAME = mcuboot_agent -PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) -else ifneq ($(CONFIG_MCUBOOT_SLOT_CONFIRM_E...
Use unsigned conversion specifier for nlmsg_pid nlmsg_pid is __u32, so let's use %u instead of %d.
@@ -803,7 +803,7 @@ int bpf_attach_xdp(const char *dev_name, int progfd, uint32_t flags) { for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, len); nh = NLMSG_NEXT(nh, len)) { if (nh->nlmsg_pid != sa.nl_pid) { - fprintf(stderr, "bpf: Wrong pid %d, expected %d\n", + fprintf(stderr, "bpf: Wrong pid %u, expected %u\n", nh->nl...
Use builder method pattern to generate a key
@@ -236,6 +236,12 @@ class StorageKey(psa_storage.Key): def __init__(self, *, description: str, **kwargs) -> None: super().__init__(**kwargs) self.description = description #type: str +class StorageKeyBuilder: + def __init__(self) -> None: + pass + + def build(self, **kwargs) -> StorageKey: + return StorageKey(**kwargs...
mpi-families/openmpi: enable build against ucx/libfabric
# Base package name/config %define pname openmpi4 -%define with_openib 1 +%define with_openib 0 %ifarch aarch64 || ppc64le %define with_psm 0 %if 0%{?rhel} %define with_psm 0 %else -%define with_psm 1 +%define with_psm 0 %endif -%define with_psm2 1 +%define with_psm2 0 %endif %{!?with_lustre: %define with_lustre 0} %{!...
Replace misleading error message when loading PEM The error message "short header" when the end line of PEM data cannot be identified is misleading. Replace it with already existing "bad end line" error. Fixes
@@ -824,7 +824,7 @@ static int get_header_and_data(BIO *bp, BIO **header, BIO **data, char *name, flags_mask = ~0u; len = BIO_gets(bp, linebuf, LINESIZE); if (len <= 0) { - PEMerr(PEM_F_GET_HEADER_AND_DATA, PEM_R_SHORT_HEADER); + PEMerr(PEM_F_GET_HEADER_AND_DATA, PEM_R_BAD_END_LINE); goto err; }
tree@f7e376e finally fix that return and new twitter
@@ -470,8 +470,8 @@ extras = { "This page was made by Urbit. Feedback: ", a({ href: "mailto:urbit@urbit.org" }, "urbit@urbit.org"), " ", a({ - href: "https://twitter.com/urbit_" - }, "@urbit_") + href: "https://twitter.com/urbit" + }, "@urbit") ]) ]); }) @@ -2053,7 +2053,7 @@ Virtual = name("Virtual", function(arg) { }...
Simplify wording for degenerates
@@ -276,8 +276,8 @@ in a third, and no bias in the rest. As they are procedurally generated not all of the partitions are useful, in particular with the smaller block sizes. * Many partitions are duplicates. -* Many partitions are degenerate (an N partition hash results in a partition - assignment with some of the N co...
List and tuple convertor, use comma to separate when the length is greater than 3
@@ -2147,26 +2147,11 @@ PythonToBlocks.prototype.convertElements = function(key, values) { * ctx: expr_context_ty * */ - -// return with many blocks, not use for the time being - -/*PythonToBlocks.prototype.List = function(node) { - var elts = node.elts; - var ctx = node.ctx; - - return block("lists_create_with_noretur...
yanglint CHANGE check for creating output handler The list command in interactive mode.
@@ -77,9 +77,12 @@ cmd_list(struct ly_ctx **ctx, const char *cmdline) } } - ly_out_new_file(stdout, &out); + if (!ly_out_new_file(stdout, &out)) { print_list(out, *ctx, format); ly_out_free(out, NULL, 0); + } else { + YLMSG_E("Unable to print to the standard output.\n"); + } cleanup: free_cmdline(argv);
Fix emscripten compilation;
@@ -2,9 +2,7 @@ cmake_minimum_required(VERSION 3.0.0) project(lovr) # Setup -if(UNIX) - find_package(PkgConfig REQUIRED) -elseif(EMSCRIPTEN) +if(EMSCRIPTEN) set(CMAKE_EXECUTABLE_SUFFIX ".html") add_definitions(-O3) add_definitions(-s USE_ZLIB=1) @@ -14,6 +12,8 @@ elseif(EMSCRIPTEN) add_definitions(-s NO_EXIT_RUNTIME=1)...
Group name from Apache 2.2+ must be wsgi-group.
@@ -217,7 +217,7 @@ configuration would be used:: AuthBasicProvider dbm AuthDBMUserFile /usr/local/wsgi/accounts.dbm WSGIAuthGroupScript /usr/local/wsgi/scripts/auth.wsgi - Require group secret-agents + Require wsgi-group secret-agents Require valid-user The 'auth.wsgi' script would then need to contain a 'groups_for_u...
SOVERSION bump to version 2.0.10
@@ -34,7 +34,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 2) set(SYSREPO_MINOR_SOVERSION 0) -set(SYSREPO_MICRO_SOVERSION 9) +set(SYSREPO_MICRO_SO...
nimble/util: Use VS HCI command for reading static random address Use dedicated VS command for reading static address instead of calling controller code from host. This is required to properly support multi-core MCUs where host and controller runs on separate cores.
#include "host/ble_hs.h" #include "host/util/util.h" - -#if MYNEWT_VAL(BLE_CONTROLLER) -#include "controller/ble_hw.h" -#endif +#include "../src/ble_hs_hci_priv.h" static int ble_hs_util_load_rand_addr(ble_addr_t *addr) { - /* XXX: It is unfortunate that the function to retrieve the random address - * is in the control...
refactor InsertRndPrintable
@@ -868,8 +868,7 @@ static void mangle_InsertRndPrintable(run_t* run) { mangle_Inflate(run, off, len); mangle_Move(run, off, off + len, run->dynamicFileSz); - util_rndBuf(&run->dynamicFile[off], len); - util_turnToPrintable(&run->dynamicFile[off], len); + util_rndBufPrintable(&run->dynamicFile[off], len); } static void...
Correct mistyping.
@@ -76,7 +76,7 @@ Peripherals are u-blox modules which accept commands (e.g. AT-commands) over a s \* Through the u-blox [CellLocate](https://www.u-blox.com/en/product/celllocate) mobile network-based location service. -# Strucure of `ubxlib` +# Structure of `ubxlib` The APIs for each type of u-blox module can be found...
opae.admin: add rpm release CMake variable
@@ -27,7 +27,7 @@ cmake_minimum_required (VERSION 2.8) # projectname is the same as the main-executable project(opae.admin) - +set(OPAE_ADMIN_RPM_RELEASE 1) set (ADMIN_STAGE_DIR ${CMAKE_CURRENT_BINARY_DIR}/stage) find_program (RPM_BUILD rpmbuild @@ -51,7 +51,7 @@ add_custom_target(opae.admin.wheel if (RPM_BUILD) add_cu...
Fix error when first value in pu depth list is omitted
@@ -327,8 +327,8 @@ static int parse_pu_depth_list( const char *array, int32_t *depths_min, int32_t int retval = 1; //Reset depths in case multiple pu depth parameters are given - memset( depths_max, -1, size * sizeof( *depths_max ) ); - memset( depths_min, -1, size * sizeof( *depths_min ) ); + if(size > 1) memset( dep...
[bsp][stm32]modify stm32l4xx template,preventing conflict with the linker files
* Change Logs: * Date Author Notes * 2018-11-5 SummerGift first version + * 2019-04-24 yangjie Use the end of ZI as HEAP_BEGIN */ #ifndef __BOARD_H__ @@ -28,7 +29,17 @@ extern "C" { #define STM32_SRAM1_START (0x20000000) #define STM32_SRAM1_END (STM32_SRAM1_START + STM32_SRAM1_SIZE * 1024) -#define HEAP_BEGIN STM32_SRA...
Use computed global transforms instead of local;
@@ -10,7 +10,7 @@ static void renderNode(Model* model, int nodeIndex) { bool useMaterials = currentMaterial->isDefault; lovrGraphicsPush(); - lovrGraphicsMatrixTransform(MATRIX_MODEL, model->localNodeTransforms + 16 * nodeIndex); + lovrGraphicsMatrixTransform(MATRIX_MODEL, model->globalNodeTransforms + 16 * nodeIndex);...
[lv_list] Add list layout prototypes
@@ -78,6 +78,13 @@ enum { }; typedef uint8_t lv_list_style_t; +/** List layouts. **/ +enum { + LV_LIST_LAYOUT_HOR, + LV_LIST_LAYOUT_VER +} +typedef uint8_t lv_list_layout_t; + /********************** * GLOBAL PROTOTYPES **********************/ @@ -189,6 +196,13 @@ static inline void lv_list_set_anim_time(lv_obj_t * lis...
kernel/task/prctl : Add not supported error message when disabled messaging configuration If CONFIG_MESSAGING_IPC is not enabled, error message will be printed through sdbg, and errno will be set to ENOSYS.
@@ -165,6 +165,11 @@ int prctl(int option, ...) } } break; +#else + sdbg("Option not enabled: %d\n", option); + err = ENOSYS; + goto errout; +#endif #ifdef CONFIG_MESSAGING_IPC case PR_MSG_SAVE: { @@ -209,13 +214,17 @@ int prctl(int option, ...) ret = messaging_remove_list(port_name); return ret; } -#endif -#else - sdb...
Fix pg_basebackup -E option. Server side should exclude sub directory even parent directory wanted.
@@ -877,7 +877,7 @@ sendDir(char *path, int basepathlen, bool sizeonly, List *tablespaces, } } if (!skip_this_dir) - size += sendDir(pathbuf, basepathlen, sizeonly, tablespaces, NIL); + size += sendDir(pathbuf, basepathlen, sizeonly, tablespaces, exclude); } else if (S_ISREG(statbuf.st_mode)) {
Component/bt: fix bt load boned in smp
@@ -429,8 +429,8 @@ void btc_dm_sec_cb_handler(btc_msg_t *msg) switch (msg->act) { case BTA_DM_ENABLE_EVT: { btc_clear_services_mask(); - btc_storage_load_bonded_devices(); #if (SMP_INCLUDED == TRUE) + btc_storage_load_bonded_devices(); //load the bonding device to the btm layer btc_storage_load_bonded_ble_devices(); #...
Simplify plugin://
@@ -192,9 +192,9 @@ typedef struct clap_preset_discovery_location { // - file:/// for pointing to a file or directory; directories are scanned recursively // eg: file:///home/abique/.u-he/Diva/presets/ (on Linux) // eg: file:///C:/Users/abique/Documents/u-he/Diva.data/presets/ (on Windows) - // - plugin://<plugin-abi>:...
add the identifier to error messages in httpclient.c
@@ -161,7 +161,7 @@ static void on_error(h2o_httpclient_ctx_t *ctx, h2o_mem_pool_t *pool, const char va_start(args, fmt); int errlen = vsnprintf(errbuf, sizeof(errbuf), fmt, args); va_end(args); - fprintf(stderr, "%.*s\n", errlen, errbuf); + fprintf(stderr, "[httpclient.c] %.*s\n", errlen, errbuf); /* defer using zero ...
protect against multiple io from pipe
@@ -291,6 +291,13 @@ complex float* create_cfl(const char* name, int D, const long dimensions[D]) ; + static bool once_w = false; + + if (once_w) + error("writing two inputs to pipe is not supported\n"); + + once_w = true; + const char* filename = tempnam(NULL, "bart-"); debug_printf(DP_DEBUG1, "Temp file for pipe: %s\...
docs/conf.py: Use https for intersphinx link to docs.python.org. To get rid of warning when building the docs saying there's a redirect from http: to https:.
@@ -298,4 +298,4 @@ texinfo_documents = [ # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'python': ('http://docs.python.org/3.5', None)} +intersphinx_mapping = {'python': ('https://docs.python.org/3.5', None)}
build UPDATE abi-check revision
@@ -354,7 +354,7 @@ gen_doc("${doxy_files}" ${SYSREPO_VERSION} ${SYSREPO_DESC} ${project_logo}) # generate API/ABI report if ("${BUILD_TYPE_UPPER}" STREQUAL "ABICHECK") - lib_abi_check(sysrepo ${SYSREPO_SOVERSION_FULL} 8ad68574d657a5d0ba34a644286a5bd037bf3888) + lib_abi_check(sysrepo ${SYSREPO_SOVERSION_FULL} a1b064b90...
arch/arm/src/amebad: Modify amebad serial driver to get UART interrupt. This patch modifies the up_lowgetc() API to get UART interrupt when a character is received in the RX buffer.
@@ -738,10 +738,12 @@ void up_lowputc(char ch) * int value, -1 if error, 0~255 if byte successfully read * ****************************************************************************/ -char up_lowgetc(void) +int up_lowgetc(void) { uint8_t rxd; + LOGUART_SetIMR(0); rxd = LOGUART_GetChar(_TRUE); + LOGUART_SetIMR(1); ret...
dts-battery: Expand descriptions to explain use Expand the manuf_name and device_name so that it is clear what their use and origin is for. TEST=zmake build nissa BRANCH=none
@@ -9,10 +9,16 @@ compatible: "battery-fuel-gauge" properties: manuf_name: - description: Manufacturer name + description: | + String returned by the smart battery attribute + ManufacturerName (0x20), which is used to help + uniquely identify the type of battery. type: string device_name: - description: Model/Device na...
Update tasks.json to add docs commands
"args": [], "problemMatcher": [], }, + { + "label": "Docs: Install python plugins from requirements.txt file", + "type": "shell", + "command": "python -m pip install -r requirements.txt", + "options": { + "cwd": "${workspaceFolder}/docs" + }, + "problemMatcher": [] + }, + { + "label": "Docs: Generate html", + "type": "...
story: add new parsers to lib
"{(trip body)}" "\0a" == +:: +:: Parsers +:: +++ parse-commit + ;~ sfix + ;~ pfix (jest 'commit: ') + (cook @uv ;~(pfix (jest '0v') viz:ag)) + == + :: + (just '\0a') + == +:: +++ parse-title + ;~ sfix + (cook crip (star prn)) + (jest '\0a\0a') + == +:: +++ parse-body-single + %- star + ;~ less + ;~(pose (jest '|||\0a')...
host/mesh: pb_gatt: update delayable work Switch to the new API. Adds a link check to the protocol timeout to ensure the link is still active. This is port of
@@ -36,7 +36,8 @@ static void reset_state(void) { link.conn_handle = BLE_HS_CONN_HANDLE_NONE; - k_work_cancel_delayable(&link.prot_timer); + /* If this fails, the protocol timeout handler will exit early. */ + (void)k_work_cancel_delayable(&link.prot_timer); link.rx.buf = bt_mesh_proxy_get_buf(); } @@ -54,6 +55,11 @@ s...
in progress: broken
@@ -64,9 +64,14 @@ public: return m_pSsl; } + void registerNetRequestBuilder( const string& name, INetRequestBulder& builder ); + void setDefaultNetRequestBuilder( const string& name ); + private: CMutex m_sslMutex; common::CAutoPtr<net::ISSL> m_pSsl; + + map<const string&, INetRequestBuilder& builder>; }; } // namespa...
[snitch] Add None value to DSPU enum types for muxes
@@ -208,12 +208,12 @@ module dspu #( // Internal control signals logic cmp_signed; // comparator operation is signed enum logic [1:0] { - Reg, Zero, ClipBound + None, Reg, Zero, ClipBound } cmp_op_b_sel; // selection of shared comparator operands logic clip_unsigned; // clip operation has "0" as lower bound logic clip_...
Correct path in travis yml
@@ -102,7 +102,8 @@ install: - export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/6_1-2017q1/gcc-arm-none-eabi-6-2017-q1-update-linux.tar.bz2?product=GNU%20ARM%20Embedded%20Toolchain,64-bit,,Linux,6-2017-q1-update - if [ ! -e $GCC_DIR/bin/arm-none-eabi-g++ ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar...
session BUGFIX explicit conversion required
@@ -71,13 +71,8 @@ nc_difftimespec(struct timespec *ts1, struct timespec *ts2) { int64_t nsec_diff = 0; - if (ts1->tv_nsec > ts2->tv_nsec) { - ts2->tv_nsec += 1000000000L; - --ts2->tv_sec; - } - - nsec_diff += (ts2->tv_sec - ts1->tv_sec) * 1000000000L; - nsec_diff += ts2->tv_nsec - ts1->tv_nsec; + nsec_diff += (((int64...
detect fake anonce/snonce
@@ -88,6 +88,7 @@ bool filtermacflag; bool fcsflag; bool wantrawflag; bool gpxflag; +bool fakeflag; unsigned long long int maxtvdiff; unsigned long long int maxrcdiff; @@ -300,6 +301,7 @@ hexmodeflag = false; wantrawflag = false; filtermacflag = false; gpxflag = false; +fakeflag = true; maxtvdiff = MAX_TV_DIFF; maxrcdi...
Cirrus: Add CI badge to ReadMe
[![Release](https://img.shields.io/github/release/ElektraInitiative/libelektra.svg)](https://github.com/ElektraInitiative/libelektra/releases/latest) [![Travis Build Status](https://travis-ci.org/ElektraInitiative/libelektra.svg?branch=master)](https://travis-ci.org/ElektraInitiative/libelektra) +[![Cirrus Build Status...
test-suite: make ucx tests optional
@@ -420,7 +420,7 @@ AM_CONDITIONAL(TAU_ENABLED,test "x$enable_tau" = "xyes" ) # UCX AC_ARG_ENABLE([ucx], [AS_HELP_STRING([--enable-ucx],[Enable ucx tests (default=yes)])],[], - [AX_OPTION_DEFAULT(type=long,enable_ucx,yes)]) + [AX_OPTION_DEFAULT(type=long,enable_ucx,no)]) AM_CONDITIONAL(UCX_ENABLED,test "x$enable_ucx" =...
rune/libenclave/skeleton: Declare the PAL PAI version in README
@@ -65,6 +65,8 @@ Runtimes: rune runc ``` ## Run skeleton container image with rune +Note that replace `${SKELETON_PAL_VERSION}` with the actual version number. Currently skeleton supports PAL API v1 and v2. + ```shell docker run -it --rm --runtime=rune \ -e ENCLAVE_TYPE=intelSgx \
[core] avoid select() FD_ISSET repeat on active fds
@@ -884,35 +884,10 @@ fdevent_select_event_set (fdevents *ev, fdnode *fdn, int events) return 0; } -static int -fdevent_select_event_get_revent (const fdevents *ev, int ndx) -{ - int revents = 0; - if (FD_ISSET(ndx, &ev->select_read)) revents |= FDEVENT_IN; - if (FD_ISSET(ndx, &ev->select_write)) revents |= FDEVENT_OUT...
remove GPS time synchronization from debian-wspr.sh
@@ -124,22 +124,10 @@ update-locale LANG=en_US.UTF-8 echo $timezone > etc/timezone dpkg-reconfigure --frontend=noninteractive tzdata -apt-get -y install openssh-server ca-certificates fake-hwclock \ +apt-get -y install openssh-server ca-certificates ntp ntpdate fake-hwclock \ usbutils psmisc lsof parted curl vim wpasup...
Update sedem image r6209078 by Fix test r6215954 by Sedem: Add release candidates table in release info r6216301 by Step and start fix
}, "sedem": { "formula": { - "sandbox_id": 587809932, + "sandbox_id": 588690229, "match": "SEDEM archive" }, "executable": {
remove masked as it is capture by if statement below it
@@ -41,7 +41,7 @@ int main(){ fflush(stdout); #pragma omp parallel num_threads(10) { - #pragma omp masked // teams distribute + // #pragma omp masked // teams distribute if (omp_get_thread_num() == 0) { printf("Thread 0 is going to launch a kernel\n"); fflush(stdout);
Update Travis CI link in README.md
-# SDL2 binding for Go [![Build Status](https://travis-ci.org/veandco/go-sdl2.svg?branch=master)](https://travis-ci.org/veandco/go-sdl2) [![Go Report Card](https://goreportcard.com/badge/github.com/veandco/go-sdl2)](https://goreportcard.com/report/github.com/veandco/go-sdl2) [![Reviewed by Hound](https://img.shields.io...
Update ethernetif.c if LWIP_NETIF_HOSTNAME enable, the length is 'sizeof(struct netif)+ LWIP_HOSTNAME_LEN', not only equal to 'sizeof(struct netif)'.
@@ -503,7 +503,11 @@ rt_err_t eth_device_init_with_flag(struct eth_device *dev, const char *name, rt_ rt_kprintf("malloc netif failed\n"); return -RT_ERROR; } +#if LWIP_NETIF_HOSTNAME + rt_memset(netif, 0, sizeof(struct netif)+ LWIP_HOSTNAME_LEN); +#else rt_memset(netif, 0, sizeof(struct netif)); +#endif /* set netif *...
netdriver: no need to start namespaces from the preinit_array
@@ -108,13 +108,6 @@ static void netDriver_initNsIfNeeded(void) { (int)getpid()); } -/* - * Initialize namespaces before e.g. ASAN, which can spawn threads, what can use - * unshare(CLONE_NEWUSER|...) to fail - */ -__attribute__((section(".preinit_array"), used)) void (*__local_libhfnetdriver_preinit)( - void) = netDri...
remove duplicate codes in ExecSetParamPlan Just remove duplicate code in ExecSetParamPlan(), it repeated with line 1158.
@@ -1166,12 +1166,6 @@ PG_TRY(); astate = initArrayResultAny(subplan->firstColType, CurrentMemoryContext, true); - /* - * Enforce forward scan direction regardless of caller. It's hard but not - * impossible to get here in backward scan, so make it work anyway. - */ - estate->es_direction = ForwardScanDirection; - /* *...
Turn the l_likely and l_unlikely into public macros I should ask Roberto about renaming them to luai_ everywhere.
#endif - -#if defined(LUA_CORE) || defined(LUA_LIB) /* shorter names for Lua's own use */ #define l_likely(x) luai_likely(x) #define l_unlikely(x) luai_unlikely(x) -#endif - /* }================================================================== */
voxel: undefine CONFIG_CHIP_INIT_ROM_REGION Supports NPCX797FC dose not leave unused flash space. BRANCH=master TEST=make buildall
#undef NPCX7_PWM1_SEL #define NPCX7_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */ -#ifdef BOARD_VOXEL_NPCX797FC /* * The RAM and flash size combination on the the NPCX797FC does not leave * any unused flash space that can be used to store the .init_rom section. */ #undef CONFIG_CHIP_INIT_ROM_REGION -#endif #define CONF...
interface: unnecessary const
@@ -56,8 +56,7 @@ class GcpManager { this.#api.gcp.refreshToken() .then( (expiresIn: number) => { - const interval = this.refreshInterval(expiresIn); - this.refreshAfter(interval); + this.refreshAfter(this.refreshInterval(expiresIn)); }) .catch( ({reason}) => {
I made some updates to the open build script.
@@ -580,7 +580,7 @@ cd $dist/src ver=\`cat VERSION\` ver2=\`echo \$ver | tr "." "_"\` export PATH=\$PATH:/usr/bin/X11 -/usr/workspace/wsa/visit/visit/thirdparty_shared/2.13.0/cmake/3.8.1/linux-x86_64_gcc-4.8/bin/cmake . -DCMAKE_BUILD_TYPE:STRING=Release -DVISIT_INSTALL_THIRD_PARTY:BOOL=ON -DVISIT_PARADIS:BOOL=ON >> ../...
upload travis builds to server
@@ -8,6 +8,8 @@ matrix: include: - os: osx osx_image: xcode9.3 + env: + - OS_FOLDER=mac - os: linux addons: @@ -15,12 +17,10 @@ matrix: packages: - libgtk-3-dev - libasound2-dev + env: + - OS_FOLDER=linux -deploy: - provider: s3 - region: eu-central-1 - access_key_id: ${ACCESS_KEY_ID} - secret_access_key: ${SECRET_ACCE...
examples/binary_update : refactoring on binary_update_main 1. It did not do unnecessary initialization. 2 It deleted the unnecessary comparison.
#define APP1_NAME "micom" #define APP2_NAME "wifi" -#define EXEC_NORMAL 0 +#define EXEC_FINITE 0 #define EXEC_INFINITE 1 static volatile bool is_running; @@ -163,9 +163,9 @@ int binary_update_main(int argc, char *argv[]) { int repetition_num = 1; int option; - char *cmd_arg = NULL; - char *cnt_arg = NULL; - int executi...
changes issuer indices to non nerd mode
@@ -266,7 +266,7 @@ void promptAndSetIssuer() { fav = provider_getIssuer(*provider); prompting: for(i=0; i<size; i++) - printf("[%d] %s\n", i, providers[i]); + printf("[%d] %s\n", i+1, providers[i]); // printed indices starts at 1 for non nerds char* input = prompt("Issuer [%s]: ", fav); char* iss = NULL; if(!isValid(i...
relay: add some casts to avoid formatter warnings on some platforms
@@ -516,7 +516,7 @@ main(int argc, char * const argv[]) } if (len != sizeof(sockbufsize)) { fprintf(stderr, "getsockopt returned unexpected size: %u, " - "expected %lu\n", len, sizeof(sockbufsize)); + "expected %zu\n", len, sizeof(sockbufsize)); exit(1); } if (sockbufsize > (unsigned int)val) @@ -700,7 +700,7 @@ main(i...
OPAL_PCI_SET_POWER_STATE: fix locking in error paths Otherwise we could exit OPAL holding locks, potentially leading to all sorts of problems later on. Cc: stable # 5.3+ Fixes:
@@ -785,8 +785,10 @@ static int64_t opal_pci_set_power_state(uint64_t async_token, switch (*state) { case OPAL_PCI_SLOT_POWER_OFF: if (!slot->ops.prepare_link_change || - !slot->ops.set_power_state) + !slot->ops.set_power_state) { + phb_unlock(phb); return OPAL_UNSUPPORTED; + } slot->async_token = async_token; slot->op...
[CUDA] Don't rely on presence of opencl.kernels metadata Use target kernel name when generating nvvm.annotations metadata.
@@ -53,7 +53,7 @@ namespace llvm } // TODO: Should these be proper passes? -void pocl_add_kernel_annotations(llvm::Module *module); +void pocl_add_kernel_annotations(llvm::Module *module, const char *kernel); void pocl_cuda_fix_printf(llvm::Module *module); void pocl_cuda_link_libdevice(llvm::Module *module, const char...
chat: DMs repositioned below grouped chats
@@ -68,9 +68,6 @@ export class Sidebar extends Component { .map((each, i) => { let channels = groupedChannels[each] || []; if (channels.length === 0) return; - if (groupedChannels["/~/"] && groupedChannels["/~/"].length !== 0) { - i = i + 1; - } return( <GroupItem key={i} @@ -86,7 +83,7 @@ export class Sidebar extends ...