message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
build: readd unsafe build to show #warnings in CI | @@ -175,6 +175,11 @@ if(MBEDTLS_FATAL_WARNINGS)
if(CMAKE_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_GNU)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
+ if(UNSAFE_BUILD)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=cpp")
+ set(CMAKE_C_FLAGS_ASAN "${CMAKE_C_FLAGS_ASAN} -Wno-error=cpp")
+ set(CMAKE_C_FLAGS_ASANDBG "${CMA... |
SOVERSION bump to version 1.2.6 | @@ -51,7 +51,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 2)
-set(LIBNETCONF2_MICRO_SOVERSION 5)
+set(LIBN... |
zephyr: Restore legacy GPIO tests
To ensure full coverage, restore tests of
legacy GPIO API.
TEST=zmake configure --test test/drivers
BRANCH=none | #include "util.h"
#include "test_state.h"
+extern bool gpio_test_interrupt_triggered;
/**
* @brief TestPurpose: Verify Zephyr to EC GPIO bitmask conversion.
*
@@ -120,6 +121,71 @@ ZTEST(gpio, test_signal_is_gpio)
GPIO_SIGNAL(DT_NODELABEL(gpio_test))), "Expected true");
}
+/**
+ * @brief TestPurpose: Verify legacy API G... |
Added path sanity for CORE_ROOT env var | @@ -28,7 +28,12 @@ host_environment::host_environment(logger *logger) : log(logger), clr_runtime_ho
this->core_clr_module = NULL; // Initialize this here since we don't call TryLoadCoreCLR if CORE_ROOT is unset.
if (_wgetenv_s(&outSize, coreRoot, MAX_LONGPATH, W("CORE_ROOT")) == 0 && outSize > 0)
{
+ wchar_t last_chara... |
Update refresh_template with clang reformat | #!/usr/bin/env bash
-erb $(dirname $0)/test/stream_expectations.c.erb > $(dirname $0)/test/stream_expectations.c
+erb $(dirname $0)/test/stream_expectations.c.erb > \
+ $(dirname $0)/test/stream_expectations.c
+clang-format -style=file -i $(dirname $0)/test/stream_expectations.c
|
testcase/task_manager : Modify tc for removing unnecessary semaphore and add sleep
1. stop and unregister runs based on task state, so there is not needed for semaphore
2. add sleep for waiting unregister | @@ -73,7 +73,6 @@ static int handle_tm_utc;
static int broadcast_data_flag;
static bool cb_flag;
-static sem_t tm_terminate_sem;
static sem_t tm_broad_sem;
static void sync_test_cb(tm_msg_t *info)
@@ -144,7 +143,6 @@ void exit_handler(void *info)
static void test_stop_cb(void *data)
{
cb_flag = true;
- (void)sem_post(&... |
change DXL ID | #define TORQUE_ON 1 // Value for enabling the torque
#define TORQUE_OFF 0 // Value for disabling the torque
-#define JOINT1 3
-#define JOINT2 4
-#define JOINT3 5
-#define JOINT4 6
-#define GRIPPER 7
+#define JOINT1 11
+#define JOINT2 12
+#define JOINT3 13
+#define JOINT4 14
+#define GRIPPER 15
#define DEBUG_SERIAL Seri... |
doff: improve generator interface slightly
No longer need to give units as named arguments, instead just the bare
values. The defaults get recognized as the "no filter" case. | :- %say
|= $: [now=@da eny=@uvJ bec=beak]
~
- [dude=(unit dude:gall) ship=(unit ship)]
+ [dude=_`dude:gall`%$ ship=_`@p`(bex 128)]
==
-[%helm-doff dude ship]
+=/ darg=(unit dude:gall) ?:(=(%$ dude) ~ `dude)
+=/ sarg=(unit ^ship) ?:(=((bex 128) ship) ~ `ship)
+[%helm-doff darg sarg]
|
Analysis workflow, use different perl | @@ -224,6 +224,8 @@ jobs:
ls -l '/usr/share' || echo nevermind
echo '/c/Strawberry/perl'
ls -l '/c/Strawberry/perl' || echo nevermind
+ echo '/c/Strawberry/perl/bin'
+ ls -l '/c/Strawberry/perl/bin' || echo nevermind
echo '/c/Strawberry/perl/lib'
ls -l '/c/Strawberry/perl/lib' || echo nevermind
echo '/c/Strawberry/perl... |
add a warning printf about slowness | @@ -496,7 +496,7 @@ _dawn_come(u3_noun stars)
c3_rand(eny_w);
eny = u3i_words(16, eny_w);
- fprintf(stderr, "boot: mining a comet\r\n");
+ fprintf(stderr, "boot: mining a comet. May take up to 30 minutes.\r\n");
seed = u3dc("come:dawn", u3k(stars), u3k(eny));
u3z(eny);
|
[kernel] improve output of kernel | @@ -751,8 +751,8 @@ void TimeStepping::DefaultCheckSolverOutput(int info)
// else: depend on solver
if(info != 0)
{
- std::cout << "TimeStepping::DefaultCheckSolverOutput:" << std::endl;
- std::cout << "Non smooth solver warning : output message from numerics solver is equal to " << info << std::endl;
+ std::cout << "[... |
rm unused gpu macros | @@ -36,11 +36,9 @@ extern "C" {
#ifndef SFLOAT
#define CUBLAS(x) cublasD##x
#define CUBLASI(x) cublasId##x
-#define CUSPARSE(x) cusparseD##x
#else
#define CUBLAS(x) cublasS##x
#define CUBLASI(x) cublasIs##x
-#define CUSPARSE(x) cusparseS##x
#endif
#define CUSPARSE_GEN(x) cusparse##x
#else
@@ -51,9 +49,6 @@ extern "C" {... |
Add rescan button for Wi-Fi setup. | @@ -1641,7 +1641,7 @@ _papplSystemWebWiFi(
cupsFreeDests(num_ssids, ssids);
papplClientHTMLPuts(client,
- "</select></td></tr>\n"
+ "</select> <a class=\"btn\" href=\"/network-wifi\">Rescan</a></td></tr>\n"
" <tr><th><label for=\"psk\">Password:</label></th><td><input type=\"password\" name=\"psk\"></td></tr>\n"
" <tr>... |
zephyr: villager: Add led_id property
led_id property is used to identify led-ids supported
BRANCH=none
TEST=zmake build villager
Cq-Depend: chromium:3579759 | color-off {
led-color = "LED_OFF";
+ led-id = "EC_LED_ID_BATTERY_LED";
led-pins = <&gpio_ec_chg_led_y_c0 0>,
<&gpio_ec_chg_led_b_c0 0>;
};
color-amber {
led-color = "LED_AMBER";
+ led-id = "EC_LED_ID_BATTERY_LED";
br-color = "EC_LED_COLOR_AMBER";
led-pins = <&gpio_ec_chg_led_y_c0 1>,
<&gpio_ec_chg_led_b_c0 0>;
color-bl... |
Use `example.org` rather than `xip.io` in `t/50connect-proxy-status.t`.
The IANA nameservers should be more reliable. | @@ -50,8 +50,8 @@ subtest "acl" => sub {
subtest "nxdomain" => sub {
run_with_curl($server, sub {
my ($proto, $port, $curl) = @_;
- my $content = `$curl --proxy-insecure -p -x $proto://127.0.0.1:$port --silent -v --show-error https://doesnotexist.xip.io/ 2>&1`;
- like $content, qr{proxy-status: h2o/test; error=dns_erro... |
graph-pull-hook: silence issues temporarily | ++ on-peek on-peek:def
++ on-arvo on-arvo:def
++ on-fail on-fail:def
-++ on-agent on-agent:def
+++ on-agent
+ |= [=wire =sign:agent:gall]
+ ^- (quip card _this)
+ ?: ?=(%poke-ack -.sign) `this
+ (on-agent:def wire sign)
+::
++ on-watch on-watch:def
++ on-leave on-leave:def
++ on-pull-nack
|
fixing building with windows pthreadGC2.dll for windows | @@ -378,7 +378,7 @@ README.txt \
# copied to the current directory before installation or packaging.
ifeq (MINGW,$(findstring MINGW,$(uname)))
-datafiles += pthreadGC2.dll
+datafiles += maintenance/windows_dll/pthreadGC2.dll
endif
### pd-lib-builder ######################################################
|
Fix use of private variable in round LCD demo
Fixes | @@ -46,7 +46,7 @@ int main() {
while(1) {
absolute_time_t at = get_absolute_time();
- uint64_t t = at._private_us_since_boot / 100000;
+ uint64_t t = to_us_since_boot(at) / 100000;
float angle = (t % 360) * M_PI / 180.0f;
display.set_pen(0, 0, 0);
|
Update setup-buildtools.sh to prefer apt-get
apt-get is better for non-interactive use. Perform "apt-get update -y" before installing in case if package source URL changes on VM. | #!/bin/sh
if [ -f /bin/yum ]; then
-# Prefer yum over apt
+# Prefer yum over apt-get
yum -y install automake
yum -y install autoconf
yum -y install libtool
@@ -41,20 +41,23 @@ cd ..
fi
else
-# Use apt
-apt install -y automake
-apt install -y libtool-bin
-apt install -y cmake
-apt install -y sqlite
-apt install -y curl ... |
providers/build.info: Tag the FIPS module, for the build file
The build file templates have code to pick up the 'fips' attribute and
thereby find out what module is the FIPS without having to resort to
ugly hard coding. | @@ -140,7 +140,7 @@ ENDIF
IF[{- !$disabled{fips} -}]
# This is the trigger to actually build the FIPS module. Without these
# statements, the final build file will not have a trace of it.
- MODULES=$FIPSGOAL
+ MODULES{fips}=$FIPSGOAL
LIBS{noinst}=$LIBFIPS
ENDIF
|
Refactor .travis.yml | @@ -17,17 +17,14 @@ matrix:
addons: *addon_conf
env:
- TEST=BUILD_TARGETS
- - ARMGCC_VERSION=7.2.1
- os: linux
addons: *addon_conf
env:
- TEST=BUILD_BLINKY
- - ARMGCC_VERSION=7.2.1
- os: linux
addons: *addon_conf
env:
- TEST=TEST_ALL
- - ARMGCC_VERSION=7.2.1
- os: osx
osx_image: xcode9.2
env:
@@ -49,10 +46,6 @@ install... |
Add ifdefs around conditionally used functions | @@ -115,6 +115,8 @@ static void sgemv_kernel_4x4(BLASLONG n, FLOAT **ap, FLOAT *xo, FLOAT *y, FLOAT
#endif
+#ifndef HAVE_SGEMV_N_SKYLAKE_KERNEL
+
#ifndef HAVE_KERNEL_4x2
static void sgemv_kernel_4x2( BLASLONG n, FLOAT **ap, FLOAT *x, FLOAT *y, FLOAT *alpha) __attribute__ ((noinline));
@@ -246,6 +248,8 @@ static void sg... |
Change complex DOT and ROT to generic kernels and switch CGEMM
in response to test failures seen in and BLAS-Tester | @@ -20,8 +20,10 @@ ZAXPYKERNEL = zaxpy_ppc440.S
SDOTKERNEL = dot_ppc440.S
DDOTKERNEL = dot_ppc440.S
-CDOTKERNEL = zdot_ppc440.S
-ZDOTKERNEL = zdot_ppc440.S
+#CDOTKERNEL = zdot_ppc440.S
+#ZDOTKERNEL = zdot_ppc440.S
+CDOTKERNEL = ../arm/zdot.c
+ZDOTKERNEL = ../arm/zdot.c
ISAMAXKERNEL = iamax_ppc440.S
IDAMAXKERNEL = iamax... |
Move window size to 0xffff, since that's the RFC's default
Only call run_pending_requests when we're done chunking | @@ -39,7 +39,7 @@ const h2o_http2_settings_t H2O_HTTP2_SETTINGS_HOST = {
4096, /* header_table_size */
0, /* enable_push (clients are never allowed to initiate server push; RFC 7540 Section 8.2) */
100, /* max_concurrent_streams */
- 65536, /* initial_window_size */
+ 65535, /* initial_window_size */
16384 /* max_frame... |
sync: Add support for MINGW32 to sync plugin | #include <errno.h>
#include <fcntl.h>
+#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@@ -44,24 +45,38 @@ int elektraSyncGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned ELEKTRA_UN
return 1; /* success */
}
-int elektraSyncSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned... |
fix(docs): Clarify `timeout-ms` for Combos | @@ -25,7 +25,7 @@ Combos configured in your `.keymap` file, but are separate from the `keymap` nod
- The name of the combo doesn't really matter, but convention is to start the node name with `combo_`.
- The `compatible` property should always be `"zmk,combos"` for combos.
-- `timeout-ms` is the number of milliseconds ... |
ur: cleans up ur_bsr_log() | @@ -615,7 +615,6 @@ ur_bsr_log(ur_bsr_t *bsr, uint8_t *out)
}
else {
uint8_t off = bsr->off;
- uint8_t rest = 8 - off;
const uint8_t *b = bsr->bytes;
uint8_t byt = b[0] >> off;
uint8_t skip = 0;
@@ -625,13 +624,11 @@ ur_bsr_log(ur_bsr_t *bsr, uint8_t *out)
return _bsr_log_meme(bsr);
}
- skip++;
+ byt = b[++skip];
if ( ... |
Change tash command to excute ttrace testcase and fix typo in ttrace testcase | @@ -149,7 +149,7 @@ static int ttrace_tc_launcher(int argc, char **args)
tc_libc_trace_end_u();
tc_libc_trace_sched();
printf("#########################################\n");
- printf(" FS TC Result \n");
+ printf(" T-trace TC Result \n");
printf(" PASS : %d FAIL : %d \n", total_pass, total_fail);
printf("##############... |
Fix misleading log: libpq says we are still busy
Demote and clarify a dispatcher log message:
this log is printed on a broken connection, the previous message is misleading to user.
Fixes Github issue | @@ -723,7 +723,8 @@ handlePollSuccess(CdbDispatchCmdAsync *pParms,
}
if (PQisBusy(dispatchResult->segdbDesc->conn))
- elog(LOG, "We thought we were done, because finished==true, but libpq says we are still busy");
+ elog(DEBUG1, "did not receive query results on libpq connection %s",
+ dispatchResult->segdbDesc->whoami... |
Add missing "" | @@ -99,7 +99,7 @@ Build it with
-DKDB_DB_HOME="$PWD" \
-DKDB_DB_SYSTEM="$PWD/.config/kdb/system" \
-DKDB_DB_SPEC="$PWD/.config/kdb/system" \
--DINSTALL_SYSTEM_FILES=OFF
+-DINSTALL_SYSTEM_FILES="OFF"
```
and then with
|
process: disable tests if ENABLE_ASAN | @@ -3,8 +3,7 @@ include (LibAddMacros)
add_plugin (
process
SOURCES process.h process.c
- LINK_ELEKTRA elektra-invoke
- ADD_TEST COMPONENT libelektra${SO_VERSION}-experimental)
+ LINK_ELEKTRA elektra-invoke COMPONENT libelektra${SO_VERSION}-experimental)
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/testapp.sh" "${CMAKE... |
[OpenGL] Load libEGL.so.1 and use eglGetProcAddress to get EGL procs | @@ -20,8 +20,14 @@ void* get_egl_proc_address(const char* name) {
void *func = nullptr;
static void *(*pfn_eglGetProcAddress)(const char*) = nullptr;
- if (!pfn_eglGetProcAddress)
- pfn_eglGetProcAddress = reinterpret_cast<decltype(pfn_eglGetProcAddress)>(get_proc_address("eglGetProcAddress"));
+ if (!pfn_eglGetProcAdd... |
Simplify Javascript quickstart example. | // Set up control points.
spline.controlPoints = [
- 25, 50, // P1
+ 40, 50, // P1
150, 700, // P2
350, 30, // P3
650, 200, // P4
200, 200, // P7
]
- // Print domain of spline.
+ // Print the domain of spline.
document.getElementById("domain").innerHTML =
"Domain: [" + spline.domain.min +
", " + spline.domain.max + "]"... |
nimble/ll: Fix setting sent_to_host flag
There's no point in setting flag only to clear it in a moment - just
make sure we don't set it when not needed. | @@ -2735,16 +2735,9 @@ ble_ll_hci_send_ext_adv_report(uint8_t ptype, uint8_t *adva, uint8_t adva_type,
ble_ll_hci_event_send(hci_ev);
if (aux_data) {
+ if (!(aux_data->evt_type & BLE_HCI_ADV_SCAN_MASK) ||
+ (aux_data->evt_type & BLE_HCI_ADV_SCAN_RSP_MASK)) {
BLE_LL_AUX_SET_FLAG(aux_data, BLE_LL_SENT_EVENT_TO_HOST);
- /... |
misc: config_tool: allow cpu sharing among standard VMs
CPU sharing among standard Pre-launched VMs and Post-launched VMs are
allowed by design. Revert ('misc: configurator: add check
for uniqueness of cpus in Pre-launched VM') | </xs:annotation>
</xs:assert>
- <xs:assert test="every $pcpu in /acrn-config/vm[load_order = 'PRE_LAUNCHED_VM']//cpu_affinity//pcpu_id satisfies
- count(/acrn-config/vm[@id != $pcpu/ancestor::vm//companion_vmid ]//cpu_affinity[.//pcpu_id = $pcpu]) <= 1">
- <xs:annotation acrn:severity="error" acrn:report-on="//vm//c... |
mesh: Remove redundant initialization
This for loop runs inside an "if (!sub)" branch, so explicitly setting
sub to NULL in the loop is redundant. | @@ -2011,7 +2011,7 @@ static void net_key_add(struct bt_mesh_model *model,
if (!sub) {
int i;
- for (sub = NULL, i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) {
+ for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) {
if (bt_mesh.sub[i].net_idx == BT_MESH_KEY_UNUSED) {
sub = &bt_mesh.sub[i];
break;
|
Fix typo in db-timeout help. | <summary>Database query timeout.</summary>
<text>
- <p>Sets the timeout, in seconds, for queries against the database. This includes the <code>pg_start_backup()</code> and <code>pg_stop_backup()</code> functions which can each take a substantial amount of time. Because of this the timeout should be kept high unless you... |
BugID:19860917:Add wifi connect error code in debug info | @@ -57,8 +57,6 @@ extern int inic_stop(void);
extern struct netif xnetif[NET_IF_NUM];
-unsigned char enable_softap_adjust_phy = 0;
-
/******************************************************
* Variables Definitions
******************************************************/
@@ -1922,7 +1920,7 @@ static void wifi_autoreconnec... |
ledc: Do not drive output during init if the output is inverted | @@ -638,6 +638,7 @@ esp_err_t ledc_channel_config(const ledc_channel_config_t *ledc_conf)
);
/*set LEDC signal in gpio matrix*/
gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[gpio_num], PIN_FUNC_GPIO);
+ gpio_set_level(gpio_num, output_invert);
gpio_set_direction(gpio_num, GPIO_MODE_OUTPUT);
esp_rom_gpio_connect_out_signal(g... |
Fixed formatting of memory operands with explicit segment register | @@ -222,6 +222,7 @@ static ZydisStatus ZydisFormatOperandMemIntel(const ZydisFormatter* formatter, Z
ZYDIS_CHECK(formatter->funcPrintRegister(formatter, string, instruction, operand,
operand->mem.segment, userData));
ZYDIS_CHECK(ZydisStringAppendC(string, ":"));
+ break;
case ZYDIS_REGISTER_SS:
if ((formatter->forceMem... |
admin/ganglia: minimum rrdtool-devel version | @@ -42,7 +42,7 @@ Patch4: disk_monitoring.patch
%if 0%{?systemd}
BuildRequires: systemd
%endif
-BuildRequires: rrdtool > 1.4.7
+BuildRequires: rrdtool-devel > 1.4.7
BuildRequires: libpng-devel
BuildRequires: libart_lgpl-devel
BuildRequires: libconfuse-devel
|
docs: fix version specific note on local build | @@ -207,7 +207,7 @@ def get_version():
return (branch, "branch", False)
# Try to find the branch name even if docs are built locally
- branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).decode('utf-8')
+ branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"]).strip().d... |
Fix windows requiring explicit cast in LMS calloc | @@ -603,7 +603,9 @@ int mbedtls_lms_generate_private_key( mbedtls_lms_private_t *ctx,
goto exit;
}
- ctx->ots_private_keys = mbedtls_calloc( MERKLE_TREE_LEAF_NODE_AM(ctx->params.type),
+ /* Requires a cast to size_t to avoid an implicit cast warning on certain
+ * platforms (particularly Windows) */
+ ctx->ots_private_... |
SOVERSION bump to version 2.1.20 | @@ -67,7 +67,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 2)
set(LIBNETCONF2_MINOR_SOVERSION 1)
-set(LIBNETCONF2_MICRO_SOVERSION 19)
+set(LIB... |
feat: add default application/x-www-form-urlencoded header field | @@ -23,6 +23,7 @@ slack_adapter_init(struct slack_adapter *adapter, const char config_file[])
ASSERT_S(ret < sizeof(auth), "Out of bounds write attempt");
ua_reqheader_add(adapter->ua, "Authorization", auth);
+ ua_reqheader_add(adapter->ua, "Content-type", "application/x-www-form-urlencoded");
free(token);
}
|
docket: bind /who.json | (~(connect pass /eyre) [~ /] %docket)
(~(wait pass /init) (add 1 now.bowl))
(~(connect pass /eyre) [~ /apps] %docket)
+ (~(arvo pass /eyre) %e %serve [~ /who] %base /gen/who/hoon ~)
==
::
++ on-load
|^
=. -.state old
=. +.state inflate-cache
- `this
+ :_ this
+ [(~(arvo pass /eyre) %e %serve [~ /who] %base /gen/who/hoo... |
porting/examples: Fix build error on linux
Since 'using namespace std' was removed from public header it is
needed to explicitly use it when using std::list | template <typename T> class wqueue
{
- list<T> m_queue;
+ std::list<T> m_queue;
pthread_mutex_t m_mutex;
pthread_mutexattr_t m_mutex_attr;
pthread_cond_t m_condv;
|
viosock: Improved socket cleanup on close | @@ -903,15 +903,32 @@ VIOSockClose(
IN WDFFILEOBJECT FileObject
)
{
- PDEVICE_CONTEXT pContext = GetDeviceContext(WdfFileObjectGetDevice(FileObject));
PSOCKET_CONTEXT pSocket = GetSocketContext(FileObject);
+ WDFREQUEST Request;
- TraceEvents(TRACE_LEVEL_INFORMATION, DBG_CREATE_CLOSE,
- "--> %s\n", __FUNCTION__);
+ PAG... |
BugID:17023372:[mqtt] fix memleak if IOT_SetupConnInfo() failed | @@ -3390,6 +3390,7 @@ void *IOT_MQTT_Construct(iotx_mqtt_param_t *pInitParams)
int ret = IOT_SetupConnInfo(product_key, device_name, device_secret, (void **)&pconn_info);
if (ret != SUCCESS_RETURN) {
+ mqtt_free(mqtt_params);
return NULL;
}
/* Initialize MQTT parameter */
|
Documentation: remove references to 'non-critical' in the Change Sensor command. | @@ -18,8 +18,7 @@ AlarmThreshold=(temperature) EnabledState=(0|1)
DESCRIPTION
-----------
-Changes the non-critical alarm threshold or enabled state for one or more DCPMMs
-sensors.
+Changes the alarm threshold or enabled state for one or more DCPMMs sensors.
Use the command Show Sensor to view the current settings.
OP... |
Tweak parser docs | @@ -1247,9 +1247,9 @@ static const JanetReg parse_cfuns[] = {
JDOC("(parser/status parser)\n\n"
"Gets the current status of the parser state machine. The status will "
"be one of:\n\n"
- "\t:pending - a value is being parsed.\n"
- "\t:error - a parsing error was encountered.\n"
- "\t:root - the parser can either read m... |
tests: wait for gpg-agent to properly shutdown | @@ -50,6 +50,13 @@ static inline void test_teardown (void)
// always return 0 (see source code of GnuPG).
waitpid (pid, &status, 0);
succeed_if (status != -1, "failed to execute gpg-connect-agent");
+
+ // wait for the agent to properly shut down
+ if (status > 0)
+ {
+ pid = status;
+ waitpid (pid, &status, 0);
+ }
}
... |
enable slurm | %define PNAME %(echo %{pname} | tr [a-z] [A-Z])
# This allows us to pick up the default value from the configure
-%define with_slurm @with_slurm@
+%{!?with_slurm: %global with_slurm yes}
%if "%{with_slurm}" == "yes"
%global slurm 1
%else
@@ -55,7 +55,7 @@ Development files for Singularity
%package -n singularity-slurm%... |
indirect changes, use linf norm | #include "private.h"
#define CG_BEST_TOL (1e-12)
-#define CG_BASE_TOL (1.)
+#define CG_BASE_TOL (10.)
+
+/* Use the L2-norm or Linf-norm */
+#define USE_L2_TOL_CG_NORM (0)
+#if USE_L2_TOL_CG_NORM > 0
+#define CG_NORM SCS(norm)
+#else
+#define CG_NORM SCS(norm_inf)
+#endif
char *SCS(get_lin_sys_method)(const ScsMatrix *... |
Fix default settings - USE_TLS and USE_SIMPLE_THREADED_LEVEL3 should both be off | @@ -107,13 +107,13 @@ BUILD_LAPACK_DEPRECATED = 1
# BUILD_RELAPACK = 1
# If you want to use legacy threaded Level 3 implementation.
-USE_SIMPLE_THREADED_LEVEL3 = 1
+# USE_SIMPLE_THREADED_LEVEL3 = 1
# If you want to use the new, still somewhat experimental code that uses
# thread-local storage instead of a central memor... |
doc: fixed API.md | @@ -9,18 +9,14 @@ This file is for reference purposes only. It is intended for tracking the Mobile
* [Loading Map Data](loading_data.md)
* [Developer Guide to SDK Features](developer_guide.md)
* [Mobile Routing](routing.md)
+* [Mobile Geocoding](geocoding.md)
+* [Package Manager](packagemanager.md)
+* [Custom Offline D... |
BugID:17515252: fix module=gprs.sim800 compile problem | @@ -804,8 +804,12 @@ int HAL_SAL_Close(int fd, int32_t remote_port)
return ret;
}
-int HAL_SAL_Send(int fd, uint8_t *data, uint32_t len,
- char remote_ip[16], int32_t remote_port)
+int HAL_SAL_Send(int fd,
+ uint8_t *data,
+ uint32_t len,
+ char remote_ip[16],
+ int32_t remote_port,
+ int32_t timeout)
{
int linkid;
cha... |
httpd: add CORS header in http reply | @@ -102,11 +102,16 @@ static int html_print_raw(struct re_printf *pf, const struct pl *prm)
static void http_req_handler(struct http_conn *conn,
const struct http_msg *msg, void *arg)
{
+ struct mbuf *mb;
int err;
char *buf = NULL;
struct pl nprm;
(void)arg;
+ mb = mbuf_alloc(8192);
+ if (!mb)
+ return;
+
err = re_sdpr... |
Accept NULL filenames in hrnStorageInfoListCallback().
This allows it to be used with StorageInfo objects returned from storageInfo(), which do not contain a filename. | @@ -71,7 +71,7 @@ hrnStorageInfoListCallback(void *callbackData, const StorageInfo *info)
if (data->rootPathOmit && info->type == storageTypePath && strEq(info->name, DOT_STR))
return;
- strCatFmt(data->content, "%s {", strZ(info->name));
+ strCatFmt(data->content, "%s {", info->name == NULL ? NULL_Z : strZ(info->name)... |
Use consistent dname buffer sizes for RPZ | @@ -647,7 +647,7 @@ rpz_find_zone(struct rpz* r, uint8_t* qname, size_t qname_len, uint16_t qclass,
{
uint8_t* ce;
size_t ce_len, ce_labs;
- uint8_t wc[LDNS_MAX_DOMAINLEN];
+ uint8_t wc[LDNS_MAX_DOMAINLEN+1];
int exact;
struct local_zone* z = NULL;
if(wr) {
|
api: Enable UNMAP command
This will depend on the handlers, if the current handler support
the UNMAP command, it should set the tcmur_handler.flags. | @@ -334,6 +334,8 @@ int tcmu_emulate_evpd_inquiry(
size_t iov_cnt,
uint8_t *sense)
{
+ struct tcmur_handler *rhandler = tcmu_get_runner_handler(dev);
+
switch (cdb[2]) {
case 0x0: /* Supported VPD pages */
{
@@ -648,6 +650,14 @@ finish_page83:
*/
data[5] = 0x04;
+ /*
+ * The logical block provisioning unmap (LBPU) fiel... |
Add verification of the result for flang-272730 | @@ -3,8 +3,11 @@ program loop_test
implicit none
integer :: i
complex :: C,D
+ complex :: C_ref,D_ref
C=(0,0)
D=(1,2)
+ C_ref=(0,0)
+ D_ref=(1,2)
!$OMP TARGET PARALLEL DO REDUCTION(+:C)
do i=1, 10
@@ -12,7 +15,16 @@ program loop_test
end do
!$OMP END TARGET PARALLEL DO
+ do i=1, 10
+ C_ref=C_ref+EXP(D_ref)
+ end do
+
w... |
mangle: remove memset | @@ -370,7 +370,6 @@ static void mangle_Expand(honggfuzz_t * hfuzz UNUSED, fuzzer_t * fuzzer)
mangle_Inflate(hfuzz, fuzzer, off, len);
mangle_Move(fuzzer, off, off + len, fuzzer->dynamicFileSz);
- memset(fuzzer->dynamicFile, '\0', len);
}
static void mangle_Shrink(honggfuzz_t * hfuzz UNUSED, fuzzer_t * fuzzer)
|
Fixed build errors for python board. | @@ -721,6 +721,10 @@ functionsToChange = [
'openudp_receive',
'openudp_debugPrint',
'openudp_register',
+ 'openudp_sendDone_default_handler',
+ 'openudp_receive_default_handler',
+ 'udp_send_done_callback_ptr',
+ 'udp_receive_done_callback_ptr',
# rsvp
'rsvp_qos_request',
'rsvp_timer_cb',
|
lib/pill: try to fix %bill (might still be broken) | :: |pill: helper functions for making pills
::
+/- *bill
/$ weft-to-mime %kelvin %mime
+/$ bill-to-mime %bill %mime
^?
|%
::
/ted :: :spider strands
/tests :: unit tests
/web :: %eyre web content
+ /desk
==
|= bas=path
^- unix-event
=/ weft ,[lal=@tas num=@ud] :: TODO remove after merge
=/ dat .^(weft %cx pax)
q:(weft-... |
os/arch/xtensa: change argment of function board_app_initialize() in defination;
make sure function board_app_initialize() be same with its prototype in os\include\tinyara\board.h; | * called directly from application code, but only indirectly via the
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
*
- * Input Parameters:
- * arg - The boardctl() argument is passed to the board_app_initialize()
- * implementation without modification. The argument has no
- * meaning to NuttX;... |
[viostor] BZ#1691209 fix viostor.x64.SDV.Rule.nullcheck issue | @@ -905,8 +905,7 @@ VirtIoStartIo(
}
if (!cdb) {
- RhelDbgPrint(TRACE_LEVEL_ERROR, " no CDB (%p) Function %x, OperationCode %x\n",
- Srb, SRB_FUNCTION(Srb), cdb->CDB6GENERIC.OperationCode);
+ RhelDbgPrint(TRACE_LEVEL_ERROR, " no CDB (%p) Function %x\n", Srb, SRB_FUNCTION(Srb));
CompleteRequestWithStatus(DeviceExtension... |
Arithmetic on a pointer to void is a GNU extension. | @@ -810,7 +810,7 @@ done:
/* We are reading a whole packet;
* Move the rest of the data to overwrite the PROXYv2 header */
/* XXX can we do better to avoid memmove? */
- memmove(header, ((void*)header)+size,
+ memmove(header, ((char*)header)+size,
sldns_buffer_limit(buf)-size);
sldns_buffer_set_limit(buf, sldns_buffer_... |
linux-cp: Cleanup any existing pairs when an interface is deleted
Type: fix
This only happens when the user deletes the physical before they delete the pair, that's not supoosed to be the case, but don't crash if it is. | @@ -510,6 +510,23 @@ lcp_itf_pair_delete (u32 phy_sw_if_index)
return 0;
}
+/**
+ * lcp_itf_interface_add_del
+ *
+ * Registered to receive interface Add and delete notifications
+ */
+static clib_error_t *
+lcp_itf_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
+{
+ if (!is_add)
+ /* remove any inte... |
Use mbedtls_get_mode_from_ciphersuite() in server-side ssl_write_encrypt_then_mac_ext() | @@ -1978,13 +1978,6 @@ static void ssl_write_encrypt_then_mac_ext( mbedtls_ssl_context *ssl,
{
unsigned char *p = buf;
const mbedtls_ssl_ciphersuite_t *suite = NULL;
-#if defined(MBEDTLS_USE_PSA_CRYPTO)
- psa_key_type_t key_type;
- psa_algorithm_t alg;
- size_t key_bits;
-#else
- const mbedtls_cipher_info_t *cipher = N... |
cmake REFACTOR update findpcre2 module | # PCRE2_INCLUDE_DIRS - where to find pcre.h, etc.
# PCRE2_LIBRARIES - List of libraries when using pcre.
# PCRE2_FOUND - True if pcre found.
+include(FindPackageHandleStandardArgs)
-# Look for the header file.
-FIND_PATH(PCRE2_INCLUDE_DIR pcre2.h)
+if(PCRE2_LIBRARIES AND PCRE2_INCLUDE_DIRS)
+ # in cache already
+ set(P... |
do not directly install on macos | @@ -61,7 +61,7 @@ install:
@# install the xmake directory
@cp -r xmake/* $(xmake_dir_install)
@# make the xmake loader
-ifeq (,$(filter $(PLAT),linux macosx))
+ifneq ($(PLAT),linux)
@echo '#!/bin/bash' > $(xmake_loader)
@echo 'export XMAKE_PROGRAM_DIR=$(xmake_dir_install)' >> $(xmake_loader)
@echo '$(xmake_core_install... |
publish: only original author can edit notes | @@ -138,13 +138,10 @@ export class Note extends Component {
let editPost = null;
let editUrl = props.location.pathname + "/edit";
- if (notebook["writers-group-path"] in props.groups) {
- let writers = notebook["writers-group-path"];
- if (props.groups[writers].has(window.ship)) {
+ if (`~${window.ship}` === author) {
... |
BugId:19028262: Fix patten to match App Null | @@ -170,7 +170,7 @@ def create_app_config_in(config_file, config_list):
def update_top_config_in(top_config_in):
""" Extra updates for build/Config.in """
contents = []
- patten = re.compile(r"NULL|Null")
+ patten = re.compile(r".*(NULL|Null).*")
with open (top_config_in, "r") as cf:
for line in cf.readlines():
match =... |
Remove already acknowledged CRYPTO
even if it has NGTCP2_RTB_FLAG_CRYPTO_TIMEOUT_RETRANSMITTED is set. | @@ -577,15 +577,12 @@ int ngtcp2_rtb_on_crypto_timeout(ngtcp2_rtb *rtb, ngtcp2_frame_chain **pfrc) {
for (; !ngtcp2_ksl_it_end(&it);) {
ent = ngtcp2_ksl_it_get(&it);
- if ((ent->flags & (NGTCP2_RTB_FLAG_CRYPTO_TIMEOUT_RETRANSMITTED |
- NGTCP2_RTB_FLAG_PROBE)) ||
+ if ((ent->flags & NGTCP2_RTB_FLAG_PROBE) ||
!(ent->flag... |
Always update cells on file browser | @@ -569,45 +569,9 @@ protocol DocumentBrowserViewControllerDelegate {
cell = collectionView.dequeueReusableCell(withReuseIdentifier: "File", for: indexPath) as! FileCollectionViewCell
}
- DispatchQueue.global().async {
- let file = cell.file
- let script = self.scripts[indexPath.row]
-
- var textView: SyntaxTextView? {... |
ci: capture more logs | @@ -53,13 +53,16 @@ jobs:
- name: Test
run: |
+ ulimit -c unlimited
meson test -C builddir --setup=ci --print-errorlogs --no-stdsplit
- uses: actions/upload-artifact@v2
if: failure()
with:
- name: build-artifact-${{ matrix.os }}-${{ matrix.buildtype }}
- path: builddir/meson-logs/
+ name: build-artifact-${{ matrix.os }... |
Consider latest master branch updates | @@ -82,19 +82,10 @@ void DeRestPluginPrivate::handleXiaomiLumiClusterIndication(const deCONZ::ApsDat
if (sensor)
{
- quint8 sensitivity = attr.numericValue().u8;
- item = sensor->item(RConfigSensitivity);
-
- if (item && item->toNumber() != sensitivity)
- {
- item->setValue(sensitivity);
- enqueueEvent(Event(RSensors, ... |
Add php major and minor version to the package name | @@ -1524,28 +1524,14 @@ if(${TINYSPLINE_BINDING_REQUESTED})
# PHP
if(${TINYSPLINE_ENABLE_PHP})
find_package(
- PHP
+ PHP 7
COMPONENTS Zend
REQUIRED
)
- if(${PHP_VERSION_NUMBER} VERSION_GREATER_EQUAL 7 AND ${SWIG_VERSION}
- VERSION_LESS 3.0.11
- )
- message(FATAL_ERROR "PHP 7 (and later) requires Swig 3.0.11 or later")
... |
Use a symlink instead of copying the file | @@ -152,9 +152,8 @@ def main():
(temp / 'logs').mkdir()
confdir = (temp / 'conf')
confdir.mkdir()
- with (confdir / 'dynomite.pem').open('wb') as dst_fh:
- with open('conf/dynomite.pem', 'rb') as src_fh:
- dst_fh.write(src_fh.read())
+
+ LocalPath('../../conf/dynomite.pem').symlink(confdir / 'dynomite.pem')
ips = gener... |
Fix a few lint warnings in printf tests | @@ -4,19 +4,21 @@ int main()
{
printf("<%d>\n", 12345678); // CHECK: <12345678>
printf("<%d>\n", -2); // CHECK: <-2>
- printf("<%u>\n", 452345), // CHECK: <452345>
- printf("<%u>\n", -2); // CHECK: <4294967294>
- printf("<%Ld>\n", 37036629630LL); // CHECK: <37036629630>
- printf("<%Ld>\n", -37036629630LL); // CHECK: <-... |
UUU+DDD now required to save | @@ -983,7 +983,7 @@ void findprotocol(void) {
//lastlooptime = gettime();
if(RXProtocol != RX_PROTOCOL_INVALID){
- rx_bind_enable = 1;
+ //rx_bind_enable = 1; NFE doesn't like this, and is convincing.
}
if(protocolDetectTimer > 4000){ //4000 loops, half a second
|
asctime_r: add param check to asctime_r() | #include <nuttx/time.h>
+/****************************************************************************
+ * Pre-processor definitions
+ ****************************************************************************/
+
+#ifndef ARRAY_SIZE
+# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
/*********************... |
Fix comment in be-secure-openssl.c
Since hardcoded DH parameters have been moved to a different
file, making the comment on top of load_dh_buffer() incorrect.
Author: Daniel Gustafsson
Discussion: | @@ -872,8 +872,9 @@ load_dh_file(char *filename, bool isServerStart)
/*
* Load hardcoded DH parameters.
*
- * To prevent problems if the DH parameters files don't even
- * exist, we can load DH parameters hardcoded into this file.
+ * If DH parameters cannot be loaded from a specified file, we can load
+ * the hardcode... |
sdl/log: add typedef for SDL_LogCategory when using SDL2 <= 2.0.10 | @@ -43,6 +43,16 @@ static inline void _SDL_LogMessage(int category, SDL_LogPriority priority, const
{
SDL_LogCritical(category, "%s", fmt);
}
+
+#if !(SDL_VERSION_ATLEAST(2,0,12))
+
+#if defined(WARN_OUTDATED)
+#pragma message("SDL_LogCategory is not supported before SDL 2.0.12")
+#endif
+
+typedef int SDL_LogCategory;... |
fix the crash when http2_request example send/recv fail | @@ -145,6 +145,7 @@ static void http2_task(void *args)
}
sh2lib_free(&hd);
+ vTaskDelete(NULL);
}
static esp_err_t event_handler(void *ctx, system_event_t *event)
|
Modified geocoding package URLs | @@ -38,7 +38,7 @@ namespace carto {
baseURL = ROUTING_PACKAGE_LIST_URL + NetworkUtils::URLEncode(packageSource.id) + "/1/packages.json";
}
else if (packageSource.type == "geocoding") {
- baseURL = GEOCODING_PACKAGE_LIST_URL + NetworkUtils::URLEncode(packageSource.id) + "/packages.json";
+ baseURL = GEOCODING_PACKAGE_LI... |
fix(ec11): allow more than one encoder
Fixes "device.h:101:11: error: redefinition of '__device_ec11'" in firmware that
has more than one encoder. | @@ -142,7 +142,7 @@ int ec11_init(struct device *dev) {
.b_flags = DT_INST_GPIO_FLAGS(n, b_gpios), \
COND_CODE_0(DT_INST_NODE_HAS_PROP(n, resolution), (1), (DT_INST_PROP(n, resolution))), \
}; \
- DEVICE_AND_API_INIT(ec11, DT_INST_LABEL(n), ec11_init, &ec11_data_##n, &ec11_cfg_##n, \
+ DEVICE_AND_API_INIT(ec11_##n, DT_... |
Curlget: Ignore warnings about unused results | @@ -13,6 +13,7 @@ if (DEPENDENCY_PHASE)
if (OPENSSL_FOUND AND CURL_FOUND)
set (CURLGET_INCLUDE_DIRS ${CURL_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIRS})
set (CURLGET_LIBRARY_DIRS ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
+ set_source_files_properties (curlget.c PROPERTIES COMPILE_FLAGS "-Wno-unused-result")
endif ()
endif ()
|
Lib preference order now based on whether we're building dynamic or static libs. | @@ -17,6 +17,7 @@ find_path(LibCrypto_INCLUDE_DIR
HINTS ${CMAKE_INSTALL_PREFIX}/include
)
+if (BUILD_SHARED_LIBS)
find_library(LibCrypto_LIBRARY
NAMES libcrypto.so libcrypto.a
HINTS ${CMAKE_INSTALL_PREFIX}/build/crypto
@@ -24,6 +25,15 @@ find_library(LibCrypto_LIBRARY
${CMAKE_INSTALL_PREFIX}
${CMAKE_INSTALL_PREFIX}/lib... |
configure.ac: bump required gettext version to 0.19
0.19 should be common
see | @@ -18,7 +18,7 @@ AC_PROG_CC
AM_PROG_CC_C_O
AM_GNU_GETTEXT([external])
-AM_GNU_GETTEXT_VERSION([0.18])
+AM_GNU_GETTEXT_VERSION([0.19])
# Fix `undefined reference to `libintl_gettext'` on docker:
AC_CHECK_LIB([intl], [libintl_dgettext])
|
fix wine virtual desktops | @@ -1999,7 +1999,7 @@ manage(Window w, XWindowAttributes *wa)
createdesktop();
}
- if (animated) {
+ if (animated && !c->isfullscreen) {
resizeclient(c, c->x, c->y - 70, c->w, c->h);
animateclient(c,c->x, c->y + 70, 0,0,7,0);
if (c->w > selmon->mw - 30 || c->h > selmon->mh - 30)
|
frsky: only use telemetry on fcs with a pa | //Source https://www.rcgroups.com/forums/showpost.php?p=21864861
+#ifdef USE_CC2500_PA_LNA
#define FRSKY_ENABLE_TELEMETRY
-//#define FRSKY_ENABLE_HUB_TELEMETRY
+#define FRSKY_ENABLE_HUB_TELEMETRY
+#endif
#define FRSKY_D8_CHANNEL_COUNT 8
#define FRSKY_D8_HUB_FIRST_USER_ID 0x31
@@ -185,7 +187,9 @@ static uint8_t frsky_d8... |
refactors _proxy_ward_start() and _proxy_ward_plan() | @@ -2299,6 +2299,23 @@ _proxy_ward_timer_cb(uv_timer_t* tim_u)
static void
_proxy_ward_plan(u3_ward* rev_u)
{
+ u3_noun non;
+
+ {
+ c3_w* non_w = c3_malloc(64);
+ c3_w len_w;
+
+ c3_rand(non_w);
+
+ non = u3i_words(16, non_w);
+ len_w = u3r_met(3, non);
+
+ // the nonce is saved to authenticate u3_wcon
+ // and will b... |
CalmEngine: do not wait for success | @@ -3,11 +3,10 @@ import {
Text
} from '@tlon/indigo-react';
-import { Form, Formik, FormikHelpers } from 'formik';
+import { Form } from 'formik';
import React, { useCallback } from 'react';
import GlobalApi from '~/logic/api/global';
-import useSettingsState, { selectSettingsState, SettingsState } from '~/logic/state... |
Fix build errror from commit | @@ -431,7 +431,7 @@ BOOLEAN PhUiConnectToPhSvcEx(
{
PhAcquireQueuedLockExclusive(&PhSvcStartLock);
- if (_InterlockedExchange(PhSvcReferenceCount, 0) == 0)
+ if (_InterlockedExchange(&PhSvcReferenceCount, 0) == 0)
{
started = FALSE;
PhpGetPhSvcPortName(Mode, &portName);
|
Add ASSERT command ready to be used | @@ -129,6 +129,7 @@ typedef enum
WRITE_NODE_ID, /*!< Get and save a new given node ID. */
RESET_DETECTION, /*!< Reset detection*/
SET_BAUDRATE, /*!< Set Robus baudrate*/
+ ASSERT, /*!< Node Assert message (only broadcast with a source as a node */
ROBUS_PROTOCOL_NB,
} robus_cmd_t;
|
haskell-cabal-sandboxing: fix build due to caching change | @@ -119,7 +119,8 @@ before_script:
- >
[[ "$TRAVIS_OS_NAME" == "linux" ]] && INSTALL_DIR="$PWD/install" || INSTALL_DIR="/usr/local"
- SYSTEM_DIR="$PWD/kdbsystem"
- - mkdir build && cd build
+ # it might be partially cached due to the cabal sandbox caching
+ - cd build || mkdir build && cd build
- >
[[ $ASAN == ON ]] &&... |
Update CMakeLists.txt (Typo) | @@ -9,7 +9,7 @@ option(PANDORA "Set to ON if targeting an OpenPandora device" ${PANDORA})
option(PYRA "Set to ON if targeting an OpenPandora device" ${PYRA})
option(RPI2 "Set to ON if targeting an RaspberryPI2 device" ${RPI2})
option(RPI3 "Set to ON if targeting an RaspberryPI3 device" ${RPI3})
-option(RPI4 "Set to ON ... |
docs: Fix jerry_get_property API example
The first paramter of the function should be 'global_object' instead of obj_val
in this case.
JerryScript-DCO-1.0-Signed-off-by: Adam Kallai | @@ -3792,7 +3792,7 @@ jerry_get_property (const jerry_value_t obj_val,
jerry_value_t global_object = jerry_get_global_object ();
jerry_value_t prop_name = jerry_create_string ((const jerry_char_t *) "my_prop");
- jerry_value_t prop_value = jerry_get_property (obj_val, prop_name);
+ jerry_value_t prop_value = jerry_get_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.