message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
protocomm: Increase Bluedroid-BLE maximum buffer size
For the security2 scheme, the payload size is quite larger
than that for security1. | #include "protocomm_priv.h"
#include "simple_ble.h"
+/* NOTE: For the security2 scheme, the payload size is quite larger
+ * than that for security1. The increased value has been selected
+ * keeping in mind the largest packet size for security2 and the
+ * factors affecting it.
+ */
+#if CONFIG_ESP_PROTOCOMM_SUPPORT_S... |
Fix "patch not found" build error for Andorid CI build
This adds patch to the list of installed software for android. | @@ -28,7 +28,7 @@ Android_build:
image: openjdk:8-jdk
before_script:
- apt-get --quiet update --yes
- - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 make autoconf swig
+ - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 make autoconf swig patch
- wget --quiet --output-document=and... |
board/morphius/board.h: Format with clang-format
BRANCH=none
TEST=none | #ifndef __ASSEMBLER__
-
void ps2_pwr_en_interrupt(enum gpio_signal signal);
enum adc_channel {
@@ -118,11 +117,7 @@ enum temp_sensor_id {
TEMP_SENSOR_COUNT
};
-enum usba_port {
- USBA_PORT_A0 = 0,
- USBA_PORT_A1,
- USBA_PORT_COUNT
-};
+enum usba_port { USBA_PORT_A0 = 0, USBA_PORT_A1, USBA_PORT_COUNT };
/***************... |
Fix parameter number | @@ -44,7 +44,7 @@ The "RGB underglow" behavior completes an RGB action given on press.
- Reference: `&rgb_ug`
- Parameter #1: The RGB action define, e.g. `RGB_TOG` or `RGB_BRI`
-- Parameter #1: Only applies to `RGB_COLOR_HSB` and is the HSB values of the color to set within parenthesis and separated by a common (see be... |
sixtop: add missing methods of test_mac_driver (tests/13-ieee802154) | #include "lib/simEnvChange.h"
#include "sys/cooja_mt.h"
+#define TEST_MAC_MAX_PAYLOAD_LEN 100
+
static uint8_t send_is_called;
void
@@ -73,11 +75,36 @@ send(mac_callback_t sent_callback, void *ptr)
send_is_called = 1;
}
+static void
+input(void)
+{
+ /* do nothing */
+}
+
+static int
+on(void)
+{
+ return 1; /* always ... |
Include dependencies version
On --version, also print the dependencies version scrcpy has been
compiled against. | #include <unistd.h>
#include <libavformat/avformat.h>
#include <SDL2/SDL.h>
+#include <SDL2/SDL_net.h>
#include "config.h"
@@ -87,6 +88,17 @@ static void usage(const char *arg0) {
DEFAULT_LOCAL_PORT);
}
+static void print_version(void) {
+ fprintf(stderr, "scrcpy v%s\n\n", SCRCPY_VERSION);
+
+ fprintf(stderr, "dependen... |
avf: fix init when num_rx_queues > num_tx_queues
Type: fix
Fixes: | @@ -661,11 +661,11 @@ avf_op_config_vsi_queues (vlib_main_t * vm, avf_device_t * ad)
i, rxq->max_pkt_size, rxq->ring_len,
rxq->databuffer_size, rxq->dma_ring_addr);
- avf_txq_t *q = vec_elt_at_index (ad->txqs, i);
txq->vsi_id = ad->vsi_id;
+ txq->queue_id = i;
if (i < vec_len (ad->txqs))
{
- txq->queue_id = i;
+ avf_tx... |
CMake: Revert man pages with date only update | @@ -8,3 +8,23 @@ execute_process (COMMAND ${CMAKE_COMMAND}
--pipe
${MDFILE}
OUTPUT_FILE ${OUTFILE})
+
+# We revert newly generated man pages, where only the date changed.
+if (GIT_COMMAND)
+ execute_process (COMMAND "${GIT_COMMAND}"
+ diff
+ --numstat
+ "${OUTFILE}"
+ OUTPUT_VARIABLE GIT_OUTPUT)
+ string (REGEX
+ REPLA... |
Commit staged changes to ack rate | @@ -2041,11 +2041,6 @@ void picoquic_compute_ack_gap_and_delay(picoquic_cnx_t* cnx, uint64_t rtt, uint6
if (nb_packets < 2) {
nb_packets = 2;
}
-#if 1
- if (cnx->client_mode) {
- DBG_PRINTF("Watch");
- }
-#endif
}
if (return_data_rate > 0) {
/* Estimate of ACK size = L2 + IPv6 + UDP + padded ACK */
@@ -2079,11 +2074,6 ... |
fix(span):crash if span->txt = "" | @@ -509,6 +509,8 @@ lv_coord_t lv_spangroup_get_expand_height(lv_obj_t * obj, lv_coord_t width)
cur_txt = cur_span->txt;
span_text_check(&cur_txt);
cur_txt_ofs = 0;
+ /* maybe also cur_txt[cur_txt_ofs] == '\0' */
+ continue;
}
/* init span info to snippet. */
@@ -668,6 +670,12 @@ static bool lv_txt_get_snippet(const ch... |
Update repository.yml to point to 1.0.0-b1 tag. | repo.name: apache-mynewt-core
repo.versions:
"0.0.0": "develop"
+ "0.0.1": "master"
"0.7.9": "mynewt_0_8_0_b2_tag"
"0.8.0": "mynewt_0_8_0_tag"
"0.9.0": "mynewt_0_9_0_tag"
- "0.9.1": "master"
- "0-latest": "0.9.0"
- "0-dev": "0.9.1"
+ "0.9.9": "mynewt_1_0_0_b1_tag"
+
+ "0-latest": "0.9.9" # 1.0.0-b1
+ "0-dev": "0.0.0" #... |
lyd mods MAINTENANCE use function for iterating over features | @@ -150,8 +150,8 @@ sr_lydmods_add_module(struct lyd_node *sr_mods, const struct lys_module *ly_mod,
{
sr_error_info_t *err_info = NULL;
struct lyd_node *sr_mod;
- const struct lys_submodule *submod;
- uint8_t i, j;
+ struct lys_feature *feat;
+ uint32_t i;
sr_mod = lyd_new(sr_mods, NULL, "module");
if (!sr_mod) {
@@ -... |
change i2c read msg | @@ -734,7 +734,7 @@ Blockly.MIXLY_Humidity= 'Humidity';
Blockly.MIXLY_I2C_AVAILABLE='I2C_Slave_Read_isAvailable?';
Blockly.MIXLY_I2C_BYTES='bytes';
Blockly.MIXLY_I2C_MASTER_READ='I2C_Read device';
-Blockly.MIXLY_I2C_MASTER_READ2='I2C_Slave_Read';
+Blockly.MIXLY_I2C_MASTER_READ2='I2C Read';
Blockly.MIXLY_I2C_MASTER_WRIT... |
Homepage: Fix convert engine test
After one of the [recent PRs](https://issues.libelektra.org/2580) the
[YAJL plugin](https://www.libelektra.org/plugins/yajl) now passes the
round-trip validation test.
This update closes | @@ -151,7 +151,7 @@ TEST (kdbrestServicesConvertengineTest, ExportToFormatCheck2)
ASSERT_EQ (cf.getPluginformat ().getFileformat (), "json");
ASSERT_EQ (cf.getPluginformat ().getPluginname (), "yajl");
- ASSERT_FALSE (cf.isValidated ());
+ ASSERT_TRUE (cf.isValidated ());
std::string expected_output = "{\"obj\":{\"var1... |
even smaller size | @@ -25,14 +25,14 @@ hosts:
proxy.reverse.url: http://127.0.0.1:$upstream_port
EOT
-my $huge_file_size = 5 * 1024 * 1024;
+my $huge_file_size = 1 * 1024 * 1024;
my $huge_file = create_data_file($huge_file_size);
my $doit = sub {
my ($proto, $opt, $port) = @_;
- my $out = `nghttp $opt -nv -d $huge_file -m 10 $proto://127... |
engine: use new names of plugins init calls | @@ -402,13 +402,19 @@ int flb_engine_start(struct flb_config *config)
}
/* Initialize input plugins */
- flb_input_initialize_all(config);
+ flb_input_init_all(config);
+
+ /* Initialize filter plugins */
+ ret = flb_filter_init_all(config);
+ if (ret == -1) {
+ return -1;
+ }
/* Inputs pre-run */
flb_input_pre_run_all... |
docs/conf: Version 2.11.0.16. | @@ -74,7 +74,7 @@ copyright = '2014-2019, Damien P. George, Paul Sokolovsky, and contributors'
#
# We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags"
# breakdown, so use the same version identifier for both to avoid confusion.
-version = release = '2.11.0.15'
+version = release ... |
stm32/modnetwork: Don't take netif's down when network is deinited.
It should be up to the NIC itself to decide if the network interface is
removed upon soft reset. Some NICs can keep the interface up over a soft
reset, which improves usability of the network. | @@ -67,12 +67,6 @@ void mod_network_init(void) {
}
void mod_network_deinit(void) {
- #if MICROPY_PY_LWIP
- for (struct netif *netif = netif_list; netif != NULL; netif = netif->next) {
- netif_remove(netif);
- }
- // TODO there may be some timeouts that are still pending...
- #endif
}
void mod_network_register_nic(mp_ob... |
Update check_swig_timestamp.sh | @@ -34,5 +34,5 @@ do
done
# If everything was up to date, tell the user
-echo "Autogenerated SWIG files appear to be up to date."
+echo "Autogenerated SWIG files appear to be up to date. Make sure you've committed any changes."
echo "(This is not guaranteed though, so re-run SWIG if you are experiencing issues with the... |
Add Ampere EMAG8180 | @@ -1093,6 +1093,22 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else
#endif
+#ifdef FORCE_EMAG8180
+#define ARMV8
+#define FORCE
+#define ARCHITECTURE "ARM64"
+#define SUBARCHITECTURE "EMAG8180"
+#define SUBDIRNAME "arm64"
+#define ARCHCONFIG "-DEMAG8180 " \
+ "-DL1_CODE_SIZE=32768 -DL1... |
[kernel] clean up | @@ -43,7 +43,7 @@ typedef std::map<unsigned int, SP::SimpleMatrix> MapOfDSMatrices;
// ================== Objects to handle Interactions ==================
/** Map of MapOfInteractionMapOfDSMatrices with a DynamicalSystem as a key - Used for interactionBlock-terms indexed by a DynamicalSystem and an Interaction in asse... |
Update AtkResNode.cs
NodeType doesn't work that way | @@ -13,9 +13,8 @@ namespace FFXIVClientStructs.FFXIV.Component.GUI
NineGrid = 4,
Counter = 5,
- Collision = 8,
+ Collision = 8
// Component: >=1000
- Window = 1004
}
// 'visible' will change visibility immediately, the rest rely on other stuff to happen so they dont do anything
|
display: remote_cmd reformatting | @@ -181,7 +181,7 @@ static void display_displayLocked(honggfuzz_t * hfuzz)
hfuzz->fileCnt);
if (hfuzz->linux.pid > 0) {
- display_put("Remote cmd [" ESC_BOLD "%d" ESC_RESET "]: '" ESC_BOLD "%s" ESC_RESET
+ display_put(" Remote cmd : [" ESC_BOLD "%d" ESC_RESET "] '" ESC_BOLD "%s" ESC_RESET
"'\n", hfuzz->linux.pid, hfuzz... |
Add information to reconfigure API failure
This update gives a bit more information when the reconfigure API fails. | @@ -376,7 +376,8 @@ fpga_result __FPGA_API__ fpgaReconfigureSlot(fpga_handle fpga,
result = ioctl(_handle->fddev, FPGA_FME_PORT_PR, &port_pr);
if (result != 0) {
- FPGA_ERR("Failed to reconfigure bitstream");
+ FPGA_ERR("Failed to reconfigure bitstream: %s",
+ strerror(errno));
if ((errno == EINVAL) || (errno == EFAULT... |
Eat all bus messages from 'queue2' | @@ -1202,9 +1202,14 @@ kms_player_endpoint_post_media_error (gpointer d)
{
ErrorData *data = d;
- gst_element_post_message (GST_ELEMENT (data->self),
+ gboolean ok = gst_element_post_message (GST_ELEMENT (data->self),
gst_message_ref (data->message));
+ if (!ok) {
+ GST_ERROR ("gst_element_post_message() FAILED");
+ gs... |
makefile: minikube-install should fail if image is not correctly loaded | @@ -205,7 +205,8 @@ minikube-install: gadget-default-container kubectl-gadget
$(MINIKUBE) image load $(CONTAINER_REPO):$(IMAGE_TAG) ; \
fi
@echo "Image in Minikube:"
- $(MINIKUBE) image ls --format=table | grep "$(CONTAINER_REPO)\s*|\s*$(IMAGE_TAG)" || true
+ $(MINIKUBE) image ls --format=table | grep "$(CONTAINER_REPO... |
diff DOC missing doxygen for param | @@ -189,7 +189,7 @@ lyd_diff_add(const struct lyd_node *node, enum lyd_diff_op op, const char *orig_
/**
* @brief Get a userord entry for a specific user-ordered list/leaf-list. Create if does not exist yet.
*
- * @param[in] first
+ * @param[in] first Node from the first tree, can be NULL (on create).
* @param[in] sche... |
fixed stupid typo in temp var allocation resulting in possible buffer overflow. | @@ -50,7 +50,7 @@ int main(int argc, char **argv)
FILE *FileInput;
FILE *FileOutput;
char path[4096];
- unsigned char temp[16];
+ char temp[4096];
// default
FileName = "";
@@ -200,9 +200,9 @@ int main(int argc, char **argv)
fclose(FileInput);
// now make .h file
- strcpy(temp, FileNameOut);
- strcat(temp, ".h");
- Fil... |
pbio/uartdev: disallow mode setting on motors
We currently do not support changing mode if it is already in combo mode. Doing so currently causes the runtime to hang since the mode change never completes.
This changes makes the error explicit and avoids the hang. | @@ -1130,6 +1130,11 @@ static pbio_error_t ev3_uart_set_mode_begin(pbio_iodev_t *iodev, uint8_t mode) {
uartdev_port_data_t *port_data = PBIO_CONTAINER_OF(iodev, uartdev_port_data_t, iodev);
pbio_error_t err;
+ // User mode change for motors is not supported
+ if (PBIO_IODEV_IS_FEEDBACK_MOTOR(iodev)) {
+ return PBIO_ER... |
mangoapp: remove some debug | @@ -59,15 +59,12 @@ void ctrl_thread(){
switch (mangoapp_ctrl_v1->no_display){
case 1:
params->no_display = 1;
- printf("set no_display 1\n");
break;
case 2:
params->no_display = 0;
- printf("set no_display 0\n");
break;
case 3:
params->no_display ? params->no_display = 0 : params->no_display = 1;
- printf("toggle no_d... |
Update README.md with proper CI/readthedocs links | -# Chipyard Framework [](https://circleci.com/gh/ucb-bar/chipyard/tree/master)
+# Chipyard Framework [](https://circleci.com/gh/ucb-bar/chipyard/tree/mast... |
Port matrix-test to new API for | #include "matrix-test.hpp"
-using namespace engine;
-using namespace graphics;
+using namespace blit;
const uint16_t screen_width = 320;
const uint16_t screen_height = 240;
@@ -18,8 +17,8 @@ uint8_t __pb[screen_width * screen_height] __attribute__((section(".fb")));
/* create surfaces */
//surface fb((uint8_t *)__fb, s... |
minor +on-done -> +on-take-done | ?- sign
[%b %wake *] (on-take-wake:event-core wire error.sign)
::
- [%c %done *] (on-done:event-core wire error.sign)
- [%g %done *] (on-done:event-core wire error.sign)
- [%j %done *] (on-done:event-core wire error.sign)
+ [%c %done *] (on-take-done:event-core wire error.sign)
+ [%g %done *] (on-take-done:event-core w... |
jenkinsfile: fix missing "now" property for release pipeline | @@ -24,6 +24,7 @@ enum DOCKER_OPTS {
public DOCKER_OPTS() {} // WORKAROUND see TEST
}
+NOW = new Date()
DOCKER_IMAGES = [:] // Containers docker image descriptions, populated during
// dockerInit()
|
feat: support fn+enter alias for insert on mac keyboards | @@ -1046,6 +1046,10 @@ static void handleKeydown(SDL_Keycode keycode, bool down, bool* state)
#if defined(__TIC_ANDROID__)
if(keycode == SDLK_AC_BACK)
state[tic_key_escape] = down;
+#elif defined(__TIC_MACOSX__)
+ // SDLK_KP_ENTER is the equivalent of fn+enter on a Macbook keyboard
+ if(keycode == SDLK_KP_ENTER)
+ stat... |
[kernel][vm] try the next arena if current is out of free pages | @@ -118,7 +118,7 @@ size_t pmm_alloc_pages(uint count, struct list_node *list) {
/* walk the arenas in order, allocating as many pages as we can from each */
pmm_arena_t *a;
list_for_every_entry(&arena_list, a, pmm_arena_t, node) {
- while (allocated < count) {
+ while (allocated < count && a->free_count > 0) {
vm_page... |
Use SSLv3-specific ciphers in S2N_CLIENT mode
Composite ciphers fix introduced SSLv3-specific ciphers, but only
used them when we're in S2N_SERVER mode, and missed the change for
S2N_CLIENT mode. | @@ -820,6 +820,12 @@ int s2n_set_cipher_as_client(struct s2n_connection *conn, uint8_t wire[S2N_TLS_C
conn->secure.cipher_suite = s2n_cipher_suite_from_wire(wire);
S2N_ERROR_IF(conn->secure.cipher_suite == NULL, S2N_ERR_CIPHER_NOT_SUPPORTED);
+ /* For SSLv3 use SSLv3-specific ciphers */
+ if (conn->actual_protocol_vers... |
linux-rasbperrypi: Update to 4.9.35 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
-LINUX_VERSION ?= "4.9.27"
+LINUX_VERSION ?= "4.9.35"
-SRCREV = "9a5f215eda12bad29b35040dff00d0346fe517e2"
+SRCREV = "be2540e540f5442d7b372208787fb64100af0c54"
SRC_URI = "git://github.com/raspberrypi/linux.git;branch=rpi-4.9.y"
require linux-raspberrypi.inc
|
fixup >1 device doc parallel layout initialization bug | @@ -82,7 +82,7 @@ namespace NCatboostCuda {
CB_ENSURE(allFeatures.size() == GetDeviceCount() * featureCount);
if (features.size()) {
- auto layout = CreateLayout(features.size());
+ auto layout = CreateLayout(features.size() / GetDeviceCount());
result.CudaFeaturesDevice.Reset(layout);
result.CudaFeaturesDevice.Write(f... |
Update tutorial_bcc_python_developer.md
that kernel bug is fixed in 4.8-rc3 and what broke there is fixed in 4.8.10
according to | @@ -164,7 +164,7 @@ Things to learn:
1. ```key = 0```: We'll only store one key/value pair in this hash, where the key is hardwired to zero.
1. ```last.lookup(&key)```: Lookup the key in the hash, and return a pointer to its value if it exists, else NULL. We pass the key in as an address to a pointer.
1. ```if (tsp != ... |
link-view: handle eyre bind acks | ==
==
::
+ ++ on-arvo
+ |= [=wire =sign-arvo]
+ ^- (quip card _this)
+ ?. ?=([%e %bound *] sign-arvo)
+ (on-arvo:def wire sign-arvo)
+ ~? !accepted.sign-arvo
+ [dap.bowl "bind rejected!" binding.sign-arvo]
+ [~ this]
+ ::
++ on-peek on-peek:def
++ on-leave on-leave:def
- ++ on-arvo on-arvo:def
++ on-fail on-fail:def
--... |
xr871:disable nano.specs,enalbe printf %llu | @@ -95,7 +95,8 @@ GLOBAL_CFLAGS += -D__PRJ_CONFIG_IMG_COMPRESS
endif
GLOBAL_LDFLAGS += -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
-GLOBAL_LDFLAGS += -Wl,--gc-sections --specs=nano.specs
+GLOBAL_LDFLAGS += -Wl,--gc-sections
+#--specs=nano.specs
GLOBAL_LDFLAGS += -Wl,--wrap,main
GLOBAL_LDFLAGS += -lstdc... |
ble_mesh: Allow maximum 377 octets payload | @@ -1944,8 +1944,8 @@ void btc_ble_mesh_model_call_handler(btc_msg_t *msg)
break;
}
case BTC_BLE_MESH_ACT_SERVER_MODEL_SEND: {
- /* arg->model_send.length contains opcode & message, 8 is used for TransMIC */
- struct net_buf_simple *buf = bt_mesh_alloc_buf(arg->model_send.length + 8);
+ /* arg->model_send.length contai... |
base64: use checked xmalloc() | #include <string.h>
#include "base64.h"
+#include "xmalloc.h"
/* Encodes the given data with base64..
*
@@ -41,7 +42,7 @@ base64_encode (const void *buf, size_t size) {
static const char base64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
- char *str = (char *) malloc ((size + 3) * 4 / 3 + 1)... |
tools/fs: add x option, messages and modify volume name on mkromfsimg.sh
1. Because the .gitignore should not be included at romfs.img, x option
is added.
2. Messages are added to know the start and end of making romfs.
3. The volume name is changed to "TinyAraROMVol" from "NuttXBootVol". | @@ -61,6 +61,8 @@ if [ ! -f tools/mkromfsimg.sh ]; then
fi
fi
+echo "Making romfs.img..."
+
# Environmental stuff
topdir=$PWD
@@ -83,6 +85,7 @@ genromfs -h 1>/dev/null 2>&1 || { \
# Now we are ready to make the ROMFS image
-genromfs -f ${romfsimg} -d ${contentsdir} -V "NuttXBootVol" || { echo "genromfs failed" ; exit 1... |
meep: add convertible SKU ID
This patch adds a convertible SKUID for with Stylus but no rear camera
SKU.
BRANCH=octopus
TEST=make buildall -j | @@ -209,14 +209,19 @@ struct motion_sensor_t motion_sensors[] = {
unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors);
/*
- * meep is convertible SKU (SKU ID is 1, 2, 3), mimrock is clamshell
- * SKU (SKU ID is 17, 18), vortininja is convertible SKU (SKU ID is 49,
- * 50, 51, 52) and default SKU is 255 for fa... |
Ignore unused function and variable warning for mock file compilation.
Static function and variables are unused for mock files and hence
generate warnings. Hence, ignore only those warnings. | @@ -12,6 +12,7 @@ $(MOCK_DIR)/%_mock.c: $(abs_top_srcdir)/src/%.c
# For some reason, mock.o files are intermediate files sometimes.
# Mark them as secondary in order not to be deleted automatically.
.SECONDARY:
+$(MOCK_DIR)/%_mock.o: CFLAGS+= -Wno-unused-function -Wno-unused-variable
$(MOCK_DIR)/%_mock.o: $(MOCK_DIR)/%... |
typo in REAME.md | @@ -85,7 +85,7 @@ A repl is launched when the binary is invoked with no arguments. Pass the -h fla
to display the usage information. Individual scripts can be run with `./janet myscript.janet`
If you are looking to explore, you can print a list of all available macros, functions, and constants
-by entering the command ... |
Testing: extend test for nearest (1 and 4 points) | #
. ./include.ctest.sh
-set -u
+
# ---------------------------------------------------------
# This is the test for the JIRA issue ECC-1001
# grib_ls -j -l command (JSON for nearest)
# ---------------------------------------------------------
-label="grib_ecc-1001-test"
-tempOut=temp.${label}.out
+label="grib_ecc-1001_... |
CMakelist check full version string | @@ -189,7 +189,7 @@ endif()
if(ENABLE_SSH)
find_package(LibSSH 0.7.0 REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNC_ENABLED_SSH")
- if(LibSSH_PACKAGE_FIND_VERSION_MINOR LESS 8)
+ if(LibSSH_PACKAGE_FIND_VERSION LESS 0.8.0)
target_link_libraries(netconf2 "-L${LIBSSH_LIBRARY_DIR}" -lssh -lssh_threads -lcrypt)
else()
t... |
Correcting mistakes and typos. | @@ -335,8 +335,8 @@ def dockerInit() {
/* Bionic image*/
DOCKER_IMAGES.bionic = createDockerImageDesc(
"bionic", this.&idTesting,
- "./scripts/docker/ubuntu/xenial",
- ".scripts/docker/ubuntu/xeniel/Dockerfile"
+ "./scripts/docker/ubuntu/bionic",
+ ".scripts/docker/ubuntu/bionic/Dockerfile"
)
/* Image building the libe... |
mmu: fix wrong mmu entry id issue | @@ -91,12 +91,12 @@ void mmu_hal_map_region(uint32_t mmu_id, mmu_target_t mem_type, uint32_t vaddr,
uint32_t mmu_val; //This is the physical address in the format that MMU supported
*out_len = mmu_hal_pages_to_bytes(mmu_id, page_num);
- entry_id = mmu_ll_get_entry_id(mmu_id, vaddr);
mmu_val = mmu_ll_format_paddr(mmu_id... |
Update rts and rts-m properties | @@ -725,6 +725,7 @@ register_resources(void)
oc_link_t *sm1 = oc_new_link(res_scenemember1);
oc_collection_add_link(res_scenecol1, sm1);
+ oc_collection_add_mandatory_rt(res_scenecol1, "oic.wk.scenemember");
oc_collection_add_supported_rt(res_scenecol1, "oic.wk.scenemember");
oc_resource_set_properties_cbs(res_scenecol... |
Write key_share base on key_exchange mode.
In ServerHello, write key share should base on key_exchange mode, not
base on configuration. | @@ -1803,7 +1803,7 @@ static int ssl_tls13_write_server_hello_body( mbedtls_ssl_context *ssl,
}
p += output_len;
- if( mbedtls_ssl_conf_tls13_some_ephemeral_enabled( ssl ) )
+ if( mbedtls_ssl_tls13_key_exchange_mode_with_ephemeral( ssl ) )
{
if( is_hrr )
ret = ssl_tls13_write_hrr_key_share_ext( ssl, p, end, &output_len... |
mars.step computation | @@ -52,12 +52,24 @@ if (numberOfForecastsUsedInLocalTime == 1) {
# need something here to compute the diff between date time of *OfForecastUsedInLocalTime and the local time defined in section 1 (dataDate and dataTime)
# this would be the offset (step) used to index data in mars as mars.step
- meta DateTimeOfForecastUs... |
Add description of fabric part before compiling the demo. | @@ -48,3 +48,11 @@ Before compiling the Demo, you need to modify the following parts of the Demo C
- For PlatONE, there is no need to modify the private key in the Demo
- For FISCO-BCOS, set it to the private key under <FISCO-BCOS_ROOT>/console/accounts
4. Search for `demoRecipientAddress` and modify it to the deployme... |
integration: Add test for biotop. | @@ -106,6 +106,25 @@ func TestMain(m *testing.M) {
os.Exit(ret)
}
+func TestBiotop(t *testing.T) {
+ biotopCmd := &command{
+ name: "Start biotop gadget",
+ cmd: "$KUBECTL_GADGET biotop --node $(kubectl get node --no-headers | cut -d' ' -f1)",
+ expectedRegexp: `etcd`,
+ startAndStop: true,
+ }
+
+ commands := []*comma... |
Fixed typo
Credit:
AyushiN | @@ -2603,7 +2603,7 @@ curve25519_sha256(LIBSSH2_SESSION *session, unsigned char *data,
session->session_id = LIBSSH2_ALLOC(session, digest_length);
if(!session->session_id) {
ret = _libssh2_error(session, LIBSSH2_ERROR_ALLOC,
- "Unable to allxcocate buffer for "
+ "Unable to allocate buffer for "
"SHA digest");
goto cl... |
Remove 0b literal prefix | @@ -127,8 +127,8 @@ typedef void (*gpio_hal_callback_t)(gpio_hal_pin_mask_t pin_mask);
#define GPIO_HAL_PIN_CFG_INPUT_PULLUP (1 << 1)
#define GPIO_HAL_PIN_CFG_INPUT_PULLDOWN (2 << 1)
-#define GPIO_HAL_PIN_BM_INPUT_HYSTERESIS (0b00000001 << 0)
-#define GPIO_HAL_PIN_BM_INPUT_PULLING (0b00000110 << 0)
+#define GPIO_HAL_PI... |
include/event_log.h: Format with clang-format
BRANCH=none
TEST=none | @@ -23,8 +23,8 @@ struct event_log_entry {
#define EVENT_LOG_NO_ENTRY 0xff
/* Add an entry to the event log. */
-void log_add_event(uint8_t type, uint8_t size, uint16_t data,
- void *payload, uint32_t timestamp);
+void log_add_event(uint8_t type, uint8_t size, uint16_t data, void *payload,
+ uint32_t timestamp);
/*
* R... |
BugID:19354287: fix compilation problems of stm32f769i-discovery | @@ -609,7 +609,7 @@ endif
source "board/stm32f769i-discovery/Config.in"
if AOS_BOARD_B_F769
config AOS_BUILD_BOARD
- default "b_f769"
+ default "stm32f769i-discovery"
source "platform/mcu/stm32f7xx/Config.in"
source "platform/arch/arm/armv7m/Config.in"
|
Resource leak: connectfd in another file | @@ -81,7 +81,7 @@ BOAT_RESULT BoatSignature( const BoatSignatureAlgType type, const BUINT8* prikey
BUINT8 sig[64];
// BUINT8 ecdsPrefix = 0;
- BOAT_RESULT result;
+ BOAT_RESULT result = BOAT_ERROR;
//boat_try_declare;
(void)rsvd;
@@ -368,7 +368,7 @@ BSINT32 BoatConnect(const BCHAR *address, void* rsvd)
return -1;
}
- i... |
libbpf-tools: update numamove for libbpf 1.0
Switch to libbpf 1.0 mode and adapt libbpf API usage accordingly. | @@ -81,14 +81,9 @@ int main(int argc, char **argv)
if (err)
return err;
+ libbpf_set_strict_mode(LIBBPF_STRICT_ALL);
libbpf_set_print(libbpf_print_fn);
- err = bump_memlock_rlimit();
- if (err) {
- fprintf(stderr, "failed to increase rlimit: %d\n", err);
- return 1;
- }
-
obj = numamove_bpf__open_and_load();
if (!obj) ... |
chat-hook: fixes typo in $sign migration | =/ nack-count=@ud (slav %ud i.t.wire)
=/ who=@p (slav %p i.t.t.wire)
=/ pax t.t.t.wire
- ?> ?=([%behns %wake *] sign-arvo)
+ ?> ?=([%behn %wake *] sign-arvo)
~? ?=(^ error.sign-arvo)
"behn errored in backoff timers, continuing anyway"
:_ this
|
[out_forward] Don't assumed 'secure' mode just because TLS is on
If we are using fluent-bit -> fluent-bit (e.g. fwd from one
to another) we might have a TLS tunnel in the middle courtesy
of e.g. stunnel. We are secured by client-certificate, but not
by 'forward protocol secure mode'. | @@ -428,15 +428,14 @@ static int forward_config_ha(char *upstream_file,
}
fc->secured = FLB_FALSE;
- /* Is TLS enabled ? */
- if (node->tls_enabled == FLB_TRUE) {
- fc->secured = FLB_TRUE;
- }
-
/* Shared key (secure_forward) */
tmp = flb_upstream_node_get_property("shared_key", node);
if (tmp) {
fc->shared_key = flb_s... |
ble_mesh: Skip local messages in rx
Local messages are already enqueued for the LPN in the tx path, and
don't have to be added again in the rx path. | @@ -1310,6 +1310,14 @@ static void friend_lpn_enqueue_rx(struct bt_mesh_friend *frnd,
struct friend_pdu_info info;
struct net_buf *buf;
+ /* Because of network loopback, tx packets will also be passed into
+ * this rx function. These packets have already been added to the
+ * queue, and should be ignored.
+ */
+ if (bt... |
jna: fix tests | @@ -5,6 +5,7 @@ import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.libelektra.Key;
+import org.libelektra.KeySet;
public class ReturnTest {
@@ -22,32 +23,28 @@ public class ReturnTest {
@Test
public void test_returnOpen_shouldBeCode0() {
- var config = returnPlugin.g... |
Prevent killing unexpected process
A missing initialization (fixed by the previous commit) leaded to kill
unexpected process.
In order to prevent consequences of similar errors in the future, never
call kill() with a non-positive PID.
See <https://github.com/Genymobile/scrcpy/issues/182>. | #include "command.h"
#include <signal.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
+#include "log.h"
pid_t cmd_execute(const char *path, const char *const argv[]) {
pid_t pid = fork();
@@ -20,6 +22,10 @@ pid_t cmd_execute(const char *path, const char *const argv[]) {
}
SDL_bo... |
Compiler warnings: Use C style comments | @@ -158,7 +158,7 @@ int grib_recompose_name(grib_handle* h, grib_accessor *observer, const char* una
mode = 0;
else {
#if 0
- int llen=strlen(fname); // The strlen cost is too high
+ int llen=strlen(fname); /* The strlen cost is too high */
fname[llen]=uname[i];
fname[llen+1]='\0';
#else
|
declare rst as uint8_t in adc-recorder.c | @@ -8,7 +8,8 @@ int main()
{
int fd, i;
int16_t value[2];
- volatile uint32_t *rst, *size, *slcr, *axi_hp0;
+ volatile uint8_t *rst;
+ volatile uint32_t *size, *slcr, *axi_hp0;
volatile void *cfg;
volatile int16_t *ram;
@@ -29,7 +30,7 @@ int main()
axi_hp0[0] &= ~1;
axi_hp0[5] &= ~1;
- rst = ((uint32_t *)(cfg + 0));
+ ... |
Remove CLAP_PLUGIN_FEATURE_WIN32_DPI_AWARE | #define CLAP_PLUGIN_FEATURE_STEREO "stereo"
#define CLAP_PLUGIN_FEATURE_SURROUND "surround"
#define CLAP_PLUGIN_FEATURE_AMBISONIC "ambisonic"
-
-/////////////////
-// GUI related //
-/////////////////
-
-// Add this feature if the plugin is DPI aware on Windows.
-#define CLAP_PLUGIN_FEATURE_WIN32_DPI_AWARE "win32-dpi-a... |
fix(BoatSignature of L610):
resolve the error of chainmaker running on L610 like this:
tx verify failed, verify tx authentation failed, authentication error, authentication fail, not ac member on this chain | @@ -131,9 +131,19 @@ BOAT_RESULT BoatSignature(BoatWalletPriKeyCtx prikeyCtx,
// signature result assign
memset(signatureResult, 0, sizeof(BoatSignatureResult));
pem_data[offset ++] = 0x30;
+ if((signatureTmp[0] & 0x80) == 0x80){
+ pem_data[offset ++] = 0x45;
+ }else{
pem_data[offset ++] = 0x44;
+ }
+
pem_data[offset +... |
Tests: "/config" prefix used. | @@ -327,10 +327,13 @@ class TestUnitControl(TestUnitHTTP):
# TODO socket reuse
# TODO http client
- def conf(self, conf, path='/'):
+ def conf(self, conf, path='/config'):
if isinstance(conf, dict):
conf = json.dumps(conf)
+ if path != '/config':
+ path = '/config' + path
+
return json.loads(self.put(
url=path,
body=co... |
pg_stat_statements: add missing check for pgss_enabled().
Make pgss_post_parse_analyze() more consistent with the other hooks,
and avoid unnecessary overhead when pg_stat_statements.track=none.
Author: Raymond Martin
Discussion: | @@ -788,7 +788,7 @@ pgss_post_parse_analyze(ParseState *pstate, Query *query)
Assert(query->queryId == UINT64CONST(0));
/* Safety check... */
- if (!pgss || !pgss_hash)
+ if (!pgss || !pgss_hash || !pgss_enabled())
return;
/*
|
OcConsoleLib: Cleanup background colour filling | @@ -76,6 +76,23 @@ STATIC
EFI_CONSOLE_CONTROL_PROTOCOL
mOriginalConsoleControlProtocol;
+//
+// EFI background colours.
+//
+STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiBackgroundColors[8] = {
+ //
+ // B G R reserved
+ //
+ {0x00, 0x00, 0x00, 0x00}, // BLACK
+ {0x98, 0x00, 0x00, 0x00}, // LIGHTBLUE
+ {0x00, 0x98, 0x00, 0... |
BTG block explorer links | @@ -22,6 +22,7 @@ namespace MiningCore.Blockchain
{ CoinType.MONA, "https://bchain.info/MONA/block/{0}" },
{ CoinType.GLT, "https://bchain.info/GLT/block/{0}" },
{ CoinType.VTC, "https://bchain.info/VTC/block/{0}" },
+ //{ CoinType.BTG, "https://btgexp.com/block/{0}" },
};
public static readonly Dictionary<CoinType, st... |
INI: drop error and warnings parent too + default line cont to space | @@ -537,7 +537,7 @@ int elektraIniOpen (Plugin * handle, Key * parentKey ELEKTRA_UNUSED)
if (!contStringKey)
{
- pluginConfig->continuationString = strdup ("\t");
+ pluginConfig->continuationString = strdup (" ");
}
else
{
@@ -1154,7 +1154,7 @@ static void iniWriteMeta (FILE * fh, Key * key)
{
Key * meta = (Key *)keyCu... |
util/ecst: Also report copy failure on writes
Found-by: Coverity Scan
Commit-Ready: Patrick Georgi
Tested-by: Patrick Georgi | @@ -1004,10 +1004,16 @@ int copy_file_to_file(char *dst_file_name,
/* If byte reading pass than write it to the destination, */
/* else exit from the reading loop. */
- if (result)
+ if (result) {
/* Read pass, so write it to destination file.*/
result = fwrite(&local_val, 1, 1, dst_file);
- else
+ if (!result)
+ /*
+ ... |
Add gcd and lcm tests | @@ -34,6 +34,10 @@ assert(Math.sin(1) < 0.845);
assert(Math.cos(0) == 1);
assert(Math.tan(1) > 1.5);
assert(Math.tan(1) < 1.6);
+assert(Math.gcd(32, 24, 12) == 4);
+assert(Math.gcd([32, 24, 12]) == 4);
+assert(Math.lcm(32, 24, 12) == 96);
+assert(Math.lcm([32, 24, 12]) == 96);
assert(Math.PI == 3.14159265358979);
asser... |
Update stxAliases.txt
Typo fixes | @@ -43,9 +43,9 @@ echo "stxstart Start Stratux Service."
echo "sdr0 Test to see if sdr0 is in use by Stratux."
echo "sdr1 Test to see if sdr1 is in use by Startux."
echo "sdrs Test to see if both SDRs are in use by Stratux."
-echo "d90 List my SDRs with serials"
+echo "d90 Run dump1090 on SDR0"
echo "d900 Run dump1090 ... |
config: cf_fluentbit: print config file load error | @@ -287,6 +287,8 @@ static int local_init(struct local_ctx *ctx, char *file)
p = realpath(file, path);
#endif
if (!p) {
+ flb_errno();
+ flb_error("file=%s", file);
return -1;
}
}
|
cr50: add more obvious sections in gpio.inc
Change the comments so it's more obvious what the sections are in
gpio.inc
BRANCH=none
TEST=none
Commit-Ready: Mary Ruthven
Tested-by: Mary Ruthven | /* Declare symbolic names for all the GPIOs that we care about.
* Note: Those with interrupt handlers must be declared first. */
+/*****************************************************************************/
+/* INTERRUPT GPIOs - interrupts processed in chip/g/gpio.c */
/*
* The system reset signal can be from two di... |
ble_mesh: Add comment explaining use of byte order [Zephyr]
Add comment that explains why a different byte order is used for the
3-byte opcode on the CID part of the opcode. | @@ -797,6 +797,10 @@ static int get_opcode(struct net_buf_simple *buf, u32_t *opcode)
}
*opcode = net_buf_simple_pull_u8(buf) << 16;
+ /* Using LE for the CID since the model layer is defined as
+ * little-endian in the mesh spec and using BT_MESH_MODEL_OP_3
+ * will declare the opcode in this way.
+ */
*opcode |= net_... |
Remove some unused functions
I forgot to remove them back when we changed the typechecking of builtins | @@ -63,25 +63,6 @@ local function check_match(loc, expected, found, term_fmt, ...)
end
end
-local function check_arity(loc, expected, found, term_fmt, ...)
- if expected ~= found then
- local term = string.format(term_fmt, ...)
- local msg = string.format("%s: expected %d value(s) but found %d",
- term, expected, found... |
Fix stack adjustment in pushtype; | @@ -83,9 +83,10 @@ int luax_getobject(lua_State* L, void* object) {
lua_gettable(L, -2);
if (lua_isnil(L, -1)) {
- lua_pop(L, 1);
+ lua_pop(L, 2);
return 0;
} else {
+ lua_remove(L, -2);
return 1;
}
}
|
runtime: add a variant of the spinlock api that disables preemption | #include <base/stddef.h>
#include <base/list.h>
+#include <base/lock.h>
#include <runtime/thread.h>
+#include <runtime/preempt.h>
/*
@@ -86,3 +88,44 @@ static inline void waitgroup_done(waitgroup_t *wg)
{
waitgroup_add(wg, -1);
}
+
+
+/*
+ * Spin lock support
+ */
+
+/**
+ * spin_lock_np - takes a spin lock and disable... |
Testing: check 'missing' applied to Code Table keys | @@ -31,12 +31,17 @@ typedef struct grib_expression_string {
char* value;
} grib_expression_string;
-static int type_of_surface_missing(const char* value)
+static int type_of_surface_missing(const char* name, const char* value)
{
/* Surface Type is Code Table 4.5 in which 255 is the same as missing */
- if (strcmp(value... |
Remove defdo and defdo- | (apply1 tuple (array.concat
@['defmacro name :private] more)))
-(defmacro defdo
- "Define a value inside of a do form."
- [name & more]
- (apply1 tuple (array.concat
- @['def name]
- (apply1 tuple (array.concat @['do] more)))))
-
-(defmacro defdo-
- "Define a private value inside of a do form."
- [name & more]
- (apply... |
Solved conflicting types with timestamp | @@ -101,12 +101,12 @@ static inline void sys_arch_unprotect(sys_prot_t x)
extern void console(char *);
typedef unsigned long long time;
-//extern timestamp now();
+extern timestamp now();
extern void lwip_debug(char * format, ...);
static inline u32_t sys_now(void)
{
- u64_t t = now();
+ u64_t t = (u64_t)now();
return ... |
jenkinsfile: fix docu build stage for release | @@ -124,10 +124,6 @@ def buildRelease(testName, image) {
deleteDir()
sh "git clone https://github.com/ElektraInitiative/ftp.git ."
}
- dir('doc') {
- deleteDir()
- sh "git clone https://github.com/ElektraInitiative/doc.git ."
- }
sh "sh libelektra/scripts/release/release.sh"
sh "mv release.tar.gz ${testName}-release.ta... |
Test XML declaration with missing value for 'standalone' attr | @@ -1342,6 +1342,15 @@ START_TEST(test_xmldecl_missing_attr)
}
END_TEST
+START_TEST(test_xmldecl_missing_value)
+{
+ expect_failure("<?xml version='1.0' encoding='us-ascii' standalone?>\n"
+ "<doc/>",
+ XML_ERROR_XML_DECL,
+ "Failed to report missing attribute value");
+}
+END_TEST
+
/* Regression test for SF bug #5848... |
readline-devel on zypper | @@ -49,7 +49,7 @@ install_tools()
{
{ apt-get --version >/dev/null 2>&1 && $sudoprefix apt-get install -y git build-essential libreadline-dev; } ||
{ yum --version >/dev/null 2>&1 && $sudoprefix yum install -y git readline-devel && $sudoprefix yum groupinstall -y 'Development Tools'; } ||
- { zypper --version >/dev/nul... |
Doc update: set master passphrase limited to 30 times per boot. Details of the FIS, excluding from documentation here. | @@ -1924,7 +1924,6 @@ NVM_API int nvm_erase_device(const NVM_UID device_uid, const NVM_PASSPHRASE pass
/**
* @brief If data at rest security is not enabled and master passphrase is enabled
* in the DIMM security state, this method modifies the master passphrase.
- * Can only be modified once per boot.
* @param[in] devi... |
examples: add clean + -j to unit-tests
This example is called from the regression
tests and they need to be reproducible, add
a make clean. Also add -j$(CPUS) to get some
speedup over sequential execution. | <identifier>mtype72</identifier>
<description>Cooja Mote Type #1</description>
<source>[CONTIKI_DIR]/examples/libs/unit-tests/code-unittests/test-examples.c</source>
- <commands>make test-examples.cooja TARGET=cooja</commands>
+ <commands>make TARGET=cooja clean
+make -j$(CPUS) test-examples.cooja TARGET=cooja</command... |
fix(test): off by one error with kscan processing | @@ -72,12 +72,13 @@ static int kscan_mock_configure(struct device *dev, kscan_callback_t callback)
struct kscan_mock_data *data = \
CONTAINER_OF(work, struct kscan_mock_data, work); \
const struct kscan_mock_config_##n *cfg = data->dev->config_info; \
- u32_t ev = cfg->events[data->event_index++]; \
+ u32_t ev = cfg->e... |
nvbios: Validate PCI Data Structure offset is 4-byte aligned
"The PCI Data Structure ... must be DWORD aligned."
PCI Specification, Revision 2.2. (1998), pg 207
PCI Firmware Specification, Revision 3.0 (2005), pg 71 | @@ -66,6 +66,12 @@ broken_part:
goto broken_part;
if (curpos + pcir_ilen * 0x200 > bios->origlength)
goto broken_part;
+ /* "The PCI Data Structure ... must be DWORD aligned."
+ * PCI Specification, Revision 2.2. (1998), pg 207
+ * PCI Firmware Specification, Revision 3.0 (2005), pg 71
+ */
+ if (pcir_offset & 0x3)
+ g... |
mbedtls: suppress -Wstringop-overflow | @@ -245,12 +245,19 @@ TEST_CASE("mbedtls SHA384 clone", "[mbedtls][")
TEST_ASSERT_EQUAL(0, mbedtls_sha512_update(&ctx, one_hundred_bs, 100));
TEST_ASSERT_EQUAL(0, mbedtls_sha512_update(&clone, one_hundred_bs, 100));
}
+/* intended warning supression: is384 == true */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic... |
vere: adds missing function comments in pier.c | @@ -1435,6 +1435,8 @@ u3_pier_boot(c3_w wag_w, // config flags
return pir_u;
}
+/* _pier_save_cb(): save snapshot upon serf/disk synchronization.
+*/
static void
_pier_save_cb(void* ptr_v, c3_d eve_d)
{
@@ -1468,6 +1470,8 @@ u3_pier_save(u3_pier* pir_u)
return c3n;
}
+/* _pier_cram_cb(): save snapshot upon serf/disk sy... |
Improve initial font texture size; | @@ -21,11 +21,15 @@ Font* lovrFontCreate(FontData* fontData) {
int padding = 1;
font->atlas.x = padding;
font->atlas.y = padding;
- font->atlas.width = 64;
- font->atlas.height = 64;
+ font->atlas.width = 256;
+ font->atlas.height = 256;
font->atlas.padding = padding;
map_init(&font->atlas.glyphs);
+ while (font->atlas... |
Increase log level for "Expiring subscriptions..."
Fixes
NixOS systems with Avahi enabled would previously spam the journal with
this log message once a second: this hides that spam behind the log level. | @@ -621,7 +621,7 @@ cupsdExpireSubscriptions(
curtime = time(NULL);
update = 0;
- cupsdLogMessage(CUPSD_LOG_INFO, "Expiring subscriptions...");
+ cupsdLogMessage(CUPSD_LOG_DEBUG, "Expiring subscriptions...");
for (sub = (cupsd_subscription_t *)cupsArrayFirst(Subscriptions);
sub;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.