message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
changed option | #define QUERY_RETRIES 2
#define EXPENSIVE_RAM 1
-#define OPENSSL 2 // 0 disactivate, 1 activated, 2 test openssl vs secp256k1
+#define OPENSSL 0 // 0 disactivate, 1 activated, 2 test openssl vs secp256k1
enum bi_flags {
BI_MAIN = 0x01,
|
Also disable shared memory test, issue | @@ -65,7 +65,8 @@ def sharedmem_transact(memory, value):
return read_shared_memory(memory, VALUE_ADDR)
-@test_harness.test(['emulator'])
+# Disabled because of bug #141
+#@test_harness.test(['emulator'])
def shared_memory(*unused):
"""See coprocessor.c for an explanation of this test"""
|
Docs - add information about -with-gpbackup option | @@ -7,7 +7,7 @@ This tool collects Greenplum and system log files, along with the relevant confi
```
gpmt gp_log_collector [-failed-segs | -c <ID1,ID2,...>| -hostfile <file> | -h <host1, host2,...>]
[ -start <YYYY-MM-DD> ] [ -end <YYYY-MM-DD> ]
-[ -dir <path> ] [ -segdir <path> ] [ -a ] [-skip-master] [-with-gptext] [-... |
randomx set fork time bug fixing | #include <string.h>
#include <stdio.h>
#include <unistd.h>
-#include <limits.h>
+//#include <limits.h>
#include <pthread.h>
#include <randomx.h>
#include "utils/log.h"
@@ -74,7 +74,8 @@ inline void rx_set_fork_time(struct block_internal *m) {
next_rx_mem->seed_height = m->height;
xdag_info("*#*from %llu,%llx, set switc... |
dpdk: avoid false sharing of dpdk_buffer_per_thread_data | @@ -81,6 +81,7 @@ STATIC_ASSERT (VLIB_BUFFER_PRE_DATA_SIZE == RTE_PKTMBUF_HEADROOM,
typedef struct
{
+ CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
struct rte_mbuf ***mbuf_pending_free_list;
/* cached last pool */
|
coreboot: restore the debug print state | #include <if/acpi_defs.h>
#endif
-#define DEBUG_CPUBOOT 1
+
#ifdef DEBUG_CPUBOOT
-#define DEBUG(x...) if (1) debug_printf(x)
+#define DEBUG(x...) if (debug_flag) debug_printf(x)
#else
#define DEBUG(x...) ((void)0)
#endif
|
sys/reboot; if fcb_init() sees data it does not recognize in
the flash area allocated to it, erase that area. | @@ -96,10 +96,14 @@ reboot_init_handler(int log_store_type, uint8_t entries)
reboot_log_fcb.fl_entries = entries;
+ rc = fcb_init(fcbp);
+ if (rc) {
+ flash_area_erase(ptr, 0, ptr->fa_size);
rc = fcb_init(fcbp);
if (rc) {
return rc;
}
+ }
reboot_log_handler = (struct log_handler *)&log_fcb_handler;
if (rc) {
return rc;... |
Resolved changes | @@ -31,7 +31,6 @@ assert(Math.max(1,0.5,-1,0) == 1);
assert(Math.average(1, 2, 3) == 2);
assert(Math.average([1, 2, 3]) == 2);
-// assert(Math.average(1, 6, 1.2, -19, -98) == -21.76);
assert(Math.sum(1, 2, 3) == 6);
assert(Math.sum([1, 2, 3]) == 6);
|
framework/st_things: use presentative config for ARTIK board
ARTIK053, 053s, 055s are ARTIK05X series and it has
ARCH_BOARD_ARTIK05X_FAMILY config.
Let's use it instead of all of list of ARTIK board. | @@ -25,7 +25,7 @@ comment "ST_Things Config Parameters"
config ST_THINGS_ARTIK_HW_CERT_KEY
bool "Enable Artik H/W Certificate & Key"
- depends on ARCH_BOARD_ARTIK053 || ARCH_BOARD_ARTIK053S || ARCH_BOARD_ARTIK055 || ARCH_BOARD_ARTIK055S
+ depends on ARCH_BOARD_ARTIK05X_FAMILY
select TLS_WITH_SSS
select SUPPORT_FULL_SEC... |
readme: fix typo in code example | @@ -624,7 +624,7 @@ Stream Reader API
``io.RawIOBase`` interface for reading decompressed output as a stream::
with open(path, 'rb') as fh:
- dctx = zstd.ZstdDecpmpressor()
+ dctx = zstd.ZstdDecompressor()
with dctx.stream_reader(fh) as reader:
while True:
chunk = reader.read(16384)
|
Add docs & start get_ip command with DHCP config | @@ -156,6 +156,7 @@ esp_sta_getip(esp_ip_t* ip, esp_ip_t* gw, esp_ip_t* nm, uint8_t def,
ESP_MSG_VAR_ALLOC(msg, blocking);
ESP_MSG_VAR_SET_EVT(msg, evt_fn, evt_arg);
ESP_MSG_VAR_REF(msg).cmd_def = ESP_CMD_WIFI_CIPSTA_GET;
+ ESP_MSG_VAR_REF(msg).cmd = ESP_CMD_WIFI_CWDHCP_GET;
ESP_MSG_VAR_REF(msg).msg.sta_ap_getip.ip = i... |
Rewrite JWM_PKGCONFIG_EXISTS macro to support crossbuilding | @@ -93,17 +93,7 @@ AC_FUNC_ALLOCA()
# Check for pkg-config.
############################################################################
-AC_DEFUN([JWM_PKGCONFIG_EXISTS],
-[
- AC_MSG_CHECKING([for pkg-config])
- if which pkg-config >/dev/null ; then
- PKGCONFIG=pkg-config
- AC_MSG_RESULT($PKGCONFIG)
- else
- PKGCONFIG=... |
sse2: update indenting format
I've been trying to avoid this because I know it will destroy the
usefulness of git blame, but new code keeps getting added using the old
style, so I think I need to go through and apply the new style
consistently. | @@ -2309,7 +2309,6 @@ simde_mm_cmpunord_sd (simde__m128d a, simde__m128d b) {
#if defined(simde_math_isnan)
r_.u64[0] = (simde_math_isnan(a_.f64[0]) || simde_math_isnan(b_.f64[0])) ? ~UINT64_C(0) : UINT64_C(0);
r_.u64[1] = a_.u64[1];
-
#else
HEDLEY_UNREACHABLE();
#endif
@@ -2653,7 +2652,6 @@ simde_mm_cvtsi128_si64 (sim... |
Have example/jsonetc read and write extra commas | @@ -157,6 +157,8 @@ static const char* g_usage =
" -s -strict-json-pointer-syntax\n"
" -t -tabs\n"
" -fail-if-unsandboxed\n"
+ " -input-json-extra-comma\n"
+ " -output-json-extra-comma\n"
"\n"
"The input.json filename is optional. If absent, it reads from stdin.\n"
"\n"
@@ -174,6 +176,14 @@ static const char* g_usage =... |
jenkins: doc specific build functions | @@ -334,6 +334,7 @@ def generateFullBuildStages() {
return tasks
}
+/* Stage for analysing open Tasks and running sloccount */
def buildTodo() {
def stageName = "todo"
def openTaskPatterns = '''\
@@ -356,6 +357,7 @@ def buildTodo() {
}]
}
+/* Stage checking if release notes have been updated */
def buildCheckReleaseNot... |
apps/kernel_sample: fix async io test
aio.c compiles only when CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO is enable,
so in order to use it's functions we need to check whether
CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO is enabled. | @@ -323,7 +323,7 @@ static int user_main(int argc, char *argv[])
check_test_memory_usage();
#endif
-#ifdef CONFIG_FS_AIO
+#if defined(CONFIG_FS_AIO) && defined(CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO)
/* Check asynchronous I/O */
printf("\nuser_main: AIO test\n");
|
doc: add graphviz installation instructions | @@ -122,13 +122,14 @@ Depending on your Linux version, install the needed tools:
.. code-block:: bash
- sudo apt-get install doxygen python3-pip python3-wheel make
+ sudo apt-get install doxygen python3-pip \
+ python3-wheel make graphviz
* For Fedora use:
.. code-block:: bash
- sudo dnf install doxygen python3-pip pyt... |
Fixed processing Unix listening socket failures.
This is related to issue on GitHub. | @@ -1116,11 +1116,9 @@ nxt_main_listening_socket(nxt_sockaddr_t *sa, nxt_listening_socket_t *ls)
break;
}
- goto next;
- }
-
+ } else
#endif
-
+ {
switch (err) {
case EACCES:
@@ -1135,6 +1133,7 @@ nxt_main_listening_socket(nxt_sockaddr_t *sa, nxt_listening_socket_t *ls)
ls->error = NXT_SOCKET_ERROR_NOADDR;
break;
}
+ }... |
Re-re-re fix message.c ifup test | @@ -1903,11 +1903,13 @@ send_request_resend(const unsigned char *prefix, unsigned char plen,
id, neigh->ifp, resend_delay);
} else {
struct interface *ifp;
- FOR_ALL_INTERFACES(ifp)
+ FOR_ALL_INTERFACES(ifp) {
+ if(!if_up(ifp)) continue;
send_multihop_request(&ifp->buf, prefix, plen, src_prefix, src_plen,
seqno, id, 12... |
linker.cpp: let llvm::Function::setName() make the name unique
.... don't need the random generator | #include <iostream>
#include <set>
-#include <random>
#include "config.h"
#include "pocl.h"
@@ -87,15 +86,17 @@ find_called_functions(llvm::Function *F,
Callee->setCallingConv(llvm::CallingConv::C);
CI->setCallingConv(llvm::CallingConv::C);
}
+ if (!Callee->hasName())
+ Callee->setName("__anonymous_internal_func__");
+... |
Preliminary support for MetalANGLE for Xamarin iOS | @@ -95,10 +95,25 @@ def buildIOSFatLib(args, archs):
baseDir = getBaseDir()
buildDir = getBuildDir('xamarin_ios_unified')
- return execute('lipo', baseDir,
+ libFilePaths = []
+ for platform, arch in platformArchs:
+ libFilePath = "%s/%s-%s/libcarto_mobile_sdk.%s" % (getBuildDir('xamarin_ios', '%s-%s' % (platform, arch... |
fix: small regression that causes memory leak | @@ -66,11 +66,9 @@ discord_modify_current_user(struct discord *client,
/* @todo this is a temporary solution for wrapping with JS */
static void
-sized_buffer_from_json(char *json, size_t len, void *pp)
+sized_buffer_from_json(char *json, size_t len, void *data)
{
- if (!*(struct sized_buffer **)pp)
- *(struct sized_bu... |
docs/library/machine.I2C.rst: Clarify availability of primitive I2C ops. | @@ -79,18 +79,16 @@ The following methods implement the primitive I2C master bus operations and can
be combined to make any I2C transaction. They are provided if you need more
control over the bus, otherwise the standard methods (see below) can be used.
+These methods are available on software I2C only.
+
.. method:: I... |
Makefile.am: don't install resources
Those resources are converted to C and embedded into the final binary
during the build. There is no point in also installing them to
$(PREFIX)/share/doc/goaccess/ | bin_PROGRAMS = goaccess
AUTOMAKE_OPTIONS = subdir-objects
-dist_html_DATA = \
+dist_noinst_DATA = \
resources/tpls.html \
resources/css/app.css \
resources/css/bootstrap.min.css \
|
fix MLNDevTool podspec | @@ -29,7 +29,7 @@ Pod::Spec.new do |s|
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '8.0'
- s.libraries = 'z'
+ s.libraries = 'z', 'c++'
s.requires_arc = true
s.public_header_files = 'MLN-iOS/MLNDevTool/Classes/*.h'
s.dependency 'ArgoUI'
|
sasuke : enable pull-down of GPIOB4,GPIOB5
Enable pull-down of GPIOB4 & GPIOB5
BRANCH=None
TEST=make -j BOARD=sasuke | @@ -41,8 +41,8 @@ GPIO(EC_I2C_EEPROM_SCL, PIN(B, 3), GPIO_INPUT)
GPIO(EC_I2C_EEPROM_SDA, PIN(B, 2), GPIO_INPUT)
GPIO(EC_I2C_BATTERY_SCL, PIN(3, 3), GPIO_INPUT)
GPIO(EC_I2C_BATTERY_SDA, PIN(3, 6), GPIO_INPUT)
-GPIO(EC_I2C_SENSOR_SCL, PIN(B, 5), GPIO_INPUT)
-GPIO(EC_I2C_SENSOR_SDA, PIN(B, 4), GPIO_INPUT)
+GPIO(EC_I2C_SEN... |
vere: Wrap tank dump priority escape codes with terminal check | @@ -2038,11 +2038,20 @@ u3_pier_tank(c3_l tab_l, c3_w pri_w, u3_noun tac)
fil_u = stderr;
}
+ if ( c3n == u3_Host.ops_u.tem ) {
switch ( pri_w ) {
case 3: fprintf(fil_u, "\033[31m>>> "); break;
case 2: fprintf(fil_u, "\033[33m>> "); break;
case 1: fprintf(fil_u, "\033[32m> "); break;
}
+ }
+ else {
+ switch ( pri_w ) {... |
Add documentation for vectorize_fn3 | @@ -160,9 +160,17 @@ def _vectorize_fn2(fn, fn_vec, cosmo, x, z, returns_status=True):
return f
def _vectorize_fn3(fn, fn_vec, cosmo, x, n, returns_status=True):
- """
- Generic wrapper to allow vectorized (1D array) access to CCL functions with
- one vector argument and one integer argument.
+ """Generic wrapper to al... |
options/ansi: Properly handle the base argument in strtoumax and strtoimax | @@ -20,19 +20,29 @@ imaxdiv_t imaxdiv(intmax_t, intmax_t) {
template <class T> T strtoxmax(const char *it, char **out, int base) {
T v = 0;
bool negate = false;
-
- // TODO: In this case we have to detect the base based on the prefix.
- __ensure(base);
+ const unsigned char *s = (const unsigned char *)it;
+ int c;
if(s... |
apps/graphics/traveler/tools: Fix linkage issue. The -lm should come after -o binname | @@ -114,7 +114,7 @@ endif
# mktrig - Regenerate trigonometry look-up tables
mktrig$(HOSTEXEEXT): $(MKTRIG_OBJS)
- $(Q) $(HOSTCC) $(HOSTCFLAGS) -lm $< -o $@
+ $(Q) $(HOSTCC) $(HOSTCFLAGS) $< -o $@ -lm
ifdef HOSTEXEEXT
mktrig: mktrig$(HOSTEXEEXT)
|
Turn off clobbered warning for longjmp for UT'S | @@ -65,6 +65,11 @@ function(ADD_CMOCKA_TEST _TARGET_NAME)
add_executable(${_TARGET_NAME} ${_add_cmocka_test_SOURCES})
+ # Suppress clobber warning for longjmp
+ if(CMAKE_C_COMPILER_ID MATCHES "GNU")
+ target_compile_options(${_TARGET_NAME} PRIVATE -Wno-clobbered)
+ endif()
+
if (DEFINED _add_cmocka_test_COMPILE_OPTIONS... |
VCL: add event registration to listen session in select() | @@ -460,7 +460,7 @@ vce_connect_request_handler_fn (void *arg)
}
/**
- * @brief vce_epoll_wait_connect_request_handler_fn
+ * @brief vce_poll_wait_connect_request_handler_fn
* - used by vppcom_epoll_xxxx() for listener sessions
* - when a vl_api_accept_session_t_handler() generates an event
* this callback is alerted a... |
sdl/surface: implement Set() for RGB444 | @@ -531,6 +531,8 @@ func (surface *Surface) ColorModel() color.Model {
return color.RGBAModel
case PIXELFORMAT_RGB888:
return color.RGBAModel
+ case PIXELFORMAT_RGB444:
+ return RGB444Model
default:
panic("Not implemented yet")
}
@@ -589,6 +591,13 @@ func (surface *Surface) Set(x, y int, c color.Color) {
pix[i+2] = col... |
[finsh] Fix formatting issues | @@ -145,18 +145,17 @@ void finsh_set_prompt_mode(rt_uint32_t prompt_mode)
int finsh_getchar(void)
{
#ifdef RT_USING_DEVICE
+ char ch = 0;
#ifdef RT_USING_POSIX
- int c;
- if(read(STDIN_FILENO,&c,1)>0)
+ if(read(STDIN_FILENO, &ch, 1) > 0)
{
- return c;
+ return ch;
}
else
{
return -1; /* EOF */
}
#else
- char ch = 0;
rt... |
Comment change: exclude error() role handler from coverage | @@ -1292,6 +1292,26 @@ declClose(PROLOG_STATE *state,
return common(state, tok);
}
+/* This function will only be invoked if the internal logic of the
+ * parser has broken down. It is used in two cases:
+ *
+ * 1: When the XML prolog has been finished. At this point the
+ * processor (the parser level above these role... |
Correct error message where dimm id was getting labeled as socket. | @@ -6266,6 +6266,7 @@ SetObjStatusForDimmWithErase(
EraseObjStatus(pCommandStatus, pDimm->DeviceHandle.AsUint32, DimmUid, MAX_DIMM_UID_LENGTH);
}
+ pCommandStatus->ObjectType = ObjectTypeDimm;
SetObjStatus(pCommandStatus, pDimm->DeviceHandle.AsUint32, DimmUid, MAX_DIMM_UID_LENGTH, Status);
}
|
Suicide prevention with corrupt Lockfile | @@ -1356,7 +1356,7 @@ u3_unix_acquire(c3_c* pax_c)
kill(getpid(), SIGTERM);
sleep(1); c3_assert(0);
}
- else {
+ else if (pid_w != getpid()) {
c3_w i_w;
if ( -1 != kill(pid_w, SIGTERM) ) {
|
testbench - Enable split setup. | @@ -25,6 +25,7 @@ pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
pkg.deps:
+ - "@apache-mynewt-core/boot/split_app"
- "@apache-mynewt-core/encoding/json/test"
- "@apache-mynewt-core/kernel/os"
- "@apache-mynewt-core/kernel/os/test"
@@ -32,7 +33,7 @@ pkg.deps:
- "@apache-mynewt-core/mgmt/newtmgr"
- "@apache-myn... |
slist: fix position check when splitting a string | @@ -95,7 +95,7 @@ int flb_slist_split_string(struct mk_list *list, const char *str,
if (end < 0) {
end = len - i;
}
- else if (end == i) {
+ else if ((end + i) == i) {
i++;
continue;
}
@@ -103,7 +103,7 @@ int flb_slist_split_string(struct mk_list *list, const char *str,
p_init = (char *) str + i;
p_end = p_init + end -... |
FIX: Do not decrease refcount after allocating an element. | @@ -3920,7 +3920,6 @@ static ENGINE_ERROR_CODE do_btree_elem_update(btree_meta_info *info,
}
do_btree_elem_replace(info, &posi, new_elem);
- do_btree_elem_release(new_elem);
}
return ENGINE_SUCCESS;
@@ -4728,8 +4727,8 @@ static ENGINE_ERROR_CODE do_btree_elem_arithmetic(btree_meta_info *info,
if (ret != ENGINE_SUCCESS)... |
Fix failing test
Add a bit more slack to tests to account for natural variance. | @@ -53,7 +53,16 @@ def profile(*unused):
profile_lines = profile_output.decode().split('\n')
profile_tuples = [line.split(' ') for line in profile_lines if line]
profile_map = {func: int(count) for count, _, func in profile_tuples}
- test_harness.assert_greater(profile_map['loop10000'], profile_map['loop5000'] * 1.9)
-... |
Use the client app traffic secret for PHA Finished message
The TLSv1.3 spec requires us to use the client application traffic secret
during generation of the Finished message following a post handshake
authentication.
Fixes | @@ -247,12 +247,23 @@ size_t tls13_final_finish_mac(SSL *s, const char *str, size_t slen,
goto err;
}
- if (str == s->method->ssl3_enc->server_finished_label)
+ if (str == s->method->ssl3_enc->server_finished_label) {
key = EVP_PKEY_new_raw_private_key(EVP_PKEY_HMAC, NULL,
s->server_finished_secret, hashlen);
- else
+ ... |
YAML Smith: Use shorter code for initialization | @@ -54,8 +54,8 @@ extern "C" {
/** @see elektraDocGet */
int elektraYamlsmithGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * parentKey)
{
- auto parent = CppKey{ parentKey };
- auto keys = CppKeySet{ returned };
+ CppKey parent{ parentKey };
+ CppKeySet keys{ returned };
if (parent.getName () == "system/e... |
board/jinlon/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -147,12 +147,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum pwm_channel {
- PWM_CH_KBLIGHT,
- PWM_CH_FAN,
- PWM_CH_FAN2,
- PWM_CH_COUNT
-};
+enum pwm_channel { PWM_CH_KBLIGHT, PWM_CH_FAN, PWM_CH_FAN2, PWM_CH_COUNT };
enum fan_channel {
FAN_CH_0 = 0,
|
[DPOS] change all type fields of consensus info to string | @@ -10,6 +10,7 @@ import (
"errors"
"fmt"
"math"
+ "strconv"
"sync"
"github.com/aergoio/aergo-lib/log"
@@ -125,10 +126,10 @@ func (c *Cluster) BPs() []string {
bps := make([]string, c.Size())
for i, bp := range c.member {
p := &struct {
- Index int
+ Index string
BP string
}{
- Index: int(i),
+ Index: strconv.FormatUin... |
OcTimerLib: Fix wrong method used on MMIO address | @@ -89,7 +89,7 @@ RecalculateTSC (
AsmCpuid (CPUID_SIGNATURE, NULL, &CpuVendor, NULL, NULL);
if (CpuVendor == CPUID_VENDOR_AMD) {
- TimerAddr = IoRead32 (
+ TimerAddr = MmioRead32 (
R_AMD_ACPI_MMIO_BASE + R_AMD_ACPI_MMIO_PMIO_BASE + R_AMD_ACPI_PM_TMR_BLOCK
);
}
|
out_s3: store: detect Travis environment, if so, use fstore memory backend | #include "s3.h"
#include "s3_store.h"
+static int s3_store_under_travis_ci()
+{
+
+ if (getenv("CI") != NULL && getenv("TRAVIS") != NULL) {
+ return FLB_TRUE;
+ }
+
+ return FLB_FALSE;
+}
+
/*
* Simple and fast hashing algorithm to create keys in the local buffer
*/
@@ -216,14 +226,23 @@ static int set_files_context(st... |
OcAppleDiskImageLib: Fix potential OOB read. | @@ -53,7 +53,7 @@ OcAppleDiskImageInitializeContext (
// Look for trailer signature.
//
BufferBytes = (UINT8*)Buffer;
- BufferBytesCurrent = BufferBytes + BufferLength - sizeof (UINT32);
+ BufferBytesCurrent = BufferBytes + BufferLength - sizeof (APPLE_DISK_IMAGE_TRAILER);
BufferTrailer = NULL;
while (BufferBytesCurren... |
Fix code style of power.h
softtab to hardtab
missing semicolon | @@ -21,7 +21,8 @@ enum{
SCE_POWER_CB_RESUMING = 0x00020000,
/*indicates the unit has finish resuming from suspend mode*/
SCE_POWER_CB_RESUME_COMPLETE = 0x00040000
-}
+};
+
/* Callbacks */
/** Callback function prototype */
|
set cookie header for client | @@ -289,6 +289,16 @@ int http_set_cookie(http_s *h, http_cookie_args_s cookie) {
}
} else
cookie.max_age = -1;
+
+ if (http_settings(h) && http_settings(h)->is_client) {
+ if (!cookie.value) {
+ fiobj_free(c);
+ return -1;
+ }
+ set_header_add(h->private_data.out_headers, HTTP_HEADER_COOKIE, c);
+ return 0;
+ }
+
t.dat... |
fix file clash!!! | @@ -45,7 +45,7 @@ dosio_term(void)
FILEH file_open(const OEMCHAR *path) {
#if defined(__LIBRETRO__)
- return(filestream_open(path, RETRO_VFS_FILE_ACCESS_READ_WRITE, RETRO_VFS_FILE_ACCESS_HINT_NONE));
+ return(filestream_open(path, RETRO_VFS_FILE_ACCESS_READ_WRITE | RETRO_VFS_FILE_ACCESS_UPDATE_EXISTING, RETRO_VFS_FILE_... |
ci: fix esp_phy_modem_deinit issue | @@ -737,7 +737,7 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
return ESP_OK;
free_phy:
esp_phy_disable();
- esp_phy_pd_mem_deinit();
+ esp_phy_modem_deinit();
#if CONFIG_BT_NIMBLE_ENABLED
ble_npl_eventq_deinit(nimble_port_get_dflt_eventq());
#endif // CONFIG_BT_NIMBLE_ENABLED
|
Fix a bunch of compilation warning regarding end of file | // The purpose of this file is to check that all headers compile
int main(int argc, char **argv) {
+ (void)argc;
+ (void)argv;
clap_version_t m = CLAP_VERSION;
return !clap_version_is_compatible(m);
}
|
fix profile location | @@ -16,7 +16,7 @@ if ! command -v texlua > /dev/null; then
cd install-tl-20*
# Install a minimal system
- ./install-tl --profile=../texlive/texlive.profile
+ ./install-tl --profile=./texlive/texlive.profile
cd ..
fi
|
[CUDA] Remove calls to LLVM initialization functions
This *should* be handled by pocl core before we get to the PTX
backend. | @@ -78,10 +78,6 @@ int pocl_ptx_gen(const char *bc_filename, const char *ptx_filename,
return 1;
}
- llvm::InitializeAllTargets();
- llvm::InitializeAllTargetMCs();
- llvm::InitializeAllAsmPrinters();
-
// Apply transforms to prepare for lowering to PTX
pocl_cuda_fix_printf(module->get());
pocl_gen_local_mem_args(modul... |
Examples: Python script to check BUFR Table B (formatting, isort, flake8 etc) | from __future__ import print_function
-import getopt
import os
import sys
-import traceback
+
import numpy as np
MIN_NUM_COLUMNS = 8
@@ -49,13 +48,11 @@ def verify_table(table, filename):
linenum = 1 + i
numcols = len(a_row)
if numcols < MIN_NUM_COLUMNS:
- print(f"{a_row}")
print(f"Error in line {linenum}: Column count... |
NetKVM: add DmaRemappingCompatible to INF
Indicate that the driver is fully compatible with DMA remapping. | @@ -209,6 +209,7 @@ ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\netkvm.sys
LoadOrderGroup = NDIS
AddReg = TextModeFlags.Reg
+AddReg = DmaRemappingCompatible.Reg
[kvmnet6.EventLog]
AddReg = kvmnet6.AddEventLog.Reg
@@ -222,6 +223,9 @@ HKR,,TextModeFlags,0x00010001, 0x0001
HKR,Parameters,DisableMSI,,"0"
... |
tcmu: bump version to 1.3.0-rc1
Bump version to 1.3.0-rc1. | cmake_minimum_required (VERSION 2.8 FATAL_ERROR)
project (tcmu-runner C)
-set(VERSION 1.2.0)
+set(VERSION 1.3.0-rc1)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wdeclaration-after-statement -std=c99")
include(GNUInstallDirs)
|
Pointed Zone installation instructions to GH repo. | @@ -221,35 +221,7 @@ family pcks for your target device need to be installed on your computer.
The CMSIS-Zone utility is part of the <a href="https://github.com/ARM-software/cmsis-pack-eclipse/releases/latest" target="_blank"><b>CMSIS-Pack Eclipse Plug-ins</b></a>.
-The following steps explain the setup of an Eclipse e... |
Examples shouldn't leak memory... | @@ -40,6 +40,7 @@ static void handle_websocket_messages(ws_s *ws, char *data, size_t size,
if (data[0] == 'b') {
FIOBJ msg = fiobj_str_new(data, size);
pubsub_publish(.channel = CHANNEL_BINARY, .message = msg);
+ fiobj_free(msg);
// fwrite(".", 1, 1, stderr);
data[0] = 'r';
websocket_write(ws, data, size, 0);
@@ -47,6 ... |
netutils/thttpd: fix compile break
change NSOCKET_DESCRIPTORS to NFILE_DESCRIPTORS | @@ -696,7 +696,7 @@ int thttpd_main(int argc, char **argv)
* socket descriptors
*/
- fw = fdwatch_initialize(CONFIG_NSOCKET_DESCRIPTORS);
+ fw = fdwatch_initialize(CONFIG_NFILE_DESCRIPTORS);
if (!fw)
{
nerr("ERROR: fdwatch initialization failure\n");
|
minor change due to change in rescomp | BITMAP sgdk_logo "image/sgdk_logo.png" -1
-TILESET font_default "image/font_default.png" -1
+TILESET font_default "image/font_default.png" BEST NONE
PALETTE font_pal_default "image/font_default.png"
BIN stop_xgm "sound/stop_xgm.bin" 2 2 0 NONE FALSE
|
hw/phys-map: Add missing newline in log output
The call to prlog() here is missing a \n. | @@ -184,7 +184,7 @@ void phys_map_get(uint64_t gcid, enum phys_map_type type,
error:
/* Something has gone really wrong */
- prlog(PR_EMERG, "ERROR: Failed to lookup BAR type:%i index:%i",
+ prlog(PR_EMERG, "ERROR: Failed to lookup BAR type:%i index:%i\n",
type, index);
assert(0);
}
|
Update comment.c
might fix | @@ -277,10 +277,12 @@ static void comment_erase(t_comment *x){
}
static void comment_redraw(t_comment *x){ // <= improve, not necessary for all cases
+ if(glist_isvisible(x->x_glist) && gobj_shouldvis((t_gobj *)x, x->x_glist)){
comment_erase(x);
comment_draw(x);
comment_update(x); // ???????
}
+}
static void comment_gr... |
Update INSTALL.md - Fix broken links
Fix broken links for Amazon installation. | - [Gentoo](#gentoo---portage)
- [openSUSE](#opensuse---binary)
- [RHEL](#rhel---binary)
- - [Amazon Linux 1](#Amazon-Linux-1---Binary)
- - [Amazon Linux 2](#Amazon-Linux-2---Binary)
+ - [Amazon Linux 1](#amazon-linux-1---binary)
+ - [Amazon Linux 2](#amazon-linux-2---binary)
- [Alpine](#alpine---binary)
* [Source](#sou... |
Address Use ldconfig alternative on macos.
update_dyld_shared_cache seems to work on macos. | @@ -41,10 +41,14 @@ CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fpic -O2 -fvisibility=hi
-DJANET_BUILD=$(JANET_BUILD)
LDFLAGS=-rdynamic
+# For installation
+LDCONFIG:=ldconfig
+
# Check OS
UNAME:=$(shell uname -s)
ifeq ($(UNAME), Darwin)
CLIBS:=$(CLIBS) -ldl
+ LDCONFIG:=update_dyld_shared_cache
else ifeq ($... |
dojo: add command to lookup doccords
syntax: `# foo` to look up foo. this is not the final form - it does not
support `# foo:bar` yet. the dprint library needs some changes first. | :: :: ::
/? 309 :: arvo kelvin
/- *sole, lens :: console structures
-/+ sole, pprint, ::
+/+ sole, pprint, dprint, ::
auto=language-server-complete, ::
easy-print=language-server-easy-print ::
:: :: ::
r=@t
==
[%poke p=goal] :: poke app
+ [%help p=term] :: doccords
[%show p=?(%0 %1 %2 %3 %4 %5)] :: val/type/hoon/xray
[... |
Test: Fix minor spelling mistake in CMake code | # Elektra Test Suite
#
# This file is responsible for generating all tests
-# regarding elektra's core.
+# regarding Elektra's core.
#
# Backends and Bindings specific tests might be in
# their folders.
|
Date: Disable plugin if GCC version is too old | include (LibAddMacros)
+if (DEPENDENCY_PHASE)
+ # The plugin does not work correctly if we compile it with GCC 4.7
+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8)
+ remove_plugin (date "gcc version too old (gcc -dumpversion < 4.8)")
+ endif (CMAKE_CXX_COMPILER_ID MATCHES "GNU"... |
io-libs/adios: newer adios version looks to require libcurl now | @@ -30,7 +30,7 @@ Source0: http://users.nccs.gov/~pnorbert/adios-%{version}.tar.gz
Source1: OHPC_macros
AutoReq: no
-BuildRequires: zlib-devel glib2-devel
+BuildRequires: zlib-devel glib2-devel libcurl
Requires: zlib
# libm.a from CMakeLists
|
Fix sign issue; | @@ -890,7 +890,7 @@ static void lovrGpuBindShader(Shader* shader) {
}
}
-static void lovrGpuSetViewports(float* viewport, int count) {
+static void lovrGpuSetViewports(float* viewport, uint32_t count) {
if (state.viewportCount != count || memcmp(state.viewports, viewport, count * 4 * sizeof(float))) {
memcpy(state.view... |
doc/man7/provider.pod: updates providers to use EVP_MD_free() and EVP_CIPHER_free()
instead of EVP_MD_meth_free() and EVP_CIPHER_meth_free() respectively which are used mostly by the engine (legacy) code. | @@ -324,34 +324,34 @@ Fetch any available implementation of SHA2-256 in the default context:
EVP_MD *md = EVP_MD_fetch(NULL, "SHA2-256", NULL);
...
- EVP_MD_meth_free(md);
+ EVP_MD_free(md);
Fetch any available implementation of AES-128-CBC in the default context:
EVP_CIPHER *cipher = EVP_CIPHER_fetch(NULL, "AES-128-CB... |
edit diff BUGFIX accept nested delete operations | @@ -2083,12 +2083,11 @@ sr_diff_merge_create(struct lyd_node *diff_match, enum edit_op cur_op, int cur_o
} else {
/* but the operation of its children should remain DELETE */
LY_TREE_FOR(sr_lyd_child(diff_match, 1), child) {
- /* there should not be any operation on the children */
- assert(!sr_edit_find_oper(child, 0,... |
update readme for 1.7.2/2.0.2 | @@ -12,8 +12,8 @@ is a general purpose allocator with excellent [performance](#performance) charac
Initially developed by Daan Leijen for the run-time systems of the
[Koka](https://koka-lang.github.io) and [Lean](https://github.com/leanprover/lean) languages.
-Latest release tag: `v2.0.1` (beta, 2021-04-06).
-Latest st... |
Fix Svace issue in iperf_util.c: use snprintf instead of sprintf
1. use snprintf instead of sprintf | @@ -85,7 +85,7 @@ void make_cookie(char *cookie)
/* Generate a string based on hostname, time, randomness, and filler. */
(void)gethostname(hostname, sizeof(hostname));
#else
- sprintf(hostname, "tinyara");
+ snprintf(hostname, sizeof(hostname), "tinyara");
#endif
(void)gettimeofday(&tv, 0);
(void)snprintf(temp, sizeof... |
Encrypted Extensions: Change extensions length check | @@ -1432,7 +1432,7 @@ static int ssl_tls13_process_encrypted_extensions( mbedtls_ssl_context *ssl )
/* Process the message contents */
MBEDTLS_SSL_PROC_CHK(
- ssl_tls13_parse_encrypted_extensions( ssl, buf, ( buf + buf_len ) ) );
+ ssl_tls13_parse_encrypted_extensions( ssl, buf, buf + buf_len ) );
mbedtls_ssl_tls1_3_ad... |
Forced no inlining on memset / memcpy methods to fix wrong LTO removing | @@ -220,7 +220,7 @@ void MEM_dump();
*
* Sets the first num bytes of the block of memory pointed by to with the specified value.
*/
-void memset(void *to, u8 value, u16 len);
+void __attribute__ ((noinline, used)) memset(void *to, u8 value, u16 len);
#endif // ENABLE_NEWLIB
/**
@@ -267,7 +267,7 @@ void memsetU32(u32 *t... |
Update thread registers struct | @@ -879,7 +879,7 @@ SceUID ksceKernelGetProcessMainThread(SceUID pid);
int ksceKernelGetThreadIdList(SceUID pid, SceUID *ids, int n, int *copy_count);
/** Structure representing all ARM registers */
-typedef struct ArmCpuRegisters
+typedef struct SceArmCpuRegisters
{
uint32_t r0;
uint32_t r1;
@@ -898,18 +898,29 @@ type... |
VERSION bump to version 1.4.135 | @@ -46,7 +46,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 1)
set(SYSREPO_MINOR_VERSION 4)
-set(SYSREPO_MICRO_VERSION 134)
+set(SYSREPO_MICRO_VERSION 135)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_... |
plug alien queue space leak | ?. ?=([~ %known *] sndr-state)
%+ enqueue-alien-todo sndr.packet
|= todos=pending-requests
+ :: only enqueue one packet from an alien, to plug space leak
+ ::
+ ?. =(~ rcv-packets.todos)
+ todos
todos(rcv-packets [[lane packet] rcv-packets.todos])
:: decrypt packet contents using symmetric-key.channel
::
|
Added guards around allocator_overrides
Most of the features used in allocator_overrides are specific to glibc,
so build can fail on some other compilers and platforms. In particular
it was failing with XCode compiler on MacOS. | #include <dlfcn.h>
#include <string.h>
+
+/* Overrides will work only if RTLD_NEXT is defined */
+#ifdef RTLD_NEXT
+
+/* if we use glibc, include malloc.h for malloc_usable_size */
+#ifdef __GLIBC__
#include <malloc.h>
+#define HAVE_MALLOC_USABLE_SIZE
+#endif
typedef int (*posix_memalign_fn)(void **memptr, size_t align... |
BugID:19760206:allocate http request buffer space in app | @@ -348,10 +348,14 @@ static int32_t httpc_ota(const char *uri)
}
#define RSP_BUF_SIZE 2048
+#define REQ_BUF_SIZE 1024
uint8_t rsp_buf[RSP_BUF_SIZE];
+uint8_t req_buf[REQ_BUF_SIZE];
static void httpc_delayed_action(void *arg)
{
+#if CONFIG_HTTP_SECURE
char device_id[64];
+#endif
int fd;
int32_t ret = HTTPC_FAIL;
@@ -38... |
Update regular expressions in gen-magic-strings.py
In their past form, they could not recognize preprocessor directives,
if they didn't start on column 0. Updated them to fix this problem.
JerryScript-DCO-1.0-Signed-off-by: Bela Toth | @@ -119,10 +119,10 @@ def extract_magic_string_refs(debug=False):
guard_stack = []
for line in fileinput.input(fname):
- if_match = re.match('^# *if(.*)', line)
- elif_match = re.match('^# *elif(.*)', line)
- else_match = re.match('^# *else', line)
- endif_match = re.match('^# *endif', line)
+ if_match = re.match('^ *#... |
vere: make uv_cancel return code check explicit | @@ -693,7 +693,7 @@ u3_disk_exit(u3_disk* log_u)
// shortcircuit cleanup if we cannot
//
if ( (c3y == log_u->ted_o)
- && uv_cancel(&log_u->req_u) )
+ && (0 > uv_cancel(&log_u->req_u)) )
{
// u3l_log("disk: unable to cleanup\r\n");
return;
|
Do not emit process start messages when we are not scoping a process. The thread is still started at this point. | @@ -1703,9 +1703,6 @@ init(void)
g_cfg.staticfg = g_staticfg;
g_cfg.blockconn = DEFAULT_PORTBLOCK;
- reportProcessStart(g_ctl, TRUE, CFG_WHICH_MAX);
- doProcStartMetric();
-
// replaces atexit(handleExit); Allows events to be reported before
// the TLS destructors are run. This mechanism is used regardless
// of whethe... |
fix coverity warning in mactime plugin
Add missing VALIDATE_SW_IF_INDEX macro / check.
Net of this fix, a spurious warning will probably recur. Coverity will
complain that sw_if_index is tainted. Please dismiss the warning. | @@ -177,9 +177,11 @@ static void vl_api_mactime_enable_disable_t_handler
mactime_main_t *mm = &mactime_main;
int rv;
+ VALIDATE_SW_IF_INDEX (mp);
+
rv = mactime_enable_disable (mm, ntohl (mp->sw_if_index),
(int) (mp->enable_disable));
-
+ BAD_SW_IF_INDEX_LABEL;
REPLY_MACRO (VL_API_MACTIME_ENABLE_DISABLE_REPLY);
}
|
Add a few files to .gitignore
.traceconfig (WaveView trace settings)
Randomly generated test files in cosimulation directory
[ci skip] | statetrace.txt
a.out
output.png
+*.traceconfig
CLASSDIR
bin/
@@ -21,4 +22,6 @@ obj/
hardware/fpga/de2-115/db/
hardware/fpga/de2-115/incremental_db/
hardware/fpga/de2-115/output_files/
+tests/cosimulation/random*
+
|
Also use assertion when parsing decimal escape sequences. | @@ -128,7 +128,7 @@ function Lexer:read_short_string(delimiter)
then table.insert(parts, "\n")
elseif self:try(string_dec_number) then
- local n = tonumber(self.matched)
+ local n = assert(tonumber(self.matched, 10))
if n < 256 then
table.insert(parts, string.char(n))
else
|
A few test harness fixes
Fix render test to put intermediate files in work directory
Test failure count was reporting incorrect numbers. For the total test count,
it wasn't counting when a test was run on multiple targets. | @@ -215,7 +215,7 @@ def run_program(
or 'emulator'.
block_device: Relative path to a file that contains a filesystem image.
If passed, contents will appear as a virtual SDMMC device.
- dump_file: Relative path to a file to write memory contents into after
+ dump_file: Path to a file to write memory contents into after
... |
build: Remove IMAGES_TO_BUILD var | @@ -97,12 +97,11 @@ stage("Init docker images") {
dockerInit()
}
-IMAGES_TO_BUILD = false
stage("Pull docker images") {
parallel generateDockerPullStages()
}
-maybeStage("Build docker images", IMAGES_TO_BUILD) {
+maybeStage("Build docker images", DOCKER_IMAGES.any {img -> !img.value.exists}) {
lock('docker-images') {
p... |
Fix EPSG4326 internal coordinate conversion | @@ -24,7 +24,7 @@ namespace carto {
MapPos EPSG4326::fromInternal(const MapPos& mapPosInternal) const {
double x = mapPosInternal.getX() / UNITS_TO_INTERNAL * Const::RAD_TO_DEG;
- double y = 90.0 - Const::DEG_TO_RAD * (2.0 * std::atan(std::exp(-mapPosInternal.getY() / UNITS_TO_INTERNAL)));
+ double y = 90.0 - Const::RA... |
Missed updating version in a few spots
[ci skip] | @@ -30,8 +30,8 @@ ADD tmp/llvm-ar /usr/local/llvm-nyuzi/bin/
ADD tmp/llvm-ranlib /usr/local/llvm-nyuzi/bin/
ADD tmp/llvm-objdump /usr/local/llvm-nyuzi/bin/
ADD tmp/libclang_rt.builtins-nyuzi.a /usr/local/llvm-nyuzi/lib/clang/7.0.0/
-RUN ln -s /usr/local/llvm-nyuzi/bin/clang-5.0 /usr/local/llvm-nyuzi/bin/clang
-RUN ln -... |
OcAfterBootCompatLib: Fix MSVC compiler moaning | /**
Kernel physical base address.
**/
-#define KERNEL_BASE_PADDR ((UINT32) KERNEL_HIB_VADDR)
+#define KERNEL_BASE_PADDR ((UINT32) (KERNEL_HIB_VADDR & MAX_UINT32))
/**
Kernel physical base address.
**/
-#define KERNEL_TEXT_PADDR ((UINT32) KERNEL_TEXT_VADDR)
+#define KERNEL_TEXT_PADDR ((UINT32) (KERNEL_TEXT_VADDR & MAX_U... |
[CUDA] Get maximum memory size from driver | @@ -156,10 +156,6 @@ pocl_cuda_init(cl_device_id device, const char* parameters)
device->double_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_ROUND_TO_ZERO
| CL_FP_ROUND_TO_INF | CL_FP_FMA | CL_FP_INF_NAN | CL_FP_DENORM;
- // TODO: Actual maximum size
- device->max_mem_alloc_size = 1024*1024*1024;
- device->global_mem_siz... |
todor: modify gpio for mb/db typec FRS_EN
Add FRS_EN default low for mb/db typec port.
BRANCH=master
TEST=Check system can power on with AC only. | @@ -89,6 +89,8 @@ GPIO(USB_C0_RT_RST_ODL, PIN(6, 1), GPIO_ODR_LOW) /* USB_C0 Reset */
GPIO(USB_C1_RT_RST_ODL, PIN(8, 3), GPIO_ODR_LOW) /* USB_C1 Reset */
GPIO(USB_C0_OC_ODL, PIN(B, 1), GPIO_ODR_HIGH)
GPIO(USB_C1_OC_ODL, PIN(5, 0), GPIO_ODR_HIGH)
+GPIO(USB_C0_FRS_EN, PIN(6, 0), GPIO_OUT_LOW)
+GPIO(USB_C1_FRS_EN, PIN(9, ... |
ci: add system group as codeowners to soc/ | /components/protocomm/ @esp-idf-codeowners/app-utilities
/components/pthread/ @esp-idf-codeowners/system
/components/sdmmc/ @esp-idf-codeowners/storage
-/components/soc/ @esp-idf-codeowners/peripherals
+/components/soc/ @esp-idf-codeowners/peripherals @esp-idf-codeowners/system
/components/spi_flash/ @esp-idf-codeowner... |
out_es: fix data type for json pack | @@ -352,7 +352,7 @@ static int elasticsearch_error_check(struct flb_http_client *c)
int check = FLB_TRUE;
char *out_buf;
size_t off = 0;
- int out_size;
+ size_t out_size;
msgpack_unpacked result;
msgpack_object root;
msgpack_object key;
|
Fixed wrong module resolution name in .line | @@ -167,6 +167,9 @@ class ResourceImporter(object):
# exists on the filesystem.
def get_source(self, fullname):
original_name = self._source_name.get(fullname) or fullname
+ if self.is_package(original_name):
+ original_name += '__init__'
+
relpath = self.get_filename(original_name)
if relpath:
abspath = resfs_resolve(... |
updated xdagpool IP addresses | 195.24.64.107:3356
77.55.222.85:3355
24.234.35.55:31334
-95.105.233.208:13655
+95.105.233.208:16775
120.79.95.7:12563
139.99.101.187:13655
62.210.130.205:13654
58.218.204.118:13655
39.104.88.224:13655
188.165.178.246:13654
-
+136.243.55.153:16775
|
Exclude unscoped tests which fails on Alpine distro | ],
"exclude_x86_64_tests": [],
"exclude_aarch64_tests": [],
- "exclude_musl_tests": [],
+ "Notes for exclude musl tests" : [
+ "the musl exclusions are tests that fail on musl unscoped",
+ "revisit these to see if we can fix them instead of excluding them"
+ ],
+ "exclude_musl_tests": [
+ "fstatfs02_64",
+ "fstatfs02",... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.