message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
radio.h: Added RADIO_PARAM_SHR_SEARCH | @@ -170,6 +170,9 @@ enum {
* it needs to be used with radio.get_object()/set_object(). */
RADIO_PARAM_LAST_PACKET_TIMESTAMP,
+ /* For enabling and disabling the SHR search */
+ RADIO_PARAM_SHR_SEARCH,
+
/* Constants (read only) */
/* The lowest radio channel. */
|
Added windows platform support to premake
* Added windows platform support to premake
Win32 and Win64 configuration support for visual studio solutions
* Update premake5.lua
Fixed platform support for linux, made x64 default
* Update premake5.lua
Fix typo | -- A solution contains projects, and defines the available configurations
solution "brotli"
configurations { "Release", "Debug" }
+platforms { "x64", "x86" }
targetdir "bin"
location "buildfiles"
flags "RelativeLinks"
@@ -13,6 +14,12 @@ filter "configurations:Release"
filter "configurations:Debug"
flags { "Symbols" }
+... |
Don't set number of ids | @@ -901,7 +901,6 @@ vtkPLOT3DReader::ReadGrid(FILE *xyzFp)
ghostZones->SetNumberOfValues(output->GetNumberOfCells());
ghostZones->SetName("avtGhostZones");
vtkIdList* ids = vtkIdList::New();
- ids->SetNumberOfIds(8);
vtkIdType numCells = output->GetNumberOfCells();
for (vtkIdType cellId = 0; cellId < numCells; cellId++... |
Added support for cmy and rgbw pdftoraster conversions | @@ -1591,6 +1591,8 @@ static void writePageImage(cups_raster_t *raster, poppler::document *doc1,
case CUPS_CSPACE_ADOBERGB:
case CUPS_CSPACE_CMYK:
case CUPS_CSPACE_SRGB:
+ case CUPS_CSPACE_CMY:
+ case CUPS_CSPACE_RGBW:
default:
im = pr.render_page(current_page,header.HWResolution[0],header.HWResolution[1],0,0,header.cu... |
Configurations/unix-Makefile.tmpl: harmonize with no-engine. | @@ -369,7 +369,7 @@ test: tests
RESULT_D=test-runs \
PERL="$(PERL)" \
EXE_EXT={- $exeext -} \
- OPENSSL_ENGINES=`cd ../$(BLDDIR)/engines; pwd` \
+ OPENSSL_ENGINES=`cd ../$(BLDDIR)/engines 2>/dev/null && pwd` \
OPENSSL_DEBUG_MEMORY=on \
$(PERL) ../$(SRCDIR)/test/run_tests.pl $(TESTS) )
@ : {- if ($disabled{tests}) { out... |
Optimize imageviewer xcb_clear_area calls | @@ -490,11 +490,35 @@ load(xcb_connection_t* c, xcb_window_t w, const char* filename) {
return true;
}
+bool //
+intersects(int32_t old_x,
+ int32_t old_y,
+ int32_t width,
+ int32_t height,
+ int32_t new_x,
+ int32_t new_y) {
+ if ((width <= 0) || (height <= 0)) {
+ return false;
+ } else if ((old_x > new_x) && ((old_... |
add quickmenu | @@ -122,6 +122,7 @@ static const char *instantmenucmd[] = {"instantmenu_run", NULL};
static const char *roficmd[] = {"rofi", "-show", "run", NULL};
static const char *instantmenustcmd[] = {"instantmenu_run_st", NULL};
static const char *termcmd[] = {"st", NULL};
+static const char *quickmenucmd[] = {"quickmenu", NULL};... |
mdns example: Remove a warned unused constant | #define EXAMPLE_MDNS_INSTANCE CONFIG_MDNS_INSTANCE
-static const char c_config_hostname[] = CONFIG_MDNS_HOSTNAME;
#define EXAMPLE_BUTTON_GPIO 0
static const char *TAG = "mdns-test";
|
SOVERSION bump to version 2.21.10 | @@ -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 21)
-set(LIBYANG_MICRO_SOVERSION 9)
+set(LIBYANG_MICRO_SOVERSION 10)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_... |
README.md: Use version 2.05.26 | @@ -34,11 +34,11 @@ https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices
### Install deCONZ
1. Download deCONZ package
- wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.25-qt5.deb
+ wget http://www.dresden-elektronik.de/rpi/deconz/beta/deconz-2.05.26-qt5.deb
2. Install deCON... |
m25p16: re-init spi before transfer | #define JEDEC_ID_CYPRESS_S25FL128L 0x016018
#define JEDEC_ID_BERGMICRO_W25Q32 0xE04016
-void m25p16_init() {
- spi_init_pins(M25P16_SPI_PORT, M25P16_NSS_PIN);
-
- spi_enable_rcc(M25P16_SPI_PORT);
+static void m25p16_reinit() {
+ LL_SPI_Disable(SPI_PORT.channel);
LL_SPI_DeInit(SPI_PORT.channel);
LL_SPI_InitTypeDef SPI_I... |
OcDevicePathLib: Fix possible suffix underflow; return OcFileDevicePathFullNameLen to strlen-style | @@ -1075,7 +1075,7 @@ OcFileDevicePathFullNameLen (
DevicePath = NextDevicePathNode (DevicePath);
} while (!IsDevicePathEnd (DevicePath));
- return PathLength;
+ return PathLength - 1;
}
/**
@@ -1093,7 +1093,15 @@ OcFileDevicePathFullNameSize (
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath
)
{
- return OcFileDevicePath... |
test/mag_cal.c: Format with clang-format
BRANCH=none
TEST=none | * the high values and [-5,5] (+- 1.53 uT) for the low values.
*/
static intv3_t samples[] = {
- { -522, 5, -5 },
- { -528, -3, 1 },
- { -531, -2, 0 },
- { -525, -1, 3 },
+ { -522, 5, -5 }, { -528, -3, 1 }, { -531, -2, 0 }, { -525, -1, 3 },
- { 527, 3, -2 },
- { 523, -5, 1 },
- { 520, -3, 2 },
- { 522, 0, -4 },
+ { 527,... |
Changelog note for PR
Merge PR Fix typo in unbound.service.in, by glitsj16. | +24 February 2020: George
+ - Merge PR #166: Fix typo in unbound.service.in, by glitsj16.
+
20 February 2020: Wouter
- Updated contrib/unbound_smf23.tar.gz with Solaris SMF service for
Unbound from Yuri Voinov.
|
Add missing description for focus_on_window_activation command in docs. | @@ -536,6 +536,13 @@ The default colors are:
set to _always_, the window under the cursor will always be focused, even
after switching between workspaces.
+*focus_on_window_activation* smart|urgent|focus|none
+ This option determines what to do when an xwayland client requests
+ window activation. If set to _urgent_, t... |
Minor Python3 support improvements
Don't let PYTHON2 and PYTHON3 be both set
Steer to proper include in PYTHON3_ADDINCL | @@ -1774,6 +1774,7 @@ macro NO_PYTHON_INCLUDES() {
macro PYTHON_ADDINCL() {
SET(MODULE_TAG PY2)
SET(PYTHON2 yes)
+ SET(PYTHON3 no)
when ($USE_ARCADIA_PYTHON == "yes") {
ADDINCL+=contrib/libs/python/Include
}
@@ -1798,8 +1799,10 @@ macro PYTHON_ADDINCL() {
macro PYTHON3_ADDINCL() {
SET(MODULE_TAG PY3)
SET(PYTHON3 yes)
+... |
RTOS2: Updated __NO_RETURN definition in cmsis_os2.h | #if defined(__CC_ARM)
#define __NO_RETURN __declspec(noreturn)
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
-#define __NO_RETURN __attribute__((noreturn))
+#define __NO_RETURN __attribute__((__noreturn__))
#elif defined(__GNUC__)
-#define __NO_RETURN __attribute__((noreturn))
+#define __NO_RETURN __at... |
[core] handle ENOSPC with pwritev()
handle ENOSPC with pwritev() and fallback to next item in
server.upload-dirs list
x-ref:
"File upload regression with --disable-lfs" | @@ -1011,6 +1011,8 @@ static ssize_t chunkqueue_append_cqmem_to_tempfile(chunkqueue * const restrict d
chunkqueue_mark_written(dest, dlen);
}
}
+ else if (chunkqueue_append_tempfile_err(dest, errh, c))
+ wr = 0; /*(to trigger continue/retry in caller rather than error)*/
return wr;
}
|
virtio: fix the missing unlock
Type: fix | @@ -31,7 +31,7 @@ virtio_pre_input_inline (vlib_main_t *vm, vnet_virtio_vring_t *txq_vring,
if (clib_spinlock_trylock (&txq_vring->lockp))
{
if (virtio_txq_is_scheduled (txq_vring))
- return 0;
+ goto unlock;
if (packet_coalesce)
vnet_gro_flow_table_schedule_node_on_dispatcher (
vm, txq, txq_vring->flow_table);
@@ -39,... |
publish: pass invites as prop correctly
Due to a change in a local variable named 'props' we overwrote the only
thing that used the props variable to pass itself to a child -- invites.
This commit deconstructs 'invites' alongside other properties from
the global store. | @@ -65,7 +65,7 @@ export default class PublishApp extends React.Component {
this.unreadTotal = unreadTotal;
}
- const { api, groups, sidebarShown } = props;
+ const { api, groups, sidebarShown, invites } = props;
return (
<Switch>
@@ -77,7 +77,7 @@ export default class PublishApp extends React.Component {
active={'side... |
Fix doc nits | @@ -56,7 +56,7 @@ SSL_CTX_set_client_cert_cb() if no certificate is provided at initialization.
SSL_verify_client_post_handshake() causes a CertificateRequest message to be
sent by a server on the given B<ssl> connection. The SSL_VERIFY_PEER flag must
-be set, the SSL_VERIFY_POST_HANDSHAKE flag is optional.
+be set; th... |
Fix no-engine | @@ -44,7 +44,8 @@ static int load_common(const OSSL_PARAM params[], const char **propquery,
*engine = NULL;
/* TODO legacy stuff, to be removed */
-#ifndef FIPS_MODE /* Inside the FIPS module, we don't support legacy ciphers */
+ /* Inside the FIPS module, we don't support legacy ciphers */
+#if !defined(FIPS_MODE) && ... |
Fix sandbox link (whoops). | @@ -65,4 +65,4 @@ Lily is a very young language and the community is still growing.
* [Reference](https://Fascinatedbox.github.com/lily/core/module.core.html)
-* [Try it in your browser](https://FascinatedBox.github.com/lily-site/sandbox.html)
+* [Try it in your browser](http://fascinatedbox.github.io/lily/intro-sandbo... |
{AH} update htslib/samtools conda deps | @@ -38,7 +38,7 @@ conda config --add channels bioconda
# pin versions, so that tests do not fail when pysam/htslib out of step
# add htslib dependencies
-conda install -y "samtools=1.6" "bcftools=1.6" "htslib=1.6" xz curl bzip2
+conda install -y "samtools=1.7" "bcftools=1.6" "htslib=1.7" xz curl bzip2
# Need to make C ... |
Exclude more build files from rsync between tests.
Files (especially build.auto.h) were being removed and forcing a full build between separate invocations of test.pl.
This affected ad-hoc testing at the command-line, not a full test run in CI. | @@ -214,7 +214,9 @@ sub run
{
executeTest(
'rsync -rt --delete --exclude=*.o --exclude=test.c --exclude=test.gcno --exclude=LibC.h --exclude=xs' .
- " --exclude=test --exclude=buildflags --exclude=testflags --exclude=harnessflags" .
+ ' --exclude=test --exclude=buildflags --exclude=testflags --exclude=harnessflags' .
+... |
MIT license, 2011 - 2020. | -Copyright (c) 2011-2019 Jesse Adkins (FascinatedBox)
+Copyright (c) 2011-2020 Jesse Adkins (FascinatedBox)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li... |
kdb mount: make more clear that it is persistent
closes | ## DESCRIPTION
-This command allows a user to mount a new _backend_.
-The idea of mounting is explained [in elektra-mounting(7)](elektra-mounting.md).
-
+This command allows a user to persistently mount a new _backend_.
Mounting in Elektra allows the user to mount a file into the current key database like a user may mo... |
[d3d12on7] Refactor backbuffer indexing and handle resizes
Instead of counting Present() calls, do a reverse lookup in the known backbuffer list to accurately determine the buffer index
If the lookup failed, assume the window was resized and do a delayed D3D12 reinitialize with the new buffers after 3 have been found | @@ -159,12 +159,28 @@ HRESULT Overlay::PresentD3D12Downlevel(ID3D12CommandQueueDownlevel* pCommandQueu
{
auto& overlay = Get();
- // On Windows 7 there is no swap chain to query the current backbuffer index, so instead we simply count to 3 and wrap around.
- // Increment the buffer index here even if the overlay is not... |
engine: add support for aws customsized error reporting logger | #include <fluent-bit/stream_processor/flb_sp.h>
#endif
+#ifdef FLB_HAVE_AWS_ERROR_REPORTER
+#include <fluent-bit/aws/flb_aws_error_reporter.h>
+
+extern struct flb_aws_error_reporter *error_reporter;
+#endif
+
FLB_TLS_DEFINE(struct mk_event_loop, flb_engine_evl);
@@ -704,6 +710,16 @@ int flb_engine_start(struct flb_con... |
added UPDATE_INTERVAL | @@ -15,6 +15,8 @@ FILENAME = "random-joke.jpg"
JOKE_IDS = "https://pimoroni.github.io/feed2image/jokeapi-ids.txt"
JOKE_IMG = "https://pimoroni.github.io/feed2image/jokeapi-{}-{}x{}.jpg"
+UPDATE_INTERVAL = 60
+
gc.collect() # Claw back some RAM!
|
Bump musl cache version used in `build.yml` | @@ -269,7 +269,7 @@ jobs:
# Cache the musl build. Use a key based on a hash of all the files
# used in the build.
- name: Setup musl Cache
- uses: actions/cache@v2
+ uses: actions/cache@v3.0.2
with:
path: contrib/build/musl
key: ${{ runner.os }}-${{ steps.env.outputs.arch }}-musl-${{ hashFiles('contrib/Makefile', 'cont... |
examples/embedding: Fix reference to freed memory, lexer src name.
This issue was brought up by BramPeters in the forum: | @@ -38,9 +38,10 @@ static char heap[16384];
mp_obj_t execute_from_str(const char *str) {
nlr_buf_t nlr;
if (nlr_push(&nlr) == 0) {
- mp_lexer_t *lex = mp_lexer_new_from_str_len(0/*MP_QSTR_*/, str, strlen(str), false);
+ qstr src_name = 0/*MP_QSTR_*/;
+ mp_lexer_t *lex = mp_lexer_new_from_str_len(src_name, str, strlen(s... |
options/ansi: fix ignored * specifiers in scanf | @@ -379,14 +379,15 @@ static int do_scanf(H &handler, const char *fmt, __gnuc_va_list args) {
/* TODO: dest = get_arg_at_pos(args, *fmt -'0'); */
fmt += 3;
} else {
+ if (fmt[1] != '*') {
dest = va_arg(args, void*);
+ }
fmt++;
}
int width = 0;
if (*fmt == '*') {
fmt++;
- continue;
} else if (*fmt == '\'') {
/* TODO: nu... |
test-ipmi-hiomap: Add event-before-read
Cc: stable | @@ -796,6 +796,35 @@ static void test_hiomap_protocol_read_two_blocks(void)
scenario_exit();
}
+static const struct scenario_event
+scenario_hiomap_protocol_event_before_action[] = {
+ { .type = scenario_event_p, .p = &hiomap_ack_call, },
+ { .type = scenario_event_p, .p = &hiomap_get_info_call, },
+ { .type = scenario... |
Move hex dump to after initializing variable | @@ -1008,12 +1008,12 @@ ValidateLsaData(
/** Index Blocks tests **/
for (Index = 0; Index < NAMESPACE_INDEXES; ++Index) {
NVDIMM_DBG("Signature of the NAMESPACE INDEX %d", Index);
- NVDIMM_HEXDUMP(&NamespaceSignature, sizeof(NamespaceSignature));
// We are copying the signature in two steps so we need to copy twice the... |
CMake: fix duplicated os_linux source; | @@ -692,11 +692,10 @@ elseif(ANDROID)
endif()
elseif(UNIX)
if(LOVR_USE_LINUX_EGL)
- target_sources(lovr PRIVATE src/core/os_linux.c)
target_compile_definitions(lovr PRIVATE LOVR_LINUX_EGL)
else()
- target_sources(lovr PRIVATE src/core/os_linux.c)
target_compile_definitions(lovr PRIVATE LOVR_LINUX_X11)
endif()
+ target_... |
Updated debug sequences DebugPortSetup, ResetHardware, and ResetHardwareDeassert. | @@ -120,7 +120,7 @@ The following Default Debug Access Sequences are implemented:
<control if="!isSWJ">
- <block>
+ <block atomic="1">
// Enter SWD Line Reset State
DAP_SWJ_Sequence(51, 0x0007FFFFFFFFFFFF); // > 50 cycles SWDIO/TMS High
DAP_SWJ_Sequence(3, 0x00); // At least 2 idle cycles (SWDIO/TMS Low)
@@ -335,7 +... |
fix document issues | @@ -412,8 +412,9 @@ static inline int mbedtls_ssl_chk_buf_ptr( const uint8_t *cur,
/**
* \brief This macro checks if the remaining length in an input buffer is
* greater or equal than a needed length. If it is not the case, it
- * returns an SSL_DECODE_ERROR error and pends DECODE_ERROR alert
- * message.
+ * returns #... |
Remove notification settings from appveyor.yml
Notifications can be (and should be) configured on account basis on
the CI web site. This avoids getting emails to openssl-commits for
personal accounts that also build OpenSSL stuff. | @@ -62,11 +62,3 @@ test_script:
cmd /c "nmake install install_docs DESTDIR=..\_install 2>&1"
}
- cd ..
-
-notifications:
- - provider: Email
- to:
- - openssl-commits@openssl.org
- on_build_success: false
- on_build_failure: true
- on_build_status_changed: true
|
misc: fix arithmetic in count_avail_package utility | @@ -60,12 +60,12 @@ for os in ${oses}; do
if [[ $micro_ver -eq 0 ]];then
numrpms=`repoquery --archlist=${arch} --repofrompath="ohpc-base,${repobase}" --repoid=ohpc-base '*' | wc -l`
echo $numrpms
- let "total=$total+1"
+ let "total=$total+$numrpms"
else
numrpms=`repoquery --archlist=${arch} --repofrompath="ohpc-base,${... |
test/random: test random_32_bytes | @@ -38,7 +38,20 @@ int __wrap_wally_sha256(
return 0;
}
-static void test_random(void** state)
+static void _test_random_32_bytes_mcu(void** state)
+{
+ uint8_t expected[RANDOM_NUM_SIZE] = {0};
+ uint8_t buf[RANDOM_NUM_SIZE] = "12345678901234567890123456789012";
+ // mock mcu rand()
+ for (int i = 0; i < RANDOM_NUM_SIZ... |
Compile test of multicast example for Zoul | @@ -14,6 +14,7 @@ platform-specific/zoul/at-test/zoul \
platform-specific/zoul/rtcc/zoul \
platform-specific/zoul/zoul \
coap/zoul \
+multicast/zoul \
ipso-objects/zoul \
ipso-objects/zoul:MAKE_WITH_DTLS=1 \
hello-world/zoul \
|
sse: fix AltiVec implementations of simde_mm_store_ps | @@ -3424,10 +3424,10 @@ simde_mm_store_ps (simde_float32 mem_addr[4], simde__m128 a) {
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
vst1q_f32(mem_addr, a_.neon_f32);
- #elif defined(SIMDE_POWER_ALTIVE_P7_NATIVE)
- vec_vsx_st(a_.altivec_32, 0, mem_addr);
- #elif defined(SIMDE_POWER_ALTIVE_P5_NATIVE)
- vec_st(a_.altivec_32, ... |
gsettings: print info about non-subscribed keys | @@ -414,21 +414,43 @@ static void elektra_settings_key_changed (GDBusConnection * connection G_GNUC_UN
GElektraKeySet * ks = gelektra_keyset_dup (esb->subscription_gks);
GElektraKey * cutpoint = gelektra_key_new (keypathname, KEY_VALUE, "", KEY_END);
- g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s %s!",
- "GSEttings Path... |
Fixed from local storage to session storage | # Indicates whether POST data will be preserved across authentication requests (and discovery in case of multiple OPs).
# This is designed to prevent data loss when a session timeout occurs in a (long) user filled HTML form.
# It cannot handle arbitrary payloads for security (DOS) reasons, merely form-encoded user data... |
driver/temp_sensor/g753.c: Format with clang-format
BRANCH=none
TEST=none | @@ -31,15 +31,14 @@ static int has_power(void)
static int raw_read8(const int offset, int *data_ptr)
{
- return i2c_read8(I2C_PORT_THERMAL, G753_I2C_ADDR_FLAGS,
- offset, data_ptr);
+ return i2c_read8(I2C_PORT_THERMAL, G753_I2C_ADDR_FLAGS, offset,
+ data_ptr);
}
#ifdef CONFIG_CMD_TEMP_SENSOR
static int raw_write8(const... |
Run cmake against archive created by make dist to check missing files | @@ -35,6 +35,9 @@ jobs:
steps:
- uses: actions/checkout@v2
+ - name: Startup
+ run: |
+ echo 'NGTCP2_SOURCE_DIR='"$PWD" >> $GITHUB_ENV
- name: Linux setup
if: runner.os == 'Linux'
run: |
@@ -153,16 +156,28 @@ jobs:
- name: Configure cmake
if: matrix.buildtool == 'cmake'
run: |
+ autoreconf -i && ./configure
+ make dist... |
Testing: add test for catching asserts | #include <assert.h>
#include "grib_api_internal.h"
+int assertion_caught = 0;
+
typedef enum {IBM_FLOAT, IEEE_FLOAT} FloatRep;
void compare_doubles(const double d1, const double d2, const double epsilon)
@@ -1398,9 +1400,32 @@ void test_string_splitting()
/* input having several adjacent delimiters e.g. 'A||B|||C' */
}... |
CI: Sonarqube: run python analysis with python 3 | @@ -424,7 +424,7 @@ build_template_app:
.sonar_scan_template:
stage: build
image:
- name: $CI_DOCKER_REGISTRY/sonarqube-scanner:1
+ name: $CI_DOCKER_REGISTRY/sonarqube-scanner:2
before_script:
- export PYTHONPATH="$CI_PROJECT_DIR/tools:$CI_PROJECT_DIR/tools/ci/python_packages:$PYTHONPATH"
- python $SUBMODULE_FETCH_TOOL... |
allow reset on large pages; check commit status before reset | @@ -231,7 +231,7 @@ static void mi_segment_protect(mi_segment_t* segment, bool protect, mi_os_tld_t*
static void mi_page_reset(mi_segment_t* segment, mi_page_t* page, size_t size, mi_segments_tld_t* tld) {
mi_assert_internal(page->is_committed);
if (!mi_option_is_enabled(mi_option_page_reset)) return;
- if (segment->me... |
Support standalone clang with GCC frontend | @@ -128,7 +128,7 @@ elseif(WASIENV)
#-flto -Wl,--lto-O3
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,stack-size=8388608")
-elseif(WIN32 AND NOT MINGW)
+elseif(MSVC OR CMAKE_C_COMPILER_FRONTEND_VARIANT MATCHES "MSVC")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Dd_m3HasTracer -D_CRT_SECURE_NO_WARNINGS /WX- /dia... |
test/usb_tcpmv2_td_pd_src3_e1.c: Format with clang-format
BRANCH=none
TEST=none | @@ -69,21 +69,17 @@ int test_td_pd_src3_e1(void)
* 5. Message Type field = 00001b (Source Capabilities)
* 6. Extended field = 0b
*/
- TEST_EQ(verify_tcpci_tx_with_data(TCPCI_MSG_SOP,
- PD_DATA_SOURCE_CAP,
- data,
- sizeof(data),
- &msg_len,
- 0),
+ TEST_EQ(verify_tcpci_tx_with_data(TCPCI_MSG_SOP, PD_DATA_SOURCE_CAP,
+ ... |
Remove dead loop in verifyArchive().
This loop has been dead since the code was initially committed in It looks like it was used at one point but became dead when the enclosing if-else was added during development.
Found by Coverity. | @@ -744,8 +744,6 @@ verifyArchive(void *data)
// If there are WAL files, then verify them
if (!strLstEmpty(jobData->walFileList))
- {
- do
{
// Get the fully qualified file name and checksum
const String *fileName = strLstGet(jobData->walFileList, 0);
@@ -772,11 +770,6 @@ verifyArchive(void *data)
// If this is the las... |
offcputime: fix no comm&delta output if missed user stack | @@ -241,7 +241,7 @@ print_ustack:
if (bpf_map_lookup_elem(sfd, &next_key.user_stack_id, ip) != 0) {
fprintf(stderr, " [Missed User Stack]\n");
- continue;
+ goto skip_ustack;
}
syms = syms_cache__get_syms(syms_cache, next_key.tgid);
|
No more deploy with releases provider | @@ -33,81 +33,35 @@ matrix:
language: cpp
env: CB_BUILD_AGENT='clang-linux-x86_64-release-cuda'
script: ~/build/${TRAVIS_REPO_SLUG}/ci/travis/script.sh
- deploy:
- provider: releases
- api_key: $GITHUB_OAUTH_TOKEN
- file: catboost-cuda-linux
- skip_cleanup: true
- on:
- tags: true
- os: linux
dist: trusty
language: pyt... |
docs: Correct Linux port names for more relevance | @@ -326,7 +326,7 @@ Some environment variables can be specified whilst calling ``make`` allowing use
+=================+==============================================================+
| ``ESPPORT`` | Overrides the serial port used in ``flash`` and ``monitor``. |
| | |
-| | Examples: ``make flash ESPPORT=/dev/tty/USB0``... |
[tools] fix the spawn except handling. | @@ -105,8 +105,11 @@ class Win32Spawn:
try:
proc = subprocess.Popen(cmdline, env=_e, shell=False)
except Exception as e:
- print ('Error in calling:\n' + cmdline)
- print ('Exception: ' + e + ': ' + os.strerror(e.errno))
+ print ('Error in calling command:' + cmdline.split(' ')[0])
+ print ('Exception: ' + os.strerror(... |
client: Ingore stream not found error in ngtcp2_conn_write_stream | @@ -644,6 +644,8 @@ int Client::on_write_stream(uint32_t stream_id, uint8_t fin, Buffer &data) {
switch (n) {
case NGTCP2_ERR_STREAM_DATA_BLOCKED:
case NGTCP2_ERR_STREAM_SHUT_WR:
+ case NGTCP2_ERR_INVALID_ARGUMENT: // This means that stream is
+ // closed.
return 0;
}
std::cerr << "ngtcp2_conn_write_stream: " << ngtcp2... |
Contract: Fix incorrect character in description | @@ -147,7 +147,7 @@ description = Introduces a more abstract name (=provider) for the type
is a provider for all activities necessary to fulfil
a specific mission. The name already provides users with an
understanding what this assignment is. Together with an informal text
- (`infos/description?) it exactly describes t... |
Stop at the first return statement | @@ -159,50 +159,43 @@ function Parser:Program()
-- module contents
local tls = {}
- while not self:peek("EOF") do
+ while not self:peek("EOF") and not self:peek("return") do
table.insert(tls, self:Toplevel())
end
-- returm <modname>
- local last_stat
- do
- local last_tl = tls[#tls]
-
- if not (
- last_tl and
- last_tl... |
Fix emitting 1-byte long metadata block | @@ -1188,7 +1188,7 @@ static size_t WriteMetadataHeader(
if (block_size == 0) {
BrotliWriteBits(2, 0, &storage_ix, header);
} else {
- uint32_t nbits = (block_size == 1) ? 0 :
+ uint32_t nbits = (block_size == 1) ? 1 :
(Log2FloorNonZero((uint32_t)block_size - 1) + 1);
uint32_t nbytes = (nbits + 7) / 8;
BrotliWriteBits(... |
Wierd "Unindent error..." temp fix | @@ -143,14 +143,14 @@ for s in parser.states:
#[ dbg_bytes(pd->data + pd->parsed_length, pd->payload_length, " " T4LIT(%%%%%%%%,success) " Packet is $$[success]{}{accepted}, " T4LIT(%d) "B of headers, " T4LIT(%d) "B of payload: ", pd->parsed_length, pd->payload_length);
#[ } else {
#[ debug(" " T4LIT(%%%%%%%%,success) ... |
Fix HAL erase Memory | @@ -269,7 +269,7 @@ uint16_t LuosHAL_GetNodeID(void)
******************************************************************************/
void LuosHAL_EraseMemory(uint32_t address, uint16_t size)
{
- uint32_t nb_sectors_to_erase = FLASH_SECTOR_TOTAL - 1 - APP_ADDRESS_SECTOR;
+ uint32_t nb_sectors_to_erase = FLASH_SECTOR_TOT... |
mdns: Use memcpy() for copy to support non-text TXTs | @@ -513,6 +513,37 @@ static inline uint8_t _mdns_append_string(uint8_t * packet, uint16_t * index, co
return len + 1;
}
+/**
+ * @brief appends one TXT record ("key=value" or "key")
+ *
+ * @param packet MDNS packet
+ * @param index offset in the packet
+ * @param txt one txt record
+ *
+ * @return length of added data... |
MSR: Allow spaces after `Backup-and-Restore:` | @@ -39,7 +39,8 @@ translate()
{
TMPFILE=$(mktemp)
MOUNTPOINT=$(echo "$BUF" | head -n 1)
- if grep -Eq 'Backup-and-Restore:' <<< "$MOUNTPOINT"; then echo "Mountpoint: $(cut -d ':' -f2 <<< "$MOUNTPOINT")" >> "$TMPFILE"
+ if grep -Eq 'Backup-and-Restore:' <<< "$MOUNTPOINT"; then
+ echo "Mountpoint: $(cut -d ':' -f2 <<< "$... |
Added square search | @@ -706,9 +706,10 @@ static void hexagon_search(inter_search_info_t *info, vector2d_t extra_mv, uint3
// 1
// 2 0 3
// 4
- static const vector2d_t small_hexbs[5] = {
+ static const vector2d_t small_hexbs[9] = {
{ 0, 0 },
- { 0, -1 }, { -1, 0 }, { 1, 0 }, { 0, 1 }
+ { 0, -1 }, { -1, 0 }, { 1, 0 }, { 0, 1 },
+ { -1, -1 }... |
use dedicated callback | @@ -1019,6 +1019,15 @@ static void on_handshake_complete(h2o_socket_t *sock, const char *err)
handshake_cb(sock, err);
}
+static void on_alert_sent(h2o_socket_t *sock, const char *err)
+{
+ if (err != NULL) {
+ on_handshake_complete(sock, err);
+ } else {
+ on_handshake_complete(sock, "handshake failure");
+ }
+}
+
sta... |
sdk 4.1.0 ver in objc doc | @@ -38,7 +38,7 @@ PROJECT_NAME = "CARTO Mobile SDK iOS"
# could be handy for archiving the generated documentation or if some version
# control system is used.
-PROJECT_NUMBER = "4.0.0"
+PROJECT_NUMBER = "4.1.0"
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears ... |
properly check for integer | @@ -27,7 +27,7 @@ const INTEGER_TYPES = [
const FLOAT_TYPES = [ 'float', 'double' ]
const isNumber = (value) => !isNaN(value)
-const isInt = (value) => /^(-|\+)?[0-9]+$/.test(value)
+const isInt = (value) => Number.isInteger(value)
const elektraEnumToJSON = (val) => {
const convertedVal = val.replace(/'/g, '"')
|
iOS: only active Arch for Debug | "$(SRCROOT)",
"$(SRCROOT)/build/Debug-iphonesimulator",
);
- ONLY_ACTIVE_ARCH = NO;
+ ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "";
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
"OTHER_LDFLAGS[sdk=*][arch=*]" = (
|
Fix doubled up bits in time flag | @@ -84,7 +84,7 @@ definitions:
fields:
- 5-7:
desc: Reserved
- - 2-4:
+ - 3-4:
desc: UTC offset source
values:
- 0: Factory Default
|
When used with FreeRTOS, lower the interrupt priority for OTG_FS_IRQn | @@ -51,7 +51,7 @@ void board_init(void)
SysTick_Config(SystemCoreClock / 1000);
#elif CFG_TUSB_OS == OPT_OS_FREERTOS
// If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
- //NVIC_SetPriority(USB0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
+ NVIC_SetPriority(OTG_FS_IRQn, configLI... |
exclude more symbols for utils.symbols.export_all | @@ -66,8 +66,14 @@ function main (target, opt)
symbol = symbol:sub(2)
end
if export_classes or not symbol:startswith("?") then
+ if export_classes then
+ if not symbol:startswith("??_G") and not symbol:startswith("??_E") then
allsymbols:insert(symbol)
end
+ else
+ allsymbols:insert(symbol)
+ end
+ end
end
end
end
|
moved RINGBUFFER info to end of status line | @@ -473,7 +473,7 @@ static inline void printtimestatus()
static char timestring[16];
strftime(timestring, 16, "%H:%M:%S", localtime(&tv.tv_sec));
-snprintf(servermsg, SERVERMSG_MAX, "%s %3d INFO ERROR:%d INCOMMING:%" PRIu64 " OUTGOING:%" PRIu64 " RINGBUFFER:%d GPS:%d\n", timestring, channelscanlist[cpa], errorcount, in... |
Fix 2d arrows | @@ -93,7 +93,7 @@ void __declspec(naked) gbh_DrawQuad()
}
else if (((*gGame)))
{
- if (esp44 != dword_4C834B && esp40 != dword_4C74EA && esp44 != dword_4C83B2)
+ if (esp44 != dword_4C834B && esp40 != dword_4C74EA && esp44 != dword_4C83B2 && esp40 != dword_4C834B && esp44 != dword_4C74EA && esp40 != dword_4C83B2)
{
*(fl... |
esp32/machine_touchpad: Use HW timer for FSM to enable wake-on-touch. | @@ -69,6 +69,7 @@ STATIC mp_obj_t mtp_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_
static int initialized = 0;
if (!initialized) {
touch_pad_init();
+ touch_pad_set_fsm_mode(TOUCH_FSM_MODE_TIMER);
initialized = 1;
}
esp_err_t err = touch_pad_config(self->touchpad_id, 0);
|
mpi-families/mvapich2: bump to v2.3.5 | Summary: OSU MVAPICH2 MPI implementation
Name: %{pname}%{COMM_DELIM}-%{compiler_family}%{RMS_DELIM}%{PROJ_DELIM}
-Version: 2.3.2
+Version: 2.3.5
Release: 1%{?dist}
License: BSD
Group: %{PROJ_NAME}/mpi-families
|
[Bsp][STM32F4xx_HAL]Fix hal_conf.h to include rtthread.h | #ifdef __cplusplus
extern "C" {
#endif
-#include "board.h"
+#include <rtthread.h>
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
|
SOVERSION bump to version 1.0.4 | @@ -48,7 +48,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 3)
+set(LIBN... |
Remove obsolete comment
Removed TBD comment that is no longer relevant since
that portion of the code has been updated. | @@ -273,9 +273,6 @@ static psa_status_t get_expected_key_size( const psa_key_attributes_t *attribute
#if defined(PSA_CRYPTO_DRIVER_TEST)
case PSA_CRYPTO_TEST_DRIVER_LIFETIME:
- /* TBD: opaque driver support: need to calculate size through a
- * driver-defined size function, since the size of an opaque (wrapped)
- * key... |
Adjustments for xr path changes and idsig file; | @@ -296,14 +296,14 @@ end
if config.headsets.openxr then
if target == 'android' then
- cflags_openxr += '-Ideps/OpenXR-Oculus/Include'
+ cflags_headset_openxr += '-Ideps/OpenXR-Oculus/Include'
lflags += 'lopenxr_loader'
copy('deps/OpenXR-Oculus/Libs/Android/arm64-v8a/Release/libopenxr_loader.so', '$(bin)/%b')
else
if t... |
h2olog: implement the header tracer func | @@ -11,6 +11,7 @@ import getopt, sys
bpf = """
#define MAX_STR_LEN 128
+#define MIN(x, y) (((x) < (y)) ? (x) : (y))
/*
* "req_line_t" represents an individual log line for a given request.
@@ -43,7 +44,30 @@ int trace_receive_req(struct pt_regs *ctx) {
return 0;
}
-int trace_receive_req_header(void *ctx) {
+int trace_r... |
Fix missing assignment. Updated recursive now compiles and is ready for testing. | @@ -25111,7 +25111,7 @@ void check_damage_recursive(entity *ent, entity *other, s_collision_attack *atta
cursor = malloc(sizeof(*cursor));
// Assign to entity.
- ent->recursive_damage;
+ ent->recursive_damage = cursor;
}
// Now we have a target recursive element to populate with
|
No Ticket - add sensor_device_create()
This is to clean up hal_bsp_init() | @@ -204,6 +204,38 @@ slinky_color_init(struct os_dev *dev, void *arg)
}
#endif
+static void
+sensor_dev_create(void)
+{
+ int rc;
+
+ rc = 0;
+#if MYNEWT_VAL(LSM303DLHC_PRESENT)
+ rc = os_dev_create((struct os_dev *) &lsm303dlhc, "accel0",
+ OS_DEV_INIT_PRIMARY, 0, slinky_accel_init, NULL);
+ assert(rc == 0);
+#endif
+... |
Checkmatch shouldn't allow coerceable types
That was a leftover from when we had implicit coercions everywhere.
In any case, when we add more automatic coercions back we should insert
cast nodes explicitly, instead of telling checkmatch to be lax and
pushing the coercion insertion to the code generator... | @@ -52,7 +52,7 @@ end
-- errors: list of compile-time errors
-- loc: location of the term that is being compared
local function checkmatch(term, expected, found, errors, loc)
- if types.coerceable(found, expected) or not types.equals(expected, found) then
+ if not types.equals(expected, found) then
local msg = "types i... |
TLSProxy/Message.pm: refine end-of-conversation detection logic. | @@ -267,15 +267,18 @@ sub get_messages
}
} elsif ($record->content_type == TLSProxy::Record::RT_ALERT) {
my ($alertlev, $alertdesc) = unpack('CC', $record->decrypt_data);
+ print " [$alertlev, $alertdesc]\n";
#A CloseNotify from the client indicates we have finished successfully
#(we assume)
if (!$end && !$server && $a... |
Apply refactor to CamelCase | @@ -19,7 +19,7 @@ using namespace blit;
void init() {
- set_screen_mode(screen_mode::lores);
+ set_screen_mode(ScreenMode::lores);
}
@@ -28,15 +28,15 @@ void render(uint32_t time) {
for(int b = 0; b < SCREEN_WIDTH; b++){
for(int v = 0; v < SCREEN_HEIGHT; v++){
- fb.pen(blit::hsv_to_rgba(float(b) / (float)(SCREEN_WIDTH)... |
PicoGraphics: Fix P8 buffer size. | @@ -62,7 +62,7 @@ namespace pimoroni {
row_buf[x] = cache[src[bounds.w * y + x]];
}
// Callback to the driver with the row data
- callback(row_buf, bounds.w * sizeof(RGB565));
+ callback(row_buf, bounds.w * sizeof(uint8_t));
}
}
}
|
Fix for dylib mac build | @@ -211,6 +211,7 @@ def getFrameworks(binaryPath, verbose):
raise RuntimeError("otool failed with return code %d" % otool.returncode)
otoolLines = o_stdout.split("\n")
+ otoolLines.append(" /usr/local/opt/boost/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)")
otoolLines.pop(0) # First... |
Typo in aws_iot_config.h
breaks compilation when 'Override Shadow RX buffer size' is enabled via
menuconfig
Merges | // Thing Shadow specific configs
#ifdef CONFIG_AWS_IOT_OVERRIDE_THING_SHADOW_RX_BUFFER
-#define SHADOW_MAX_SIZE_OF_RX_BUFFER CONFIG AWS_IOT_SHADOW_MAX_SIZE_OF_RX_BUFFER ///< Maximum size of the SHADOW buffer to store the received Shadow message, including NULL termianting byte
+#define SHADOW_MAX_SIZE_OF_RX_BUFFER CONF... |
Travis: Use default install location on macOS
After this change `pkg-config` is able to detect Elektra on macOS. This
means that tests such as `testscr_check_gen` will now run actual test
code, and not exit successfully after they failed to locate the
installed version of Elektra. | @@ -80,7 +80,8 @@ before_install:
#
before_script:
- cd $TRAVIS_BUILD_DIR/..
- - INSTALL_DIR="$PWD/install"
+ - >
+ [[ "$TRAVIS_OS_NAME" == "linux" ]] && INSTALL_DIR="$PWD/install" || INSTALL_DIR="/usr/local"
- SYSTEM_DIR="$PWD/kdbsystem"
- mkdir build && cd build
- CMAKE_OPT=()
|
Fix metadata behave backup restore test
This was missed in | @@ -2129,7 +2129,7 @@ Feature: Validate command line arguments
When the user runs "gpdbrestore -a -t 30160101010101 -u /tmp"
Then gpdbrestore should return a return code of 0
And the user runs "psql -f test/behave/mgmt_utils/steps/data/check_metadata.sql bkdb > /tmp/check_metadata.out"
- And verify that the contents of... |
rewrite hard and binary thresholding to use absolute value | @@ -104,26 +104,20 @@ static void dfthresh(unsigned int D, const long dims[D], float lambda, complex f
static void hard_thresh(unsigned int D, const long dims[D], float lambda, complex float* out, const complex float* in)
{
- long size = md_calc_size(DIMS, dims) * 2;
-
- const float* inf = (const float*)in;
- float* ou... |
Document how to make a portable build on Windows
On MSYS2, ./gradlew does not work as expected, so use its absolute path. | #
# "make release-portable" builds a zip containing the client and the server.
#
+# On Windows with MSYS2/mingw64, execute:
+# GRADLE="$PWD/gradlew" mingw32-make release-portable
+#
# This is a simple Makefile because Meson is not flexible enough to execute some
# arbitrary commands.
|
Add missing sort to intra transform split search so mode at 0 is the best | @@ -623,6 +623,9 @@ static int8_t search_intra_rdo(encoder_state_t * const state,
costs[rdo_mode] += mode_cost;
}
+ // Update order according to new costs
+ sort_modes(modes, costs, modes_to_check);
+
// The best transform split hierarchy is not saved anywhere, so to get the
// transform split hierarchy the search has ... |
json MAINTENANCE added LY_NUMBER_MAXLEN check
For a number with an exponent, the check is applied, so for consistency
it should also be applied to numbers without an exponent. | @@ -701,7 +701,11 @@ invalid_character:
LY_CHECK_RET(lyjson_exp_number(jsonctx->ctx, in, exponent, offset, &num, &num_len));
lyjson_ctx_set_value(jsonctx, num, num_len, 1);
} else {
- /* store the number */
+ if (offset > LY_NUMBER_MAXLEN) {
+ LOGVAL(jsonctx->ctx, LYVE_SEMANTICS,
+ "Number encoded as a string exceeded ... |
Set explicit resource item source value | @@ -842,7 +842,7 @@ void DeRestPluginPrivate::handleThermostatClusterIndication(const deCONZ::ApsDat
}
if (item && item->toString() != windowmodeSet)
{
- item->setValue(windowmodeSet);
+ item->setValue(windowmodeSet, ResourceItem::SourceDevice);
enqueueEvent(Event(RSensors, RStateWindowOpen, sensor->id(), item));
state... |
appdata: add header's "name"; remove "h3_packet_receive:bytes" because it's n the wire | @@ -24,9 +24,8 @@ struct st_h2o_tunnel_t;
/* @appdata
{
- "receive_request_header": ["value"],
- "send_response_header": ["value"],
- "h3_packet_receive": ["bytes"],
+ "receive_request_header": ["name", "value"],
+ "send_response_header": ["name", "value"],
"h3_frame_receive": ["bytes"],
"tunnel_on_read": ["bytes"],
"t... |
Server should disarm timeout if it can send nothing during handshake | @@ -4721,6 +4721,8 @@ static ssize_t conn_handshake(ngtcp2_conn *conn, uint8_t *dest, size_t destlen,
uint64_t cwnd;
size_t origlen = destlen;
ngtcp2_pktns *hs_pktns = &conn->hs_pktns;
+ size_t server_hs_tx_left;
+ ngtcp2_rcvry_stat *rcs = &conn->rcs;
conn->log.last_ts = ts;
@@ -4862,8 +4864,18 @@ static ssize_t conn_h... |
in_syslog: validate new return value of parser_do() | @@ -71,7 +71,7 @@ int syslog_prot_process(struct syslog_conn *conn)
ret = flb_parser_do(ctx->parser, conn->buf_data, len,
&out_buf, &out_size, &out_time);
- if (ret == 0) {
+ if (ret >= 0) {
pack_line(out_sbuf, out_pck, out_time,
out_buf, out_size);
flb_free(out_buf);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.