message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
doc: add missing empty value for `kdb set` | @@ -32,7 +32,7 @@ if is_plugin_available dump && is_plugin_available list && is_plugin_available s
[ $? != 0 ]
succeed_if "getting cascading should fail if nothing is there"
- "$KDB" set spec:$ROOT_MOUNTPOINT/test > /dev/null
+ "$KDB" set spec:$ROOT_MOUNTPOINT/test "" > /dev/null
succeed_if "could not create key"
"$KDB... |
Action SW: Include snap_env.sh in make process | # limitations under the License.
#
+-include $(SNAP_ROOT)/snap_env.sh
+
ifndef PSLSE_ROOT
# FIXME If we find a better way to do the following, let us know:
# Environment variable PSLSE_ROOT defined by hardware setup scripts.
|
gall: style indentation | %huck note-arvo.neet
%agent [%g %deal [our ship.neet] [name deal]:neet]
==
- [system-duct.state %pass wire note-arvo]~
+ [duct %pass wire note-arvo]~
==
:: +ap-breach: ship breached, so forget about them
::
(on-bad-nonce nonce.u.got)
run-sign
::
+ ++ sub-key [agent-wire dock]
+ ++ ingest (ap-ingest ~ |.((on-agent:ap-ag... |
ec_commands: Add GENMASK macros
GENMASK is used in ec_commands.h, but is not defined if not compiling in
kernel or Chrome OS EC environments.
BRANCH=none
TEST=make buildall | @@ -56,6 +56,14 @@ extern "C" {
#define BIT_ULL(nr) (1ULL << (nr))
#endif
+#ifndef GENMASK
+#define GENMASK(h, l) (((BIT(h) << 1) - 1) ^ (BIT(l) - 1))
+#endif
+
+#ifndef GENMASK_ULL
+#define GENMASK_ULL(h, l) (((BIT_ULL(h) << 1) - 1) ^ (BIT_ULL(l) - 1))
+#endif
+
#endif /* __KERNEL__ */
/*
|
ignores our own route updates in :dns | ++ rove
|= [wir=wire p=ship q=lane:ames]
^- (quip move _this)
+ :: XX move to %ames
+ ?: =(our.bow p)
+ [~ this]
?. =(our.bow (sein:title p)) :: XX check will
~& [%rove-false p]
[~ this]
|
Fix debug message for wifi.sta.getrssi() | @@ -1168,7 +1168,7 @@ static int wifi_station_status( lua_State* L )
// Lua: wifi.sta.getrssi()
static int wifi_station_getrssi( lua_State* L ){
sint8 rssival=wifi_station_get_rssi();
- NODE_DBG("\n\tRSSI is %i\n", rssival);
+ NODE_DBG("\n\tRSSI is %d\n", rssival);
if (rssival<10)
{
lua_pushinteger(L, rssival);
|
decrease left/right animation duration | @@ -4508,7 +4508,7 @@ animleft(const Arg *arg) {
}
c = selmon->sel;
- animateclient(c, c->x + 50, c->y, 0,0,10,1);
+ animateclient(c, c->x + 50, c->y, 0,0,6,1);
viewtoleft(arg);
}
@@ -4521,12 +4521,11 @@ animright(const Arg *arg) {
}
c = selmon->sel;
- animateclient(c, c->x - 50, c->y, 0,0,10,1);
+ animateclient(c, c->... |
Updated AUTHORS with the latest changes. | @@ -10,6 +10,7 @@ Special thanks to the following individuals for their great contributions:
* aishikoyo <aixxx033@umn.edu>
* Alan Placidina <noreply@github.com>
* Alexander Eifler <noreply@github.com>
+ * Alexandre GUIOT--VALENTIN <contact@alexandregv.fr>
* Alexandre Perrin <noreply@github.com>
* A. Nackov <anackov@gm... |
Update CMake configuration for VSCode settings. | "cmake.configureSettings": {
"LIBTCOD_SAMPLES": "ON",
"LIBTCOD_TESTS": "ON",
+ "LIBTCOD_THREADS": "OFF",
"LIBTCOD_SDL2": "find_package", // find_package | disable
"LIBTCOD_ZLIB": "find_package",
"LIBTCOD_GLAD": "find_package", // find_package | vendored
"LIBTCOD_LODEPNG": "find_package",
"LIBTCOD_UTF8PROC": "vcpkg",
- ... |
ci: revert the removal of -it from docker options | @@ -3,7 +3,7 @@ SRC_DIR=/h2o
CHECK_MK=$(SRC_DIR)/misc/docker-ci/check.mk
CMAKE_ARGS=
FUZZ_ASAN=ASAN_OPTIONS=detect_leaks=0
-DOCKER_RUN_OPTS=--privileged -v `pwd`:$(SRC_DIR) -v /sys/kernel/debug:/sys/kernel/debug --add-host=127.0.0.1.xip.io:127.0.0.1
+DOCKER_RUN_OPTS=--privileged -v `pwd`:$(SRC_DIR) -v /sys/kernel/debug... |
Fix condition in mbedtls_ssl_get_record_expansion | @@ -5101,7 +5101,7 @@ int mbedtls_ssl_get_record_expansion( const mbedtls_ssl_context *ssl )
{
transform_expansion = transform->minlen;
}
- else if ( transform->psa_alg )
+ else if ( transform->psa_alg == PSA_ALG_CBC_NO_PADDING )
{
(void) psa_get_key_attributes( transform->psa_key_enc, &attr );
key_type = psa_get_key_t... |
Added github.com/BurntSushi/toml to whitelist | @@ -6,6 +6,9 @@ ALLOW .* -> vendor/github.com/alicebob/miniredis
# AWS client libraries
ALLOW .* -> vendor/github.com/aws/aws-sdk-go
+# TOML parser/encoder with reflection
+ALLOW .* -> vendor/github.com/BurntSushi/toml
+
# helpers for data sizes (kilobytes, petabytes), human readable sizes, parsing
ALLOW .* -> vendor/g... |
main shm BUGFIX for keeping previous permissions -1 is used
Fixes | @@ -1376,7 +1376,7 @@ sr_shmmain_check_data_files(sr_main_shm_t *main_shm)
cur_group = group;
}
if (perm == cur_perm) {
- cur_perm = 0;
+ cur_perm = (mode_t)-1;
} else {
cur_perm = perm;
}
@@ -1425,7 +1425,7 @@ sr_shmmain_check_data_files(sr_main_shm_t *main_shm)
cur_group = group;
}
if (perm == cur_perm) {
- cur_perm ... |
Fixed script review when using multi panel text | @@ -4,14 +4,12 @@ import * as actions from "../../actions";
import PageHeader from "../../components/library/PageHeader";
import PageContent from "../../components/library/PageContent";
import ScriptReviewLine from "../../components/script/ScriptReviewLine";
-import trimlines from "../../lib/helpers/trimlines";
import ... |
edit diff BUGFIX remove invalid internal error | @@ -2064,7 +2064,6 @@ sr_edit_apply_replace(struct lyd_node *match_node, int val_equal, const struct l
lyrc = lyd_change_term(match_node, lyd_get_value(edit_node));
if (lyrc && (lyrc != LY_EEXIST)) {
free(prev_val);
- SR_ERRINFO_INT(&err_info);
return err_info;
}
|
BugID:18537059: fix the white scan problem of forward null in LoRaMacCommands.c | @@ -374,7 +374,7 @@ static bool mcLinkedListInit( MacMcCommandsList_t* list )
static bool mcLinkedListAdd( MacMcCommandsList_t* list, MacMcCommand_t* element )
{
- if( ( list == 0 ) && ( element == 0 ) )
+ if( ( list == 0 ) || ( element == 0 ) )
{
return false;
}
@@ -402,7 +402,7 @@ static bool mcLinkedListAdd( MacMcCo... |
revert the changes of bsp_radio project. | @@ -26,8 +26,8 @@ end of frame event), it will turn on its error LED.
#define LENGTH_PACKET 125+LENGTH_CRC ///< maximum length is 127 bytes
#define CHANNEL 11 ///< 11=2.405GHz
-#define TIMER_PERIOD 0xfff ///< 0xffff = 2s@32kHz
-#define ID 0x66 ///< byte sent in the packets
+#define TIMER_PERIOD 0xffff ///< 0xffff = 2s@... |
jit: Don't inline functions that access thread-locals.
Code inlined by LLVM can crash or fail with "Relocation type not
implemented yet!" if it tries to access thread local variables. Don't
inline such code.
Back-patch to 11, where LLVM arrived. Bug
Author: Dmitry Marakasov
Discussion: | @@ -608,6 +608,17 @@ function_inlinable(llvm::Function &F,
if (rv->materialize())
elog(FATAL, "failed to materialize metadata");
+ /*
+ * Don't inline functions that access thread local variables. That
+ * doesn't work on current LLVM releases (but might in future).
+ */
+ if (rv->isThreadLocal())
+ {
+ ilog(DEBUG1, "c... |
tools/ci/docker/linux/Dockerfile: Install CodeChecker and requirements(clang, clang-tidy) | @@ -229,6 +229,8 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q
gcc \
gcc-avr \
gcc-multilib \
+ clang \
+ clang-tidy \
gettext \
git \
lib32z1-dev \
@@ -260,6 +262,8 @@ ENV PIP_NO_CACHE_DIR=0
# setuptools and also wheel so we can use the binary releases of packages
# instead of req... |
Check getauxval on systems that have it when checking for setuid execution. | @@ -31,12 +31,18 @@ int OPENSSL_issetugid(void)
# include OPENSSL_UNISTD
# include <sys/types.h>
+# if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
+# if __GLIBC_PREREQ(2, 16)
+# include <sys/auxv.h>
+# endif
+# endif
+
int OPENSSL_issetugid(void)
{
- if (getuid() != geteuid())
- return 1;
- if (getgid() != getegid())... |
Cleanup of memory allocated in nxt_mem_cache_pool_unit_test().
Leak sanitizer is happy now. | @@ -68,6 +68,8 @@ nxt_mem_cache_pool_unit_test(nxt_thread_t *thr, nxt_uint_t runs,
nxt_mem_cache_pool_destroy(pool);
+ nxt_free(blocks);
+
nxt_thread_time_update(thr);
nxt_log_error(NXT_LOG_NOTICE, thr->log, "mem cache pool unit test passed");
|
Parameter: Allow slightly more error in LH accel | @@ -109,7 +109,7 @@ STRUCT_CONFIG_ITEM("mpfit-stationary-object-up-variance",
"How much to weight having the accel direction on tracked objects pointing up", 1e-2,
t->stationary_obj_up_variance)
STRUCT_CONFIG_ITEM("mpfit-lighthouse-up-variance",
- "How much to weight having the accel direction on lighthouses pointing u... |
isolation2: Fix Makefile to run test manually
Author: Xin Zhang
Author: Ashwin Agrawal | @@ -55,7 +55,7 @@ install: all gpdiff.pl gpstringsubs.pl
installcheck: install
./pg_isolation2_regress --init-file=$(top_builddir)/src/test/regress/init_file --init-file=./init_file_isolation2 --psqldir='$(PSQLDIR)' --inputdir=$(srcdir) --ao-dir=uao --schedule=$(srcdir)/isolation2_schedule
-installcheck-resgroup: all g... |
Remove hard coded start/select tests from top down | @@ -164,16 +164,4 @@ void Update_TopDown() {
ScriptStart(&actors[hit_actor].events_ptr);
}
}
-
- // LOG("[%u, %u] [%u, %u]\n", player.vel.x, player.vel.y, player.pos.x, player.pos.y);
-
- if (INPUT_SELECT_PRESSED) {
- player.pos.x = 32;
- player.pos.y = 32;
- }
-
- if (INPUT_START_PRESSED) {
- player.pos.x = 512;
- pla... |
mackerel: do not pre-read write only registers | @@ -1122,6 +1122,7 @@ register_write_fn r =
C.SComment "No MB1 fields present"
),
(if prsvmask /= 0 then
+ (if RT.is_readable r then
(C.Ex $ C.Assignment
(C.Variable cv_regval)
(C.Binary C.BitwiseOr
@@ -1129,6 +1130,9 @@ register_write_fn r =
(C.Binary C.BitwiseAnd
(C.HexConstant prsvmask)
(loc_read r))))
+ else
+ C.SC... |
CMSIS-DSP:Correction for issue 218 | The input is represented in 1.31 format, which is then downshifted by 8 bits
which yields 1.23, and intermediate multiplication yields a 2.46 format.
The accumulator maintains full precision of the intermediate multiplication results,
- but provides only a 16 guard bits.
+ and as a consequence has only 16 guard bits.
T... |
Add gpperfmon job to pipeline | @@ -464,6 +464,26 @@ jobs:
MAKE_TEST_COMMAND: sub_transaction_limit_removal
TEST_OS: centos
+- name: gpperfmon
+ plan:
+ - aggregate:
+ - get: gpdb_src
+ params:
+ submodules:
+ - gpMgmt/bin/pythonSrc/ext
+ passed: [compile_gpdb_centos6]
+ - get: bin_gpdb
+ resource: bin_gpdb_centos6
+ passed: [compile_gpdb_centos6]
+ ... |
gpgme: reduce number of keys | @@ -80,7 +80,7 @@ int main (int argc, char ** argv)
init (argc, argv);
init_gpgme ();
- for (int i = 0; i < 10; i++)
+ for (int i = 0; i < 3; i++)
{
// to see how the build server responds
test_install_key ();
|
Fix scheduler crash when iterating supported sizes. | @@ -4362,9 +4362,9 @@ load_ppd(cupsd_printer_t *p) /* I - Printer */
for (media_col_ready = NULL, media_ready = NULL, ready_size = (char *)cupsArrayFirst(ReadyPaperSizes); ready_size; ready_size = (char *)cupsArrayNext(ReadyPaperSizes))
{
- for (i = p->pc->num_sizes, pwgsize = p->pc->sizes; i > 0; i --, pwgsize --)
+ f... |
Typos fixed in CHANGES.md | STAR 2.5.4a 2018/01/23
+======================
### New features:
* Implemented read group ID output as the last column of the Chimeric.out.junction file.
* Implemented --readFilesPrefix option for specifying prefix (e.g. directory path) for the file names in --readFilesIn .
-* Implemented stanard SAM attrbiute "MC" to ... |
Reinsert end of address check when bin is for target and it is a bin | @@ -56,6 +56,7 @@ static uint32_t initial_addr;
static uint32_t current_addr;
static bool flash_initialized;
static bool initial_addr_set;
+static bool flash_type_target_bin;
static bool flash_decoder_is_at_end(uint32_t addr, const uint8_t *data, uint32_t size);
@@ -65,7 +66,9 @@ flash_decoder_type_t flash_decoder_dete... |
Adjust dynamic sensor cluster bindings for FLS-NB | @@ -1276,7 +1276,11 @@ void DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
// whitelist by Model ID
if (gwReportingEnabled)
{
- if (deviceSupported)
+ if (sensor->modelId().startsWith(QLatin1String("FLS-NB")))
+ {
+ // temporary disable, delete bindings and use read attributes
+ }
+ else if... |
Use latest ubuntu | @@ -11,14 +11,11 @@ on:
jobs:
check-headers:
runs-on: ubuntu-latest
- container: ubuntu:14.04
+ container: ubuntu:20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
- sudo apt-get update
- sudo apt-get install -y software-properties-common
- sudo add-apt-repository ppa:george-edison55/cmake-3.... |
Jump to the end of the line when tab-completing, avoid prefix bug | @@ -1234,6 +1234,7 @@ static void finishAutocomplete(const AutocompleteData* data)
{
provideHint(data->console, data->options);
}
+ processConsoleEnd(data->console);
insertInputText(data->console, data->commonPrefix+strlen(data->incompleteWord));
if (justOneOptionLeft)
@@ -3247,8 +3248,12 @@ static void processConsoleT... |
disable sending of the gateway to attempt to fix internet issues...no luck yet | @@ -202,6 +202,8 @@ void ICACHE_FLASH_ATTR wifi_init() {
IP4_ADDR(&ip_config.gw, 0, 0, 0, 0);
IP4_ADDR(&ip_config.netmask, 255, 255, 255, 0);
wifi_set_ip_info(SOFTAP_IF, &ip_config);
+ int stupid_gateway = 0;
+ wifi_softap_set_dhcps_offer_option(OFFER_ROUTER, &stupid_gateway);
wifi_softap_dhcps_start();
// setup tcp se... |
build bug fix | @@ -25,7 +25,7 @@ if lspci | grep -q 'ConnectX-[4,5]'; then
export EXTRA_LDFLAGS=-L$PWD/rdma-core/build/lib
export PKG_CONFIG_PATH=$PWD/rdma-core/build/lib/pkgconfig
elif lspci | grep -q 'ConnectX-3'; then
- rm -f dpdk/drivers/net/mlx5/mlx4_custom.h
+ rm -f dpdk/drivers/net/mlx4/mlx4_custom.h
patch -p1 -N -d dpdk/ < bu... |
NimBLE/host: Fix multiple `discard const qualifier` warnings
Minor changes in `ble_gattc.c` to remove `discard const qualifier` warnings. | @@ -485,7 +485,7 @@ ble_gattc_dbg_assert_proc_not_inserted(struct ble_gattc_proc *proc)
*****************************************************************************/
static void
-ble_gattc_log_proc_init(char *name)
+ble_gattc_log_proc_init(const char *name)
{
BLE_HS_LOG(INFO, "GATT procedure initiated: %s", name);
}
@... |
Fix Makefile for Windows
The default value of GRADLE is "./gradlew", which is the correct value
on Linux.
On Windows, it should use gradlew.bat (by calling "gradlew") instead. | .PHONY: default release clean build build-app build-server run dist dist-zip sums test
+ifeq ($(OS),Windows_NT)
+ GRADLE ?= gradlew
+else
GRADLE ?= ./gradlew
+endif
APP_BUILD_DIR := app-build
DIST := dist
|
tools dependencies | @@ -67,7 +67,7 @@ RUN cd /tmp && \
RUN cd /tmp/openpilot && \
pip install --no-cache-dir -r opendbc/requirements.txt && \
- pip install --no-cache-dir -r tools/requirements.txt
+ pip install --no-cache-dir aenum lru-dict pycurl tenacity
COPY . /tmp/openpilot/panda
RUN rm -rf /tmp/openpilot/panda/.git
|
Add :h default peg class, as well as ad \v to whitespace. | that should make it easier to write more complex patterns."
~@{:d (range "09")
:a (range "az" "AZ")
- :s (set " \t\r\n\0\f")
+ :s (set " \t\r\n\0\f\v")
:w (range "az" "AZ" "09")
+ :h (range "09" "af")
:S (if-not :s 1)
:W (if-not :w 1)
:A (if-not :a 1)
:D (if-not :d 1)
+ :H (if-not :h 1)
:d+ (some :d)
:a+ (some :a)
:s+ ... |
Fix sam4s_nand.c:152:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation] | @@ -149,7 +149,10 @@ static int nand_wait_ready(struct sam_nandcs_s *priv)
/* The ready/busy (R/nB) signal of the NAND Flash */
- while (!sam_gpioread(priv->rb));
+ while (!sam_gpioread(priv->rb))
+ {
+ }
+
WRITE_COMMAND8(&priv->raw, COMMAND_STATUS);
/* Issue command */
|
Limit assertion to debug mode | @@ -20,6 +20,7 @@ Object Deallocation
void fiobj_dealloc(fiobj_s *obj) {
if (!obj)
return;
+#if DEBUG
if (OBJ2HEAD(obj).ref == 0) {
fprintf(stderr,
"ERROR: attempting to free an object that isn't a fiobj or already "
@@ -27,6 +28,7 @@ void fiobj_dealloc(fiobj_s *obj) {
(void *)obj);
kill(0, SIGABRT);
}
+#endif
if (spn_... |
Allow clean exit even if transfer fails | @@ -176,6 +176,7 @@ static void handle_transfer(struct libusb_transfer *transfer) {
if (transfer->status != LIBUSB_TRANSFER_COMPLETED) {
SV_ERROR(SURVIVE_ERROR_HARWARE_FAULT, "Transfer problem %s %d with %s", libusb_error_name(transfer->status),
transfer->status, iface->hname);
+ iface->ctx = 0;
return;
}
|
h2o_url_normalize_path: ealry return if path is "/" | @@ -124,7 +124,7 @@ h2o_iovec_t h2o_url_normalize_path(h2o_mem_pool_t *pool, const char *path, size_
*query_at = SIZE_MAX;
*norm_indexes = NULL;
- if (len == 0) {
+ if (len == 0 || (len == 1 && path[0] == '/')) {
ret = h2o_iovec_init("/", 1);
return ret;
}
|
IOD of GAL and Beidou are on 10 bits | @@ -80,7 +80,7 @@ definitions:
SSR is used to indicate a change in the SSR
generating configuration
- iod:
- type: u8
+ type: u16
desc: Issue of broadcast ephemeris data
- radial:
type: s32
|
[mod_nss] update session ticket NSS devel comment
Update: NSS developer explains:
"The way that we currently operate is to tie the session key encryption
to the server public key. Which only works if you have an RSA key
configured" | * Copyright 2001-2004 The Apache Software Foundation
*/
/*
- * WARNING: EXPERIMENTAL code sketch; mod_nss is INCOMPLETE and UNTESTED
- *
* NSS docs: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS
*
* NSS documentation is seriously lacking and man pages exist only for apps;
* PK11SymKey *masterSecret in s... |
SOVERSION bump to version 2.25.3 | @@ -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 25)
-set(LIBYANG_MICRO_SOVERSION 2)
+set(LIBYANG_MICRO_SOVERSION 3)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
makefile fix for lua lib | @@ -47,7 +47,8 @@ LINUX_LIBS= \
$(GTK_LIBS) \
`sdl2-config --static-libs` \
-L$(3RD_PARTY)/wren-0.1.0/lib \
- -L$(3RD_PARTY)/sdl-gpu/build/linux
+ -L$(3RD_PARTY)/sdl-gpu/build/linux \
+ -L$(3RD_PARTY)/lua-5.3.1/src
LINUX64_LIBS= \
$(GTK_LIBS) \
@@ -74,7 +75,7 @@ LINUX_LINKER_LTO_FLAGS= \
-lGL
LINUX_LINKER_FLAGS= \
- -l... |
crypto-ipsecmb: bump to intel-ipsec-mb version 0.53
This patch bumps the engine's intel-ipsec-mb version from 0.52 to
0.53, to avail performance improvement brought by the library.
Type: feature | # See the License for the specific language governing permissions and
# limitations under the License.
-ipsec-mb_version := 0.52
+ipsec-mb_version := 0.53
ipsec-mb_tarball := v$(ipsec-mb_version).tar.gz
ipsec-mb_tarball_md5sum_0.49 := 3a2bee86f25f6c8ed720da5b4b8d4297
ipsec-mb_tarball_md5sum_0.52 := 11ecfa6db4dc0c4ca6e5... |
esp_system: Place ipc_task semaphores on DRAM
For CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL < 92, the ipc_task semaphores
were allocated on SPIRAM rather than internal RAM
SemaphoreHandle_t has a size of 92, thus the failure | #if !defined(CONFIG_FREERTOS_UNICORE) || defined(CONFIG_APPTRACE_GCOV_ENABLE)
+static DRAM_ATTR StaticSemaphore_t s_ipc_mutex_buffer[portNUM_PROCESSORS];
+static DRAM_ATTR StaticSemaphore_t s_ipc_sem_buffer[portNUM_PROCESSORS];
+static DRAM_ATTR StaticSemaphore_t s_ipc_ack_buffer[portNUM_PROCESSORS];
+
static TaskHandl... |
Fix Coverity integer overflow
The assert added cannot ever fail because (current & 0xFFFF) != 0 from the
while loop and the trailing zero bit count therefore cannot be as large as 32. | @@ -586,6 +586,7 @@ static int recode_wnaf(struct smvt_control *control,
int32_t delta = odd & mask;
assert(position >= 0);
+ assert(pos < 32); /* can't fail since current & 0xFFFF != 0 */
if (odd & (1 << (table_bits + 1)))
delta -= (1 << (table_bits + 1));
current -= delta * (1 << pos);
|
get rid of strdupa | #include <stdbool.h>
#include <sys/stat.h>
#ifdef __APPLE__
-#define strdupa strdup
#include <libgen.h>
#else
#include <stdio_ext.h>
@@ -533,14 +532,9 @@ int main(int argc, char *argv[])
{
int auswahl;
-char *eigenname = NULL;
-char *eigenpfadname = NULL;
char *potname = NULL;
char *pmkname = NULL;
-eigenpfadname = str... |
esp32/README.md: Fix typo readme. | @@ -64,7 +64,7 @@ the following commands on (at least) Linux:
$ export PATH=$PATH:$HOME/esp/crosstool-NG/builds/xtensa-esp32-elf/bin
-You cam put this command in your `.profile` or `.bash_login`.
+You can put this command in your `.profile` or `.bash_login`.
You then need to set the `ESPIDF` environment/makefile variab... |
Docs: Fixed typo in several | @@ -3025,7 +3025,7 @@ entry choice will update till next manual reconfiguration.
\end{itemize}
\emph{Note 1}: Activated \texttt{KeySupport}, \texttt{OpenUsbKbDxe}, or similar driver is required
- for key handling to work. On sevaral types of firmware, it is not possible to get all the key functions.
+ for key handling ... |
Docs: Updated Apple Models README | @@ -26,7 +26,7 @@ for generic models and `BridgeOSUpdateCustomer.pkg` for T2 models (the entire re
is available at [mesu.apple.com](https://mesu.apple.com/assets/bridgeos/com_apple_bridgeOSIPSW/com_apple_bridgeOSIPSW.xml))
To use them do as follows:
-1. Visit suitable update catalogue by filling the OS versions (e.g. [... |
BugID:18057088: Use CON for CoAP notify and resonse | @@ -218,7 +218,7 @@ int CoAPServerMultiCast_send(CoAPContext *context, NetworkAddr *remote, const ch
CoAPMessage_init(&message);
- CoAPMessageType_set(&message, COAP_MESSAGE_TYPE_NON);
+ CoAPMessageType_set(&message, COAP_MESSAGE_TYPE_CON);
CoAPMessageCode_set(&message, COAP_MSG_CODE_POST);
CoAPMessageId_set(&message, ... |
Add link to new reference. | @@ -64,6 +64,8 @@ Lily is a very young language and the community is still growing.
## Resources
+* [Reference](https://Fascinatedbox.github.com/lily/core/module.core.html)
+
* [Try it in your browser](https://FascinatedBox.github.com/lily-site/sandbox.html)
* [Syntax Tutorial](https://FascinatedBox.github.com/lily-sit... |
Fix bad capitalization in doc reference | @@ -174,7 +174,7 @@ abstract class GenericFIRBlock[D, U, EO, EI, B<:Data, T<:Data:Ring]
}
// DOC include end: GenericFIRBlock chisel
-// DOC include start: TLGenericFIRBLock chisel
+// DOC include start: TLGenericFIRBlock chisel
class TLGenericFIRBlock[T<:Data:Ring]
(
val genIn: T,
|
ledc: Update LEDC programming guide
Add source clock in timer config
Add fade end callback and ledc_fade_stop usage
Explain ledc_fade_mode_t difference and limitation | @@ -445,7 +445,6 @@ TEST_CASE("LEDC fade stop test", "[ledc]")
const ledc_mode_t test_speed_mode = TEST_SPEED_MODE;
fade_setup();
- // Overwrite the last fade with new fade
int64_t fade_start, fade_stop;
int time_ms = 0;
fade_start = esp_timer_get_time();
@@ -453,14 +452,19 @@ TEST_CASE("LEDC fade stop test", "[ledc]")... |
engine: validate connection event thread is not null | @@ -616,10 +616,12 @@ int flb_engine_start(struct flb_config *config)
*/
u_conn = (struct flb_upstream_conn *) event;
th = u_conn->thread;
+ if (th) {
flb_trace("[engine] resuming thread=%p", th);
flb_thread_resume(th);
}
}
+ }
/* Cleanup functions associated to events and timers */
if (config->is_running == FLB_TRUE) ... |
Add tests for the limited Unicode code point range | @@ -107,9 +107,50 @@ static int test_standard_methods(void)
return 0;
}
+/**********************************************************************
+ *
+ * Tests of the Unicode code point range
+ *
+ ***/
+
+static int test_unicode(const unsigned char *univ, size_t len, int expected)
+{
+ const unsigned char *end = univ +... |
inertial_updates: Update flags doc for orientation | @@ -102,10 +102,8 @@ definitions:
- 0-2:
desc: INS Navigation mode
values:
- - 0: None
- - 1: INS only (Dead reckoning)
- - 2: INS with GNSS
- - 2: INS with GNSS Attitude
+ - 0: Invalid
+ - 1: Valid
- MSG_ORIENT_EULER:
id: 0x0221
@@ -153,10 +151,8 @@ definitions:
- 0-2:
desc: INS Navigation mode
values:
- - 0: None
- -... |
[update][bsp][stm32] drv_gpio.c | @@ -203,17 +203,17 @@ static const struct pin_index pins[] =
__STM32_PIN(173, K, 13),
__STM32_PIN(174, K, 14),
__STM32_PIN(175, K, 15),
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
-#endif
+#endif /* defined(GPIOK) */
+#endif /* defined(GPIOJ) */
+#endif /* defined(GPIOI) */
+#endif /... |
mesh: Move Device UUID log to bt_mesh_prov_enable()
In some cases the application might only initialize its UUID after
calling bt_mesh_init(), e.g. in the case of deriving the UUID from the
identity address. To avoid confusing logs, only print the UUID when
actually enabling one of the provisioing bearers. | #include "syscfg/syscfg.h"
#define BT_DBG_ENABLED (MYNEWT_VAL(BLE_MESH_DEBUG))
#include "host/ble_hs_log.h"
+#include "host/ble_uuid.h"
#include "adv.h"
#include "prov.h"
@@ -137,6 +138,15 @@ int bt_mesh_prov_enable(bt_mesh_prov_bearer_t bearers)
return -EALREADY;
}
+ if (MYNEWT_VAL(BLE_MESH_DEBUG)) {
+ char uuid_buf[B... |
elemi: Tune displayport EQ with ps8815
Tune compensate for channel loss up to 10dB.
BRANCH=firmware-volteer-13672.B-main
TEST=Attached USBC to HDMI dongle.
i2ctrace to make sure the EQ is 10dB. | @@ -228,6 +228,14 @@ static void kb_backlight_disable(void)
}
DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, kb_backlight_disable, HOOK_PRIO_DEFAULT);
+__override void board_ps8xxx_tcpc_init(int port)
+{
+ /* b/189587527: Set Displayport EQ loss up to 10dB */
+ tcpc_addr_write(port, PS8751_I2C_ADDR1_P1_FLAGS,
+ PS8815_REG_DP_EQ_SE... |
fixing yaml syntax | @@ -2,7 +2,7 @@ name: Web App Release
on:
release:
- [published]
+ types: [published]
env:
BUILD_TYPE: MinSizeRel
@@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Emscripten
- - uses: mymindstorm/setup-emsdk@v7
+ uses: mymindstorm/setup-emsdk@v7
- name: Checkout
- - uses: actions/checkout@v2
+ uses... |
.ci/travis-ci: use latest Docker image
After updating Go and going to Rust toolchain 1.44.0. | +# Copyright 2019 Shift Cryptosecurity AG
+# Copyright 2020 Shift Crypto AG
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless r... |
LwIP: fix timeout handle logic in sys_arch_sem_wait()
Currently, sem_tickwait() sets errno to ETIMEOUT when the timeout occurs.
After the timeout of sem_tickwait(), we can get the errno by using get_errno().
This patch just adopts the previous timeout handle logic.
Conflicts:
os/net/lwip/sys/arch/sys_arch.c | @@ -451,22 +451,21 @@ u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
}
status = OK;
} else {
- while ((status = sem_tickwait(sem, clock_systimer(), MSEC2TICK(timeout))) != OK) {
+ while (sem_tickwait(sem, clock_systimer(), MSEC2TICK(timeout)) != OK) {
/* Handle the special case where the semaphore wait was
* aw... |
util/config_option_check: Update language for COIL
BRANCH=none
TEST=none | @@ -66,11 +66,11 @@ ALLOWLIST_CONFIGS = ['CONFIG_ZTEST']
def obtain_current_config_options():
"""Obtains current config options from include/config.h.
- Scans through the master config file defined in CONFIG_FILE for all CONFIG_*
+ Scans through the main config file defined in CONFIG_FILE for all CONFIG_*
options.
Retu... |
add name variable to upload-to-pskreporter.c | #include <sys/socket.h>
#include <arpa/inet.h>
+const char name[] = "report.pskreporter.info";
const char soft[] = "Red Pitaya FT8 TRX";
int32_t read_int(char **pointer, int32_t *value)
@@ -122,7 +123,7 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
- if((host = gethostbyname("report.pskreporter.info")) == ... |
zephyr: Add CONFIG_EXTPOWER_GPIO to the shim
This is not strictly necessary, but shows up as a delta from the
existing volteer config. So let's define it.
BRANCH=none
TEST=build zephyr and see that extpower_gpio.c is still built | @@ -143,6 +143,8 @@ enum battery_type {
#endif
#ifdef CONFIG_PLATFORM_EC_EXTPOWER_GPIO
+#define CONFIG_EXTPOWER_GPIO
+
/* This always needs to be defined for this option to work */
#define CONFIG_EXTPOWER
#endif
|
diff BUGFIX reversing create and delete operations
They should be reverted as whole subtrees,
there can be no nested different operations.
Fixes | @@ -1673,10 +1673,16 @@ lyd_diff_reverse_all(const struct lyd_node *src_diff, struct lyd_node **diff)
case LYD_DIFF_OP_CREATE:
/* reverse create to delete */
LY_CHECK_GOTO(ret = lyd_diff_change_op(elem, LYD_DIFF_OP_DELETE), cleanup);
+
+ /* the whole subtree was reversed, there can be no other operation there */
+ LYD_... |
[LOGIC CHANGE] Use `getaddrinfo` and `freeAddrinfo` based on internal library | @@ -95,15 +95,10 @@ newTransport()
DBG(NULL);
return NULL;
}
- if (!g_fn.getaddrinfo) goto out;
- t->getaddrinfo = g_fn.getaddrinfo;
+ t->getaddrinfo = scope_getaddrinfo;
t->origGetaddrinfo = t->getaddrinfo; // store a copy
return t;
-
- out:
- scope_free(t);
- return NULL;
}
/*
@@ -676,7 +671,7 @@ freeAddressList(tran... |
BugID:18621523: modify the dependency component mbedtls to imbedtls.
The mbedtls component name in security directory is renamed to imbedtls. | @@ -21,5 +21,5 @@ $(NAME)_COMPONENTS += itls
else
$(info FEATURE_SUPPORT_ITLS != y, so using normal TLS)
$(NAME)_SOURCES += HAL_TLS_mbedtls.c HAL_DTLS_mbedtls.c
-$(NAME)_COMPONENTS += mbedtls
+$(NAME)_COMPONENTS += imbedtls
endif
|
[MVE] clean-up of loading constant offset vectors
We don't need to load them with an mve intrinsic, but instead can
just pass them in where needed. | @@ -90,18 +90,14 @@ __STATIC_INLINE arm_status arm_mat_trans_32bit_2x2_mve(
uint32_t * pDataSrc,
uint32_t * pDataDest)
{
- uint32x4_t vecOffs;
- uint32x4_t vecIn;
-
- static const uint32_t stridesTr22[4] = { 0, 2, 1, 3 };
+ static const uint32x4_t vecOffs = { 0, 2, 1, 3 };
/*
*
* | 0 1 | => | 0 2 |
* | 2 3 | | 1 3 |
*
... |
Readable bitmask for entity type. | @@ -351,6 +351,8 @@ typedef enum
SDID_ESC
} e_key_id;
+// Caskey, Damon V.
+// 2013
typedef enum
{
/*
@@ -359,18 +361,18 @@ typedef enum
2013-12-27
*/
- TYPE_NONE,
- TYPE_PLAYER,
- TYPE_ENEMY,
- TYPE_ITEM = 4,
- TYPE_OBSTACLE = 8,
- TYPE_STEAMER = 16,
- TYPE_SHOT = 32, // 7-1-2005 type to use for player projectiles
- T... |
change sort method to display lastest transactions firstly. | @@ -1337,7 +1337,7 @@ static int bi_compar(const void *l, const void *r)
{
xdag_time_t tl = (*(struct block_internal **)l)->time, tr = (*(struct block_internal **)r)->time;
- return (tl > tr) - (tl < tr);
+ return (tl < tr) - (tl > tr);
}
//TODO comments
static const char* xdag_get_block_state_info(struct block_interna... |
libcupsfilters: In PPD generator use same priority order for the different attributes which list color spaces as CUPS does. | @@ -2325,8 +2325,8 @@ ppdCreateFromIPP(char *buffer, /* I - Filename buffer */
* ColorModel...
*/
- if ((attr = ippFindAttribute(response, "pwg-raster-document-type-supported", IPP_TAG_KEYWORD)) == NULL)
if ((attr = ippFindAttribute(response, "urf-supported", IPP_TAG_KEYWORD)) == NULL)
+ if ((attr = ippFindAttribute(re... |
android: fix for api level detector from version | @@ -530,12 +530,20 @@ namespace "config" do
#If user has mentioned version under android, then select that particular api level.
if $app_config["android"]["version"]
apilevel = AndroidTools.get_api_level $app_config["android"]["version"]
+ if(!apilevel)
+ apilevel = AndroidTools.get_api_level ($app_config["android"]["v... |
oops... no need to review headers | @@ -163,7 +163,6 @@ static FIOBJ headers2str(http_s *h) {
fiobj_each1(h->private_data.out_headers, 0, write_header, &w);
fiobj_str_write(w.dest, "\r\n", 2);
- fprintf(stderr, "Sending:\n%s\n", fiobj_obj2cstr(w.dest).data);
return w.dest;
}
|
build: correct the libgit2 pkg-config filename | @@ -116,7 +116,7 @@ else
$LDFLAGS << " " + "-L#{Dir.pwd}/deps/winhttp"
$LIBS << " -lwinhttp -lcrypt32 -lrpcrt4 -lole32 -lz -lssh2"
else
- pcfile = File.join(LIBGIT2_DIR, "build", "libgit2.pc")
+ pcfile = File.join(LIBGIT2_DIR, "build", "git2.pc")
$LDFLAGS << " " + `pkg-config --libs --static #{pcfile}`.strip
end
end
|
parallel-libs/scotch: fix src url | @@ -24,7 +24,7 @@ Summary: Graph, mesh and hypergraph partitioning library using MPI
License: CeCILL-C
Group: %{PROJ_NAME}/parallel-libs
URL: http://www.labri.fr/perso/pelegrin/scotch/
-Source0: http://gforge.inria.fr/frs/download.php/file/34618/%{base_pname}_%{version}.tar.gz
+Source0: http://gforge.inria.fr/frs/downl... |
Fix flashing sprites when music is playing with colors disabled | @@ -82,8 +82,10 @@ void vbl_update() {
void lcd_update() {
if (LYC_REG == 0x0) {
SHOW_SPRITES;
- LYC_REG = WY_REG;
+ if (WY_REG != MENU_CLOSED_Y) {
+ LYC_REG = WY_REG;
+ }
} else if (hide_sprites_under_win) {
HIDE_SPRITES;
LYC_REG = 0x0;
|
Refactor trailer offset functions
Update each function to calculate the offset based on a previous
function offset, so that if one has to be changed not all functions have
to be updated. | @@ -164,12 +164,6 @@ boot_trailer_sz(uint8_t min_write_sz)
BOOT_MAGIC_SZ;
}
-static uint32_t
-boot_magic_off(const struct flash_area *fap)
-{
- return fap->fa_size - BOOT_MAGIC_SZ;
-}
-
int
boot_status_entries(int image_index, const struct flash_area *fap)
{
@@ -196,36 +190,41 @@ boot_status_off(const struct flash_area... |
Fixed type on param | #endif
STATIC_CONFIG_ITEM(SERIALIZE_SOLVE, "serialize-lh-mpfit", 's', "Serialize MPFIT formulization", 0)
-STATIC_CONFIG_ITEM(USE_JACOBIAN_FUNCTION, "use-jacobian-function", 'b',
- "If set to false, a slower numerical approximation of the jacobian is used", 1)
+STATIC_CONFIG_ITEM(USE_JACOBIAN_FUNCTION, "use-jacobian-fu... |
Add http connection pass check | @@ -8832,7 +8832,8 @@ run_test "TLS1.3: minimal feature sets - openssl" \
-c "=> parse certificate verify" \
-c "<= parse certificate verify" \
-c "mbedtls_ssl_tls13_process_certificate_verify() returned 0" \
- -c "<= parse finished message"
+ -c "<= parse finished message" \
+ -c "HTTP/1.0 200 ok"
requires_gnutls_tls1... |
Fix Error: chip/lpc54_emc.c:421:12: error: explicitly assigning value of variable of type 'uint32_t' (aka 'unsigned int') to itself | @@ -418,7 +418,6 @@ void lpc54_emc_sdram_initialize(
/* Set the right mode setting value. */
data = *(volatile uint32_t *)addr;
- data = data;
}
if (config->dyndev)
@@ -445,7 +444,6 @@ void lpc54_emc_sdram_initialize(
/* Set the right mode setting value. */
data = *(volatile uint32_t *)addr;
- data = data;
}
}
@@ -468,... |
adding comments and usage examples for SettingMonitor | @@ -12,17 +12,37 @@ the :mod:`sbp.client.util.settingmonitor` module contains functionality to
monitor SBP_MSG_SETTINGS_READ_RESP messages for desired values
"""
+from sbp.settings import SBP_MSG_SETTINGS_READ_RESP
+
import time
+
class SettingMonitor(object):
+ """Class to monitor Settings via SBP messages
+
+ Paramet... |
restored codemirror | ^- marl
;= ;title: Urbit - A personal server
;meta(name "viewport", content "width=device-width, initial-scale=1");
-:: ;link(type "text/css", rel "stylesheet", href "//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.min.css");
+ ;link(type "text/css", rel "stylesheet", href "//cdnjs.cloudflare.com/ajax/libs... |
Remove useless includes from decoder.c | #include "decoder.h"
#include <libavformat/avformat.h>
-#include <libavutil/time.h>
-#include <SDL2/SDL_events.h>
-#include <unistd.h>
#include "events.h"
-#include "recorder.h"
#include "video_buffer.h"
-#include "util/buffer_util.h"
#include "util/log.h"
void
|
boards: imxrt1060-evk: Fix iperf performance for netnsh
Summary:
Before: iperf -s 94Mbps, iperf -c 0Mbps
After : iperf -s 94Mbps, iperf -c 93Mbps
Impact:
Should be none
Testing:
Tested with iperf and telnet | @@ -23,10 +23,12 @@ CONFIG_ETH0_PHY_KSZ8081=y
CONFIG_FS_PROCFS=y
CONFIG_IDLETHREAD_STACKSIZE=2048
CONFIG_IMXRT_ENET=y
+CONFIG_IMXRT_ENET_NRXBUFFERS=64
+CONFIG_IMXRT_ENET_NTXBUFFERS=64
CONFIG_IMXRT_LPUART1=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INTELHEX_BINARY=y
-CONFIG_IOB_NBUFFERS=128
+CONFIG_IOB_BUFSIZE=1514
CONF... |
Update release notes
Added placeholders for new API functions, general changes, new definitions and list of contributing authors | @@ -96,3 +96,68 @@ for the thread-safe API. Some additional points regarding the new **PDA** option
- `hydcoeffs.c` computes values of the matrix coefficients (derived from link head losses and their gradients) used by the hydraulic solver.
- `hydstatus.c` checks for status changes in valves and pumps as requested by t... |
hslua-module-system: bump upper bound for hslua-packaging | @@ -36,7 +36,7 @@ common common-options
default-language: Haskell2010
build-depends: base >= 4.8 && < 5
, hslua-core >= 2.0 && < 2.1
- , hslua-packaging >= 2.0 && < 2.1
+ , hslua-packaging >= 2.0 && < 2.2
, text >= 1.0 && < 1.3
default-extensions: LambdaCase
, OverloadedStrings
|
Changes to CDC example code:
auto flush welcome message at connection event
provide information to the user if the terminal did not set DTR | @@ -137,6 +137,7 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts)
{
// print initial message when connected
tud_cdc_write_str("\r\nTinyUSB CDC MSC device example\r\n");
+ tud_cdc_write_flush();
}
}
@@ -144,6 +145,16 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts)
void tud_cdc_rx_cb(uint8_t ... |
Throw an error if duplicates found in PY_SRCS | @@ -252,6 +252,11 @@ def onpy_srcs(unit, *args):
unit.onresource_files([x for name, path in files2res for x in ('DEST', name, path)])
if pys:
+ pys_seen = set()
+ pys_dups = {m for _, m in pys if (m in pys_seen or pys_seen.add(m))}
+ if pys_dups:
+ ymake.report_configure_error('Duplicate(s) is found in the PY_SRCS macr... |
Fix TweakDB assertion on SetFlat (affected only debug builds) | @@ -714,7 +714,7 @@ int32_t FlatPool::GetOrCreate(const RED4ext::CStackType& acStackType, HashType a
int32_t existingTDBOffset = Get(acStackType, aHash);
if (existingTDBOffset != -1)
{
- assert(existingTDBOffset == aTDBOffset);
+ assert((aTDBOffset == -1) || (existingTDBOffset == aTDBOffset));
return existingTDBOffset;... |
release: last update | # 0.8.25 Release
-This release did not happen yet but hopefully will happen today.
-
-- guid: 472392e0-cc4f-4826-a0a9-2764d90c5f89
-- author: Markus Raab
-- pubDate: Sun, 18 Nov 2018 14:30:34 +0100
-- shortDesc: faster storage and lookup
-
We are proud to release Elektra 0.8.25.
## What is Elektra?
@@ -22,6 +15,13 @@ F... |
Accidentally added/removed lines to vplanet.h. | #define REARTH 6.3781e6 // Equatorial; Prsa et al. 2016
#define RJUP 7.1492e7 // Equatorial; Prsa et al. 2016
#define MJUP 1.898130e27 // Prsa et al. 2016
-#define RNEP 2.4764e7 // Neptune's Radius (ref?)
-#define MNEP 1.0244e26 // Neptune's Mass (ref?)
-#define RHOEARTH 5515 // Earth's Density
-#define eEARTH 0.016710... |
Win32 d3d11 make sure we don't update hud unnecessarily | @@ -13,7 +13,15 @@ static Present oPresent = NULL;
long __stdcall hkPresent11(IDXGISwapChain* pSwapChain, UINT SyncInterval, UINT Flags)
{
+#ifdef _MSC_VER
+ static auto addr = _ReturnAddress();
+ if(addr == _ReturnAddress()){
+#else
+ static auto addr = __builtin_return_address(0);
+ if(addr == __builtin_return_addres... |
Return state/lastupdated: "none", when it is not set | @@ -1484,6 +1484,13 @@ bool DeRestPluginPrivate::sensorToMap(const Sensor *sensor, QVariantMap &map, bo
if (strncmp(rid.suffix, "state/", 6) == 0)
{
const char *key = item->descriptor().suffix + 6;
+
+ if (rid.suffix == RStateLastUpdated && !item->lastSet().isValid())
+ {
+ state[key] = QLatin1String("none");
+ continu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.