message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Update vdp.c
added comments about old VRAM layout | @@ -103,6 +103,17 @@ void VDP_init()
pw = (u16 *) GFX_CTRL_PORT;
for (i = 0x00; i < 0x13; i++) *pw = 0x8000 | (i << 8) | regValues[i];
+ // these lines can be used in your code to change VRAM layout as olders SGDK (<= 1.30)
+ /*
+ VDP_setPlanSize(64, 64);
+
+ VDP_setWindowAddress(0xB000);
+ VDP_setSpriteListAddress(0xB... |
Debugging: show setting of P1 as two octets | @@ -567,6 +567,8 @@ static int pack_string(grib_accessor* a, const char* val, size_t* len)
}
off = p1_accessor->offset * 8;
/* Note: here we assume the key P2 is one octet and immediately follows P1. Hence 16 bits */
+ if (h->context->debug)
+ fprintf(stderr, "ECCODES DEBUG grib_set_long %s=%ld (as two octets)\n", p1_a... |
Update mqtt comments | @@ -1020,9 +1020,7 @@ mqtt_client_connect(mqtt_client_t* client, const char* host, esp_port_t port,
client->info = info; /* Save client info parameters */
client->evt_fn = evt_fn != NULL ? evt_fn : mqtt_evt_fn_default;
- /*
- * Start a new connection in non-blocking mode
- */
+ /* Start a new connection in non-blocking... |
More tests for protected packet retransmission | @@ -1387,6 +1387,59 @@ void test_ngtcp2_conn_retransmit_protected(void) {
ngtcp2_frame fr;
ngtcp2_rtb_entry *ent;
+ /* Retransmit a packet completely */
+ setup_default_client(&conn);
+
+ ngtcp2_conn_open_stream(conn, 1, NULL);
+ spktlen = ngtcp2_conn_write_stream(conn, buf, sizeof(buf), NULL, 1, 0,
+ null_data, 126, +... |
Make history not duplicate itself in getline. | @@ -299,11 +299,21 @@ static void addhistory(void) {
}
static void replacehistory(void) {
+ /* History count is always > 0 here */
+ if (gbl_len == 0 || (gbl_history_count > 1 && !strcmp(gbl_buf, gbl_history[1]))) {
+ /* Delete history */
+ free(gbl_history[0]);
+ for (int i = 1; i < gbl_history_count; i++) {
+ gbl_his... |
[libc][time] add LOG_W to give a warning when RTC device is not used | #include <sys/time.h>
#include <rtthread.h>
+#include <rtdbg.h>
#ifdef RT_USING_DEVICE
#include <rtdevice.h>
#endif
@@ -219,6 +220,7 @@ RT_WEAK time_t time(time_t *t)
if(time_now == (time_t)-1)
{
+ LOG_W("Cannot find a RTC device to provide time!");
errno = ENOSYS;
}
@@ -246,12 +248,13 @@ int stime(const time_t *t)
}
e... |
pg_dump new test: Change order of arguments
Some getopt_long implementations don't like to have a non-option
argument before option arguments, so put the database name as the
last switch.
Per buildfarm member hoverfly. | @@ -27,10 +27,10 @@ $node->safe_psql( 'postgres', "CREATE FOREIGN TABLE t1 (a int) SERVER s1");
my ($cmd, $stdout, $stderr, $result);
command_fails_like(
- [ "pg_dump", '-p', $port, 'postgres', '--include-foreign-data=s0' ],
+ [ "pg_dump", '-p', $port, '--include-foreign-data=s0', 'postgres' ],
qr/foreign-data wrapper ... |
RTX5: removed an unnecessary PC-lint comment | @@ -184,7 +184,6 @@ static void osRtxMemoryPoolPostProcess (os_memory_pool_t *mp) {
// Check if Thread is waiting to allocate memory
if (mp->thread_list != NULL) {
// Allocate memory
- //lint -e{9079} "conversion from pointer to void to pointer to other type" [MISRA Note 5]
block = osRtxMemoryPoolAlloc(&mp->mp_info);
i... |
Add comments to netconn module | @@ -156,6 +156,8 @@ netconn_evt(esp_evt_t* evt) {
"NETCONN: Closing connection as there is no listening API in netconn!\r\n");
close = 1; /* Close the connection at this point */
}
+ /* When closing netconn,
+ we may only close netconn if connection was not successfully written to accept mbox */
if (close) {
if (nc != ... |
Update audio to use common macros. | #include "omv_boardconfig.h"
#include "py/obj.h"
#include "py/objarray.h"
+#include "common.h"
#if MICROPY_PY_AUDIO
#define RAISE_OS_EXCEPTION(msg) nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, msg))
-#define SAI_MIN(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; })
static CRC_Handl... |
esp-tls: fix build error without -Wno-format compile flag when building for Linux target | @@ -226,7 +226,7 @@ ssize_t esp_mbedtls_read(esp_tls_t *tls, char *data, size_t datalen)
}
if (ret != ESP_TLS_ERR_SSL_WANT_READ && ret != ESP_TLS_ERR_SSL_WANT_WRITE) {
ESP_INT_EVENT_TRACKER_CAPTURE(tls->error_handle, ESP_TLS_ERR_TYPE_MBEDTLS, -ret);
- ESP_LOGE(TAG, "read error :-0x%04X:", -ret);
+ ESP_LOGE(TAG, "read e... |
kernel,x86_64: vnode_inherit: fix call to create_mapping_cap | @@ -453,9 +453,7 @@ static struct sysret handle_inherit(struct capability *dest,
// create mapping cap for cloned entry if src mapping cap not null
if (src_mapping->cap.type != ObjType_Null) {
struct Frame_Mapping *sm = &src_mapping->cap.u.frame_mapping;
- lpaddr_t dst_lp = mem_to_local_phys((lvaddr_t)&dst_entry[i]);
-... |
YAML CPP: Specify YAML data via reference | @@ -32,7 +32,7 @@ NameIterator relativeKeyIterator (Key const & key, Key const & parent)
return keyIterator;
}
-void addKey (YAML::Node data, NameIterator & keyIterator, Key const & key)
+void addKey (YAML::Node & data, NameIterator & keyIterator, Key const & key)
{
if (keyIterator == --key.end ())
{
@@ -46,7 +46,7 @@ ... |
api: Add Block Device Characteristics VPD page(0xb1) support | @@ -332,7 +332,7 @@ int tcmu_emulate_evpd_inquiry(
switch (cdb[2]) {
case 0x0: /* Supported VPD pages */
{
- char data[7];
+ char data[8];
memset(data, 0, sizeof(data));
@@ -340,8 +340,9 @@ int tcmu_emulate_evpd_inquiry(
data[5] = 0x83;
data[6] = 0xb0;
+ data[7] = 0xb1;
- data[3] = 3;
+ data[3] = 4;
tcmu_memcpy_into_io... |
pbio/trajectory: Fix initial speed if too high.
Also add checks against negative durations. | @@ -453,7 +453,8 @@ static pbio_error_t pbio_trajectory_new_forward_angle_command(pbio_trajectory_t
// acceleration, we are going too fast and we would overshoot
// the target before having slowed down. So we need to reduce the
// initial speed to be able to reach it.
- trj->w0 = bind_w0(trj->w3, trj->a0, trj->th3);
+ ... |
I'm not so sure about that. | @@ -3812,9 +3812,7 @@ static void validate_and_prep_call(lily_emit_state *emit,
/* This forces generic types to be solved as themselves.
For the first two cases, this is about correctness. When inside
of a generic function, the generics are quantified but as some
- unknown type. So allowing them to be solved allows wro... |
Update PhaGetProcessKnownCommandLine with PhDetermineDosPathNameType | * application support functions
*
* Copyright (C) 2010-2016 wj32
- * Copyright (C) 2017-2020 dmex
+ * Copyright (C) 2017-2022 dmex
*
* This file is part of Process Hacker.
*
@@ -544,7 +544,7 @@ BOOLEAN PhaGetProcessKnownCommandLine(
// If the DLL name isn't an absolute path, assume it's in system32.
// TODO: Use a prop... |
libcupsfilters: In pdftops() do not close stdin to not confuse pipe creation | @@ -349,8 +349,11 @@ pdftops(int inputfd, /* I - File descriptor input stream */
while ((bytes = fread(buffer, 1, sizeof(buffer), inputfp)) > 0)
bytes = write(fd, buffer, bytes);
+ if (inputfd)
+ {
fclose(inputfp);
close(inputfd);
+ }
close(fd);
filename = tempfile;
@@ -1697,6 +1700,9 @@ pdftops(int inputfd, /* I - Fil... |
dhparam: white space cleaning | @@ -258,7 +258,6 @@ int dhparam_main(int argc, char **argv)
}
}
} else {
-
in = bio_open_default(infile, 'r', informat);
if (in == NULL)
goto end;
@@ -307,7 +306,6 @@ int dhparam_main(int argc, char **argv)
goto end;
}
}
-
/* dh != NULL */
}
|
cpp: avoid potential API break
warning: Symbol `_ZTVN3kdb5tools18MockPluginDatabaseE' has different size in shared object, consider re-linking
revert | @@ -159,7 +159,9 @@ protected:
public:
ModulesPluginDatabase ();
+ /* TODO: reintroduce with next API break
virtual ~ModulesPluginDatabase ();
+ */
std::vector<std::string> listAllPlugins () const;
PluginDatabase::Status status (PluginSpec const & whichplugin) const;
@@ -196,7 +198,9 @@ public:
* @param conf keyset con... |
Prevent creation of unwanted ZHASwitch sensors
Disables OTA and Time cluster handler from PR: | @@ -6153,6 +6153,10 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
}
break;
+/*
+ TODO from PR: "Corrections on sensor fingerprints" #5246
+ Following is disabled for now since unwanted ZHASwitch resources are created.
+
case OTAU_CLUSTER_ID:
case TIME_CLUSTER_ID:
{
@@ -6178,6 +6182... |
Fix Windows sc_pipe function names
The implementation name was incorrect (it was harmless, because they are
not used on Windows). | @@ -168,7 +168,7 @@ sc_process_close(HANDLE handle) {
}
ssize_t
-sc_read_pipe(HANDLE pipe, char *data, size_t len) {
+sc_pipe_read(HANDLE pipe, char *data, size_t len) {
DWORD r;
if (!ReadFile(pipe, data, len, &r, NULL)) {
return -1;
@@ -177,7 +177,7 @@ sc_read_pipe(HANDLE pipe, char *data, size_t len) {
}
void
-sc_clo... |
board/driblee/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -77,8 +77,8 @@ static const struct ec_response_keybd_config driblee_keybd = {
.capabilities = KEYBD_CAP_SCRNLOCK_KEY,
};
-__override const struct ec_response_keybd_config
-*board_vivaldi_keybd_config(void)
+__override const struct ec_response_keybd_config *
+board_vivaldi_keybd_config(void)
{
return &driblee_keybd;
... |
apps/passwd.c: Fix code layout | @@ -152,9 +152,11 @@ int passwd_main(int argc, char **argv)
mode = passwd_aixmd5;
break;
case OPT_CRYPT:
+#ifndef OPENSSL_NO_DES
if (mode != passwd_unset)
goto opthelp;
mode = passwd_crypt;
+#endif
break;
case OPT_SALT:
passed_salt = 1;
|
libbarrelfish: pmap: x86_64: adjust slabs required formulas | @@ -519,7 +519,8 @@ static size_t max_slabs_for_mapping(size_t bytes)
size_t max_ptable = DIVIDE_ROUND_UP(max_pages, X86_64_PTABLE_SIZE);
size_t max_pdir = DIVIDE_ROUND_UP(max_ptable, X86_64_PTABLE_SIZE);
size_t max_pdpt = DIVIDE_ROUND_UP(max_pdir, X86_64_PTABLE_SIZE);
- return 2 * max_ptable + max_pdir + max_pdpt;
+ /... |
Disables ubuntu github workflows | @@ -8,7 +8,8 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-18.04, ubuntu-16.04, macOS-10.14]
+ os: [macOS-10.14]
+ #os: [ubuntu-18.04, ubuntu-16.04, macOS-10.14]
compiler: [gcc, clang]
include:
- os: ubuntu-18.04
|
Move destruction of serviceRegistry to before destruction of bundles, preventing a use after free situation when dangling service registrations exist | @@ -298,6 +298,7 @@ celix_status_t framework_destroy(framework_pt framework) {
//has not been joined yet.
celixThread_join(framework->shutdown.thread, NULL);
+ serviceRegistry_destroy(framework->registry);
celixThreadMutex_lock(&framework->installedBundles.mutex);
for (int i = 0; i < celix_arrayList_size(framework->ins... |
Fixed TSCH logging per slot to compile on 64 bit systems | #include "contiki.h"
#include <stdio.h>
+#include <inttypes.h>
#include "net/mac/tsch/tsch.h"
#include "lib/ringbufindex.h"
#include "sys/log.h"
@@ -79,10 +80,10 @@ tsch_log_process_pending(void)
while((log_index = ringbufindex_peek_get(&log_ringbuf)) != -1) {
struct tsch_log_t *log = &log_array[log_index];
if(log->lin... |
Fixed the docstring for the halo bias. | @@ -52,18 +52,18 @@ def sigmaM(cosmo, halo_mass, a):
lib.sigmaM_vec, cosmo, halo_mass, a)
def halo_bias(cosmo, halo_mass, a, odelta=200):
- """Halo bias.
+ """Tinker et al. (201) halo bias.
- Note: only Tinker (2010) halo bias is implemented right now.
+ TODO: implement other halo bias models.
Args:
cosmo (:obj:`ccl.co... |
fix wrong objc function name | %std_exceptions(carto::Options::setTiltRange)
%std_exceptions(carto::Options::setZoomRange)
%std_exceptions(carto::Options::setPanBounds)
-!objc_rename(setWatermarkAnchorX) carto::Options::setWatermarkAnchor;
-!objc_rename(setWatermarkPaddingX) carto::Options::setWatermarkPadding;
+!objc_rename(setWatermarkAnchor) cart... |
drone: add publish step | @@ -8,3 +8,15 @@ steps:
image: hanfer/docker-gcc-arm-none-eabi:latest
commands:
- bash QUICKSILVER/script/build-tester.sh
+ - name: publish
+ image: plugins/github-release
+ settings:
+ api_key:
+ from_secret: github_token
+ files: output/quicksilver*.hex
+ prerelease: true
+ title: latest
+ overwrite: true
+ when:
+ e... |
Document new_tcp and new_udp flag strings | @@ -1149,9 +1149,11 @@ Returns the stream's write queue size.
TCP handles are used to represent both TCP streams and servers.
-### `uv.new_tcp()`
+### `uv.new_tcp([flags])`
Creates and initializes a new `uv_tcp_t`. Returns the Lua userdata wrapping it.
+Flags may be a family string: `"unix"`, `"inet"`, `"inet6"`, `"ipx... |
update readme based on new command
Adjust the Normal use text, to account for OpenGL and the new command. | @@ -34,11 +34,19 @@ If you are running an Ubuntu-like distribution, Fedora, or Arch, the build scrip
# Normal usage
-To enable the MangoHud Vulkan overlay layer, run :
+To enable the MangoHud overlay layer for 64bit Vulkan and OpenGL, run :
-`MANGOHUD=1 /path/to/my_vulkan_app`
+`mangohud /path/to/app`
-Or alternatively... |
Fix threads tab text invalidation | @@ -369,6 +369,24 @@ VOID PhTickThreadNodes(
_In_ PPH_THREAD_LIST_CONTEXT Context
)
{
+ // Text invalidation, node updates
+
+ for (ULONG i = 0; i < Context->NodeList->Count; i++)
+ {
+ PPH_THREAD_NODE node = Context->NodeList->Items[i];
+
+ // The TID never changes, so we don't invalidate that.
+ memset(&node->TextCac... |
Directory Value: Log converted keys | @@ -132,6 +132,11 @@ int elektraDirectoryValueSet (Plugin * handle, KeySet * returned, Key * parentKe
ELEKTRA_SET_PLUGIN_MISBEHAVIOR_ERRORF (*parent, "Uncaught exception: %s", error.what ());
}
+#ifdef HAVE_LOGGER
+ ELEKTRA_LOG_DEBUG ("Converted keys:");
+ logKeySet (keys);
+#endif
+
parent.release ();
keys.release ();... |
add SX128X to crazybee | #define CC2500_GDO0_PIN PIN_C14
#endif
+#ifdef RX_EXPRESS_LRS
+#define USE_SX128X
+#define SX12XX_SPI_PORT SPI_PORT3
+#define SX12XX_NSS_PIN PIN_A15
+#define SX12XX_DIO0_PIN PIN_C14
+#define SX12XX_BUSY_PIN PIN_A13
+#define SX12XX_RESET_PIN PIN_A8
+
+#define SOFTSPI_NONE
+#endif
+
#ifdef SERIAL_RX
#define RX_USART USAR... |
NetworkTools: Remove legacy solution filters | <Filter Include="Resource Files\Images">
<UniqueIdentifier>{6099dd18-02c5-4fb6-8255-5e01760f7094}</UniqueIdentifier>
</Filter>
- <Filter Include="Source Files\gzip">
- <UniqueIdentifier>{aa70b032-eb9d-4862-a0f5-623a5f07b372}</UniqueIdentifier>
- </Filter>
- <Filter Include="Source Files\maxmind">
- <UniqueIdentifier>{b... |
[mod_webdav] quiet coverity warnings | @@ -2034,6 +2034,9 @@ __attribute_noinline__
static int
webdav_fcopyfile_sz (int ifd, int ofd, off_t isz)
{
+ if (0 == isz)
+ return 0;
+
#ifdef _WIN32
/* Windows CopyFile() not usable here; operates on filenames, not fds */
#else
@@ -2046,8 +2049,8 @@ webdav_fcopyfile_sz (int ifd, int ofd, off_t isz)
if (0 == fcopyfil... |
nimble/ll: Add few useful macros | #define INT16_LT(_a, _b) ((int16_t)((_a) - (_b)) < 0)
#define INT16_LTE(_a, _b) ((int16_t)((_a) - (_b)) <= 0)
+#define MIN(_a, _b) ((_a) < (_b) ? (_a) : (_b))
+#define MAX(_a, _b) ((_a) < (_b) ? (_a) : (_b))
+#define CLAMP(_n, _min, _max) (MAX(_min, MIN(_n, _max)))
+#define IN_RANGE(_n, _min, _max) (((_n) >= (_min)) &&... |
Fix parsing of sub-TLVs. | @@ -299,12 +299,12 @@ parse_other_subtlv(const unsigned char *a, int alen)
}
if(i + 1 > alen) {
- fprintf(stderr, "Received truncated sub-TLV on IHU.\n");
+ fprintf(stderr, "Received truncated sub-TLV.\n");
return -1;
}
len = a[i + 1];
if(i + len > alen) {
- fprintf(stderr, "Received truncated sub-TLV on IHU.\n");
+ fp... |
VERSION bump to version 1.3.40 | @@ -31,7 +31,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 3)
-set(SYSREPO_MICRO_VERSION 39)
+set(SYSREPO_MICRO_VERSION 40)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
set BUGFIX invalid return value returned | @@ -142,7 +142,7 @@ ly_set_merge(struct ly_set *trg, struct ly_set *src, int options)
API LY_ERR
ly_set_rm_index(struct ly_set *set, unsigned int index)
{
- LY_CHECK_ARG_RET(NULL, set, -1);
+ LY_CHECK_ARG_RET(NULL, set, LY_EINVAL);
LY_CHECK_ERR_RET(((index + 1) > set->number), LOGARG(NULL, set), LY_EINVAL);
if (index =... |
Build Elektra: Fix minor spelling mistake | @@ -15,7 +15,7 @@ Then builds and installs Elektra.
-t=DIR download Elektra into DIR (relative to current working directory).
If DIR already exists, use sources from DIR.
Default DIR is './libelektra-TAG'.
- -j=JOBS Number of sumulateneos jobs/recipes executed by make (like make -j JOBS).
+ -j=JOBS Number of simultaneo... |
Allow for KARK magic header | @@ -221,11 +221,11 @@ struct ResourcesList
std::ifstream file(filepath, std::ios::binary);
file.exceptions(std::ios::badbit);
- size_t headerSize = 4;
+ size_t headerSize = 8;
std::string content((std::istreambuf_iterator(file)), std::istreambuf_iterator<char>());
std::string buffer;
- buffer.resize(* (uint32_t*)conten... |
fix servername | @@ -26,7 +26,7 @@ if [ "$ROLE" == "client" ]; then
echo "Requests: " $REQUESTS
# Pull server and file names out of requests, generate file list for cli.
for REQ in $REQUESTS; do
- SERVER=`echo $REQ | cut -f3 -d'/'`
+ SERVER=`echo $REQ | cut -f3 -d'/' | cut -f1 -d':'`
FILE=`echo $REQ | cut -f4 -d'/'`
FILES=${FILES}" "${... |
utils: trace: Add untilWithoutRetry().
This function is simplified version of watch.UntilWithoutRetry() because this
function could be deprecated one day. | @@ -33,6 +33,9 @@ import (
types "k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/kubernetes/scheme"
+ "k8s.io/apimachinery/pkg/util/wait"
+ "k8s.io/apimachinery/pkg/watch"
+
gadgetv1alpha1 "github.com/kinvolk/inspektor-gadget/pkg/apis/gadget/v1alpha1"
clientset "github.com/kinvolk/inspektor-gadget/pkg/client/clientse... |
SOVERSION bump to version 2.21.5 | @@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 21)
-set(LIBYANG_MICRO_SOVERSION 4)
+set(LIBYANG_MICRO_SOVERSION 5)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_M... |
tests: runtime: out_file: add explicit default format case | @@ -15,6 +15,7 @@ void flb_test_file_json_small(void);
void flb_test_file_format_csv(void);
void flb_test_file_format_ltsv(void);
void flb_test_file_format_invalid(void);
+void flb_test_file_format_out_file(void);
/* Test list */
TEST_LIST = {
@@ -24,6 +25,7 @@ TEST_LIST = {
{"format_csv", flb_test_file_format_csv },
{... |
SOVERSION bump to version 4.1.7 | @@ -35,7 +35,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 4)
set(SYSREPO_MINOR_SOVERSION 1)
-set(SYSREPO_MICRO_SOVERSION 6)
+set(SYSREPO_MICRO_SO... |
warn if zeroed timestamp is detected | @@ -106,10 +106,11 @@ static uint16_t versionmajor;
static uint16_t versionminor;
static uint16_t dltlinktype;
+static long int nmeacount;
static long int rawpacketcount;
static long int pcapreaderrors;
-static long int nmeacount;
static long int skippedpacketcount;
+static long int zeroedtimestampcount;
static long in... |
freeze asset needs to handle input merge as well, since we
can pull on the input merge even if the asset is frozen. | @@ -54,6 +54,12 @@ houdiniEngine_freezeAsset(string $assetNode)
// connection is determinded by the asset options
// and not a particular output
+ // freeze input merge nodes
+ string $inputMergeCon[] = `listConnections -type "houdiniInputMerge" $assetNode`;
+ for($merge in $inputMergeCon) {
+ setAttr ( $merge + ".froz... |
YAwn: Allow errors inside maps and sequences | @@ -39,11 +39,14 @@ scalar : PLAIN_SCALAR # 0
map : MAP_START pairs MAP_END # 1 ;
pairs : pair # 0
| pairs pair # pairs (0 1)
+ | pairs error
;
pair : KEY key VALUE child_comments_empty # pair (1 3) ;
key : scalar # key (0) ;
sequence : SEQUENCE_START elements SEQUENCE_END # sequence(1) ;
elements : element # 0
- | ele... |
tools/codeformat: Filter out dangling symlinks, etc. | @@ -83,6 +83,8 @@ def list_files(paths, exclusions=None, prefix=""):
files.update(glob.glob(os.path.join(prefix, pattern), recursive=True))
for pattern in exclusions or []:
files.difference_update(glob.fnmatch.filter(files, os.path.join(prefix, pattern)))
+ # Filter out dangling symlinks, etc.
+ files = [f for f in fil... |
arch/arm/ameabd_serial.c : Delete txready infinite wait
If a thread checks the txready infinitely, another interrupt cannot be occurred because up_txready is called from uart interrupt handler.
In this case, there can be interrupt missing. | @@ -680,29 +680,8 @@ static bool rtl8721d_up_txready(struct uart_dev_s *dev)
struct rtl8721d_up_dev_s *priv = (struct rtl8721d_up_dev_s *)dev->priv;
DEBUGASSERT(priv);
-#if defined(CONFIG_UART0_SERIAL_CONSOLE)
- if (uart_index_get(priv->tx) == 0){
- while (!serial_writable(sdrv[uart_index_get(priv->tx)]));
- return tru... |
Make libocf.so loading CWD independent | # SPDX-License-Identifier: BSD-3-Clause-Clear
#
from ctypes import c_void_p, cdll
+import inspect
+import os
lib = None
@@ -13,7 +15,12 @@ class OcfLib:
@classmethod
def getInstance(cls):
if cls.__lib__ is None:
- lib = cdll.LoadLibrary("./pyocf/libocf.so")
+ lib = cdll.LoadLibrary(
+ os.path.join(
+ os.path.dirname(in... |
[DeviceDriver] Remove rt_memory api using on SFUD. | @@ -510,14 +510,7 @@ static void sf(uint8_t argc, char **argv) {
addr = 0;
size = sfud_dev->chip.capacity;
uint32_t start_time, time_cast;
- rt_uint32_t total_mem, used_mem, max_uesd_mem;
- rt_memory_info(&total_mem, &used_mem, &max_uesd_mem);
- size_t write_size = SFUD_WRITE_MAX_PAGE_SIZE, read_size;
- if ((total_mem ... |
[viogpudo] adjust number of modes | @@ -2913,7 +2913,7 @@ NTSTATUS VioGpuAdapter::GetModeList(DXGK_DISPLAY_INFORMATION* pDispInfo)
while ((gpu_disp_modes[ModeCount].XResolution >= MIN_WIDTH_SIZE) &&
(gpu_disp_modes[ModeCount].YResolution >= MIN_HEIGHT_SIZE)) ModeCount++;
- ModeCount += 2;
+ ModeCount += 1;
m_ModeInfo = new (PagedPool) VIDEO_MODE_INFORMAT... |
Redefine h2o_timeout_init in terms of h2o_timer_init | @@ -71,13 +71,14 @@ static inline uint64_t h2o_evloop_get_execution_time(h2o_evloop_t *loop)
typedef h2o_timer_t h2o_timeout_t;
typedef h2o_timer_cb h2o_timeout_cb;
-static inline h2o_timeout_t h2o_timeout_init(h2o_timeout_cb cb)
+static inline h2o_timer_t h2o_timer_init(h2o_timer_cb cb)
{
- return (h2o_timeout_t){
+ r... |
OcConfigurationLib: Fix parsing Resolution | @@ -232,7 +232,7 @@ OC_SCHEMA
mMiscConfigurationBootSchema[] = {
OC_SCHEMA_BOOLEAN_IN ("HideSelf", OC_GLOBAL_CONFIG, Misc.Boot.HideSelf),
OC_SCHEMA_BOOLEAN_IN ("ReinstallProtocol", OC_GLOBAL_CONFIG, Misc.Boot.ReinstallProtocol),
- OC_SCHEMA_BOOLEAN_IN ("Resolution", OC_GLOBAL_CONFIG, Misc.Boot.Resolution),
+ OC_SCHEMA_... |
Reorded general dashboard label definitions. | #define T_DASH_HEAD _( "Dashboard - Overall Analyzed Requests")
#define T_HEAD N_( "Overall Analyzed Requests")
+#define T_BW _( "Bandwidth")
#define T_DATETIME _( "Date/Time")
-#define T_REQUESTS _( "Total Requests")
-#define T_GEN_TIME _( "Init. Proc. Time")
-#define T_FAILED _( "Failed Requests")
-#define T_VALID _(... |
TSCH: logging fixes | @@ -445,7 +445,8 @@ tsch_tx_process_pending(void)
queuebuf_to_packetbuf(p->qb);
LOG_INFO("packet sent to ");
LOG_INFO_LLADDR(packetbuf_addr(PACKETBUF_ADDR_RECEIVER));
- LOG_INFO_(", status %d, tx %d\n", p->ret, p->transmissions);
+ LOG_INFO_(", seqno %u, status %d, tx %d\n",
+ packetbuf_attr(PACKETBUF_ATTR_MAC_SEQNO), ... |
correct printouts for token name | @@ -2418,7 +2418,7 @@ apr_byte_t oidc_util_json_validate_cnf(request_rec *r, json_t *jwt,
json_t *cnf = json_object_get(jwt, OIDC_CLAIM_CNF);
if (cnf == NULL) {
- oidc_debug(r, "no \"cnf\" claim found in id_token");
+ oidc_debug(r, "no \"cnf\" claim found in the token");
goto out_err;
}
@@ -2426,7 +2426,7 @@ apr_byte_t... |
in_xbee: add 'deprecated' message | @@ -223,6 +223,12 @@ int in_xbee_init(struct flb_input_instance *in,
struct xbee_conSettings settings;
(void) data;
+ flb_warn("[in_xbee] THIS PLUGIN WILL BE DEPRECATED\n\n"
+ "If you are an active user of this plugin and want "
+ "to avoid it deletion,\n"
+ "please put your comnents on this link: \n\n"
+ "https://gith... |
Uses latest chipyard ci image | @@ -12,7 +12,7 @@ parameters:
executors:
main-env:
docker:
- - image: schwarzem/chipyard-test:1.0.2
+ - image: ucbbar/chipyard-ci-image:d2b3dca
environment:
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
|
aggregator: add transfers index to state | ::
finding=(map keccak ?(%confirmed %failed l1-tx-pointer))
history=(jug address:ethereum roller-tx)
+ transfers=(map ship address:ethereum)
next-nonce=(unit @ud)
next-batch=time
pre=^state:naive
|
Doc: remove bogus <indexterm> items.
Copy-and-pasteo in evidently. The 9.6 docs toolchain
whined about duplicate index entries, though our modern toolchain
doesn't. In any case, these GUCs surely are not about the
default settings of these values. | @@ -7801,7 +7801,6 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
<term><varname>transaction_read_only</varname> (<type>boolean</type>)
<indexterm>
<primary>read-only transaction</primary>
- <secondary>setting default</secondary>
</indexterm>
<indexterm>
<primary><varname>transaction_read_only</varname... |
xfpga: fix impl. of ObjectGetSize
Syncing an object is only applicable to objects that are backed by sysfs
files (and not directories or containers). This fix ensures that
sync_object is called only for file objects. | @@ -202,16 +202,16 @@ fpga_result __FPGA_API__ xfpga_fpgaObjectGetSize(fpga_object obj,
uint32_t *size,
int flags)
{
+ struct _fpga_object *_obj = (struct _fpga_object *)obj;
fpga_result res = FPGA_OK;
ASSERT_NOT_NULL(obj);
ASSERT_NOT_NULL(size);
- if (flags & FPGA_OBJECT_SYNC) {
+ if (flags & FPGA_OBJECT_SYNC && _obj-... |
Fixup if brackets. | @@ -2087,9 +2087,10 @@ void local_zones_del_data(struct local_zones* zones,
/* no memory recycling for zone deletions ... */
d->rrsets = NULL;
/* did we delete the soa record ? */
- if(query_dname_compare(d->name, z->name) == 0)
+ if(query_dname_compare(d->name, z->name) == 0) {
z->soa = NULL;
z->soa_negative = NULL;
+... |
doc: Mention CASCADE/RESTRICT for DROP STATISTICS
This grammar has no effect as there are no dependencies on statistics,
but it is supported by the parser. This is more consistent with the
other DROP commands.
Author: Vignesh C
Discussion:
Backpatch-through: 10 | @@ -21,7 +21,7 @@ PostgreSQL documentation
<refsynopsisdiv>
<synopsis>
-DROP STATISTICS [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [, ...]
+DROP STATISTICS [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [, ...] [ CASCADE | RESTRICT ]
</synopsis>
</refsynopsisdiv>
@@ -59,6 +59,18 @@... |
sys/console: Rename RTT console polling function
...and make it static. | @@ -55,8 +55,8 @@ console_out(int character)
#define RTT_INPUT_POLL_INTERVAL_STEP 10 /* ms */
#define RTT_INPUT_POLL_INTERVAL_MAX MYNEWT_VAL(CONSOLE_RTT_INPUT_POLL_INTERVAL_MAX)
-void
-rtt(void *arg)
+static void
+rtt_console_poll_func(void *arg)
{
static uint32_t itvl_ms = RTT_INPUT_POLL_INTERVAL_MIN;
int key;
@@ -87,... |
worker: initialize event structure | @@ -73,6 +73,8 @@ int flb_worker_create(void (*func) (void *), void *arg, pthread_t *tid,
perror("malloc");
return -1;
}
+ MK_EVENT_ZERO(&worker->event);
+
worker->func = func;
worker->data = arg;
worker->config = config;
|
d2i_X509(): Make deallocation behavior consistent with d2i_X509_AUX()
Partly fixes | @@ -125,13 +125,17 @@ IMPLEMENT_ASN1_DUP_FUNCTION(X509)
X509 *d2i_X509(X509 **a, const unsigned char **in, long len)
{
X509 *cert = NULL;
+ int free_on_error = a != NULL && *a == NULL;
cert = (X509 *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (X509_it()));
/* Only cache the extensions if the cert object was passed in */
... |
[hardware] Generalize Questasim command | @@ -28,20 +28,25 @@ dpi_library ?= work-dpi
# Top level module to compile
top_level ?= mempool_tb
# QuestaSim Version
-questa_version ?= -2020.1
-# QuestaSim Commands
-questa_cmd ?=
-
-ifndef QUESTASIM_HOME
- QUESTASIM_HOME = /usr/pack/questa-2019.3-kgf/questasim
-# $(error QUESTASIM_HOME not set - please point your QU... |
use atomic operations on server.bio_find_offset_res | #include "redis_oplog.h"
#include "bio.h"
+#include "atomicvar.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -2606,8 +2607,10 @@ void bioFindOffsetByOpid(client *c, long long opid, uint64_t client_id) {
int argc = 0;
/* produce one item at a time, after that we just sleep */
- while (server.bio_find_offset_res) {
... |
fix write to null pointer if malloc failed | @@ -321,13 +321,13 @@ static esp_err_t example_espnow_init(void)
/* Initialize sending parameters. */
send_param = malloc(sizeof(example_espnow_send_param_t));
- memset(send_param, 0, sizeof(example_espnow_send_param_t));
if (send_param == NULL) {
ESP_LOGE(TAG, "Malloc send parameter fail");
vSemaphoreDelete(s_example_... |
spider: update http handler to be compatible with dojo | =/ body=json
(need (de-json:html q.u.body.request.inbound-request))
=/ input=vase
- (tube !>(body))
+ (slop (tube !>(body)) !>(~))
=/ =start-args
[~ `tid thread input]
=^ cards state
|
python: reformat source | @@ -159,8 +159,7 @@ static unsigned open_cnt = 0;
static void Python_Shutdown (moduleData * data)
{
- if (!data->shutdown)
- return;
+ if (!data->shutdown) return;
/* destroy python if plugin isn't used anymore */
if (Py_IsInitialized ())
|
Guybrush: Remove pause in S5 config
This config is a no-op in AMD power sequencing.
BRANCH=None
TEST=make -j buildall | #define CONFIG_POWER_COMMON
#define CONFIG_POWER_S0IX
#define CONFIG_POWER_SLEEP_FAILURE_DETECTION
-#define CONFIG_POWER_SHUTDOWN_PAUSE_IN_S5
#define CONFIG_POWER_TRACK_HOST_SLEEP_STATE
#define G3_TO_PWRBTN_DELAY_MS 200
#define GPIO_AC_PRESENT GPIO_ACOK_OD
|
doccords: these <-> other locations | :> at present, doccords does not support lexical locations in full.
:> only single-element locations of the form `$foo` and `+foo` are supported,
:> and must be written above an arm in the core to which they are to be
-:> attached. you may still write doccords for these locations, and they
+:> attached. you may still w... |
added getResourceById(id) method | @@ -545,6 +545,15 @@ public class Compiler
resourcesFile.add(file);
}
+ public static Resource getResourceById(String id)
+ {
+ for (Resource resource : resourcesList)
+ if (resource.id.equals(id))
+ return resource;
+
+ return null;
+ }
+
private static Resource execute(String input)
{
try
|
phb5: Fix PHB max link speed definition on P10
Not all PHBs are capable of GEN5 speed on P10. In all PEC
configurations, the first PHB is the only one which can handle GEN5. | @@ -3011,10 +3011,10 @@ static unsigned int phb4_get_max_link_speed(struct phb4 *p, struct dt_node *np)
chip = get_chip(p->chip_id);
hw_max_link_speed = 4;
- if (is_phb5())
+ if (is_phb5() && (p->index == 0 || p->index == 3))
hw_max_link_speed = 5;
- /* Priority order: NVRAM -> dt -> GEN3 dd2.00 -> GEN4 */
+ /* Priorit... |
[tool] Fix bug with missing brackets in eclipse.py | @@ -365,7 +365,7 @@ def UpdateProjectStructure(env, prj_name):
out = open('.project', 'w')
out.write('<?xml version="1.0" encoding="UTF-8"?>\n')
xml_indent(root)
- out.write(etree.tostring(root, encoding='utf-8').decode('utf-8')
+ out.write(etree.tostring(root, encoding='utf-8').decode('utf-8'))
out.close()
return
@@ -... |
ci: do not generate ubuntu jobs if not specified
We used to generate ubuntu only jobs even if ubuntu is not in the os
list, wrap them with os checkers now. | @@ -245,7 +245,9 @@ groups:
- cli_cross_subnet
{% for test in CLI_BEHAVE_TESTS %}
- [[ test.name ]]
+{% if "ubuntu18.04" in os_types %}
- [[ test.name ]]_ubuntu18
+{% endif %}
{% endfor %}
- check_centos
- combine_cli_coverage
@@ -384,11 +386,15 @@ groups:
- name: CLI
jobs:
- gate_cli_start
+{% if "ubuntu18.04" in os_t... |
Makefile.cooja: remove now uneeded duplicate later configuration | @@ -43,60 +43,6 @@ CONTIKI_APP_OBJ = $(CONTIKI_APP).co
# Modules
MODULES += os/net os/net/mac os/net/mac/framer
-## Copied from Makefile.include, since Cooja overrides CFLAGS et al
-# Configure Network layer
-
-MAKE_NET_NULLNET = 0
-MAKE_NET_IPV6 = 1
-MAKE_NET_OTHER = 2
-
-# Make IPv6 the default stack
-MAKE_NET ?= MAK... |
Put 3DES back into the FIPS provider as a non-approved algorithm
This reverts commit and changes
how 3DES is advertised. | @@ -37,8 +37,12 @@ static OSSL_FUNC_provider_gettable_params_fn fips_gettable_params;
static OSSL_FUNC_provider_get_params_fn fips_get_params;
static OSSL_FUNC_provider_query_operation_fn fips_query;
-#define ALGC(NAMES, FUNC, CHECK) { { NAMES, FIPS_DEFAULT_PROPERTIES, FUNC }, CHECK }
+#define ALGC(NAMES, FUNC, CHECK) ... |
lib: mbedtls: force compiler c99 mode | @@ -154,6 +154,8 @@ string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}")
include(CheckCCompilerFlag)
+set(CMAKE_C_FLAGS "${CMAKE_C_CFLAGS} -std=c99")
+
if(CMAKE_COMPILER_IS_GNU)
# some warnings we want are not available with old GCC versions
# note: starting with CMake 2.8 we could use CMAKE_C_C... |
yin parser BUGFIX set pmod for union nested types as well | @@ -1226,8 +1226,6 @@ yin_parse_type(struct lys_yin_parser_ctx *ctx, enum ly_stmt parent, struct yin_s
type = (struct lysp_type *)subinfo->dest;
}
- type->pmod = ctx->parsed_mod;
-
/* type as child of another type */
if (parent == LY_STMT_TYPE) {
struct lysp_type *nested_type = NULL;
@@ -1236,6 +1234,8 @@ yin_parse_typ... |
Create function to set a table field (with literal key) | @@ -558,6 +558,43 @@ local function literal_get(lit, ctx)
return cstats, out.name
end
+--
+-- @table
+--
+
+local function table_get_slot(tabl, lit, ctx)
+ local key_cstats, key = literal_get(lit, ctx)
+ local key_type = types.T.String()
+ local key_slot = ctx:new_cvar("TValue")
+ local key_slot_addr = "&" .. key_slot.... |
options/ansi: Define comparison_fn_t if glibc is enabled | @@ -108,6 +108,10 @@ int wctomb(char *mb_chr, wchar_t wc);
size_t mbstowcs(wchar_t *__restrict wc_string, const char *__restrict mb_string, size_t max_size);
size_t wcstombs(char *mb_string, const wchar_t *__restrict wc_string, size_t max_size);
+#if __MLIBC_GLIBC_OPTION
+typedef int (*comparison_fn_t) (const void *, c... |
py/pbkwarg: update reference to bool objects
This follows: | #define PB_ARG_DEFAULT_QSTR(name, value) (name, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_QSTR(MP_QSTR_##value)})
// Optional keyword argument with default false value
-#define PB_ARG_DEFAULT_FALSE(name)(name, MP_ARG_OBJ, {.u_rom_obj = MP_ROM_PTR(&mp_const_false_obj)})
+#define PB_ARG_DEFAULT_FALSE(name)(name, MP_ARG_OBJ, {.u_r... |
Adding comments for self interpose test to explain why and how. | #include "test.h"
+//
+// This test was written to ensure that we don't directly use functions we
+// interpose. I know of a couple of reasons we're wanting to ensure this:
+// 1) We're trying to monitor and describe the application we're in, and
+// if we report what our library is doing this might confuse anyone
+// ... |
absorb spurious wakeups from kernel_sleep (for xen) | @@ -139,11 +139,11 @@ void runloop_internal()
if ((t = dequeue(thread_queue)) != INVALID_ADDRESS)
run_thunk(t, cpu_user);
+ /* loop to absorb spurious wakeups from hlt - happens on some platforms (e.g. xen) */
+ while (1)
kernel_sleep();
- halt("cpu %d return from kernel sleep", ci->id);
}
-// is kern lock held here?
v... |
migration: fixing bad | ++ take-migrate
|= [=ship =sign:agent:gall]
^- (quip card _state)
- ~& [migrating ship src.bol]
+ ~& [%migrating ship src.bol]
?: ?=(%poke-ack -.sign)
`state
:_ state(wait (~(del in wait) ship))
|
Raw.Auxiliary: stop exporting c_loade_table, c_preload_table
These values are only defined if HARDCODE_REG_KEYS is not set and are
not needed outside of that module. | @@ -12,9 +12,7 @@ Portability : non-portable (depends on GHC)
Raw bindings to functions and constants of the auxiliary library.
-}
module Foreign.Lua.Raw.Auxiliary
- ( c_loaded_table
- , c_preload_table
- , hsluaL_newstate
+ ( hsluaL_newstate
, hsluaL_tolstring
, luaL_getmetafield
, luaL_getmetatable
|
Combine test_switch_01_10 with pg_twophase make target.
Once this gos through in CI, will help to reduce one more job and there by
elimintae one more VM expense. | @@ -105,11 +105,7 @@ filerep_end_to_end_incr_mirror:
test_pg_twophase:
$(TESTER) $(DISCOVER) \
-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
- -p test_pg_twophase.py
-
-test_switch_01_12:
- $(TESTER) $(DISCOVER) \
- -s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
+ -p test_pg_twophase.py \
-p test_switch.py
# cs-ft... |
Don't shadow in libraries | ==
::
++ fo :: modulo prime
+ ^?
|_ a/@
++ dif
|= {b/@ c/@}
--
::
++ si :: signed integer
+ ^?
|%
++ abs |=(a/@s (add (end 0 1 a) (rsh 0 1 a))) :: absolute value
++ dif |= {a/@s b/@s} :: subtraction
++ rylq |= a/dn ^- @rq (grd:rq a) :: finish parsing @rq
::
++ rd :: double precision fp
+ ^?
~% %rd +> ~
|_ r/$?($n $u $d... |
Fix removal of redundant points when interpolating catmull-roms. | @@ -874,7 +874,7 @@ tsError ts_bspline_interpolate_catmull_rom(const tsReal *points,
if (ts_distance(p0, p1, dimension) <= eps) {
if (i < num_points - 2) {
memmove(p1, p1 + dimension,
- num_points - (i + 1));
+ (num_points - (i + 1)) * sof_ctrlp);
}
num_points--;
i--;
|
VTL: test/lisp.py. Add missing method: object_id(). | @@ -184,6 +184,10 @@ class VppLispMapping(VppObject):
mapping = self.get_lisp_mapping_dump_entry()
return mapping
+ def object_id(self):
+ return 'lisp-mapping-[%s]-%s-%s-%s' % (
+ self.vni, self.eid, self.priority, self.weight)
+
class VppLocalMapping(VppLispMapping):
""" LISP Local mapping """
|
netkvm: Fix wrong access to zeroed m_NBL member
In case the NBL shall be completed from the destructor of CNBL
object, the access causes BSOD. | @@ -26,12 +26,12 @@ CNBL::~CNBL()
{
auto NBL = DetachInternalObject();
NETKVM_ASSERT(NET_BUFFER_LIST_NEXT_NBL(NBL) == nullptr);
- if (CallCompletionForNBL(m_Context, m_NBL))
+ if (CallCompletionForNBL(m_Context, NBL))
{
m_ParentTXPath->CompleteOutstandingNBLChain(NBL);
} else
{
- m_ParentTXPath->CompleteOutstandingInte... |
Make context reallocation tests robust vs allocation pattern changes | @@ -11302,7 +11302,7 @@ END_TEST
* returns normally it must have succeeded.
*/
static void
-context_realloc_test(XML_Parser parser, const char *text)
+context_realloc_test(const char *text)
{
ExtOption options[] = {
{ "foo", "<!ELEMENT e EMPTY>"},
@@ -11320,7 +11320,9 @@ context_realloc_test(XML_Parser parser, const ch... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.