message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
fix typo default key for song delay | @@ -58,7 +58,7 @@ def setupglobals(data, gameplaydata, replay_info, settings, ppsettings=None):
settings.default_skin_ini = skin
gameplaydata["Enable PP counter"] = gameplaydata.get("Enable PP counter", False)
- gameplaydata["Delay song"] = gameplaydata.get("Delay song", 0)
+ gameplaydata["Song delay"] = gameplaydata.g... |
input: exit plugins in reverse mode (help shared database states) | @@ -344,7 +344,7 @@ void flb_input_exit_all(struct flb_config *config)
struct flb_input_plugin *p;
/* Iterate instances */
- mk_list_foreach_safe(head, tmp, &config->inputs) {
+ mk_list_foreach_safe_r(head, tmp, &config->inputs) {
in = mk_list_entry(head, struct flb_input_instance, _head);
p = in->p;
if (!p) {
|
website: pin docsearch version | "@uirouter/angularjs": "^0.4.2",
"bootstrap": "^3.4.1",
"connect-modrewrite": "^0.10.2",
- "docsearch.js": "latest",
+ "docsearch.js": "^2.6.3",
"fs-extra": "^0.30.0",
"grunt": "^1.3.0",
"grunt-browserify": "^6.0.0",
|
Yajl: Restrict top level value gen to parent key | @@ -259,7 +259,8 @@ int elektraYajlSet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Key * par
yajl_gen_config (g, yajl_gen_beautify, 1);
#endif
- if (ksGetSize (returned) == 1 && keyGetValueSize (ksHead (returned)) > 1)
+ if (ksGetSize (returned) == 1 && !strcmp (keyName (parentKey), keyName (ksHead (returned)))... |
Remove use of byte reading macro for uint16
Accidently used MBEDTLS_BYTE_16 for a uint16 variable | @@ -62,8 +62,8 @@ static uint64_t mul64( uint32_t a, uint32_t b )
/* a = al + 2**16 ah, b = bl + 2**16 bh */
const uint16_t al = (uint16_t) a;
const uint16_t bl = (uint16_t) b;
- const uint16_t ah = MBEDTLS_BYTE_2( a );
- const uint16_t bh = MBEDTLS_BYTE_2( b );
+ const uint16_t ah = a >> 16;
+ const uint16_t bh = b >>... |
Fixed Selected Amount margin | @@ -106,11 +106,13 @@ TransactionView::TransactionView(QWidget *parent) :
QLabel* transactionSumLabel = new QLabel();
transactionSumLabel->setObjectName("transactionSumLabel");
transactionSumLabel->setText(tr("Selected amount:"));
+ transactionSumLabel->setContentsMargins(5,8,5,0);
hbox2->addWidget(transactionSumLabel)... |
schema compile BUGFIX anyxml/anydata use warning
... should not be displayed in case they are used
in RPC/action/notification. | @@ -3014,7 +3014,7 @@ lys_compile_node_any(struct lysc_ctx *ctx, struct lysp_node *pnode, struct lysc_
LY_CHECK_GOTO(ret, done);
}
- if (any->flags & LYS_CONFIG_W) {
+ if (!(ctx->options & (LYS_COMPILE_RPC_MASK | LYS_COMPILE_NOTIFICATION)) && (any->flags & LYS_CONFIG_W)) {
LOGWRN(ctx->ctx, "Use of %s to define configur... |
Switch deprecation method for CMAC | @@ -28,19 +28,21 @@ extern "C" {
/* Opaque */
typedef struct CMAC_CTX_st CMAC_CTX;
# endif
-
-DEPRECATEDIN_3_0(CMAC_CTX *CMAC_CTX_new(void))
-DEPRECATEDIN_3_0(void CMAC_CTX_cleanup(CMAC_CTX *ctx))
-DEPRECATEDIN_3_0(void CMAC_CTX_free(CMAC_CTX *ctx))
-DEPRECATEDIN_3_0(EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *c... |
perf(non-NULL check):
"output_ptr->field_ptr" should check non-null in hlfabricProposalPayloadDataPacked() | @@ -340,6 +340,11 @@ __BOATSTATIC BOAT_RESULT hlfabricProposalPayloadDataPacked(BoatHlfabricTx *tx_pt
chaincodeProposalPayload.input.data = chaincodeInvocationSpecBuffer;
packedLength = protos__chaincode_proposal_payload__get_packed_size(&chaincodeProposalPayload);
output_ptr->field_ptr = BoatMalloc(packedLength);
+ if... |
dont't crash honggfuzz if we can't getrusage, just warn the user | @@ -194,7 +194,8 @@ static void printSummary(honggfuzz_t* hfuzz) {
guardNb ? ((100 * ATOMIC_GET(hfuzz->linux.hwCnts.softCntEdge)) / guardNb) : 0;
struct rusage usage;
if (getrusage(RUSAGE_CHILDREN, &usage)){
- PLOG_F("getrusage failed");
+ PLOG_W("getrusage failed");
+ usage.ru_maxrss = 0; // 0 means something went wro... |
Exclude Android and Particle | #include <stdio.h>
#include <assert.h>
-#if !defined(WIN32) && !defined(PLATFORMIO) && !defined(WM_W600)
+#if !defined(WIN32) && !defined(PLATFORMIO) && !defined(WM_W600) && !defined(ANDROID) && !defined(PARTICLE)
#include <unistd.h>
#include <sys/ioctl.h>
#endif
@@ -159,7 +159,7 @@ i32 m3_fwrite (void * i_ptr, i32 i_s... |
zephyr: kconfig: set TEXT_SECTION_OFFSET to zero
Ensure that the offset in .text is zero.
This is necessary to ensure that MCUBoot is linked at
the beginning of the boot partition, as intended. | @@ -13,6 +13,18 @@ config MCUBOOT
bool
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
+if BOARD_HAS_NRF5_BOOTLOADER
+
+# When compiling MCUBoot, the image will be linked to the boot partition.
+# Override .text offset to make sure it is set to zero.
+# This is necessary when other bootloaders set a different default for
+# ap... |
switch to external version of opencl repo because internal version appears not to be used | <project remote="gerritgit" path="rocm-cmake" name="compute/ec/packaging/rocm-cmake" revision="release/rocm-rel-4.5" groups="unlocked" />
<!-- HIP/ROCclr/OpenCL -->
-<project remote="gerritgit" path="ROCm-OpenCL-Runtime" name="brahma/ec/packaging/rocm-opencl" revision="amd-staging" groups="unlocked" />
+<project remote... |
[bsp] fix spi4 typo | @@ -480,7 +480,7 @@ void DMA1_Stream2_IRQHandler(void)
struct stm32f4_spi stm32f4_spi4 =
{
/* .spi_handle = */{
- /* .Instance = */ SPI5,
+ /* .Instance = */ SPI4,
},
/* .hdma_rx = */ {
DMA2_Stream0,
|
Fix Wrong Attribute for MobHunt | @@ -32,7 +32,7 @@ public unsafe partial struct MobHunt
[FieldOffset(0x8)] public fixed byte unkArray[18];
[FieldOffset(0x1A)] public fixed byte MarkID[18];
- [FixedArray(typeof(KillCounts), 18)]
+ [FixedSizeArray<KillCounts>(18)]
[FieldOffset(0x2C)] public fixed int CurrentKills[18 * 5];
[FieldOffset(0x194)] public int... |
fix typo in inventor example | @@ -36,7 +36,7 @@ POS_KD = 0.0022 # Position derivative (D) gain
# Create a new Inventor2040W and get a motor and encoder from it
-board = Inventor2040W(motor_rear_ratio=GEAR_RATIO)
+board = Inventor2040W(motor_gear_ratio=GEAR_RATIO)
m = board.motors[MOTOR_A]
enc = board.encoders[MOTOR_A]
|
Handle the server refusing to reneg in a reneg_setup
During setup of a reneg test the server can refuse to start reneg.
If that happens we should let the client continue and then fail. | @@ -764,6 +764,17 @@ static void do_reneg_setup_step(const SSL_TEST_CTX *test_ctx, PEER *peer)
int ret;
char buf;
+ if (peer->status == PEER_SUCCESS) {
+ /*
+ * We are a client that succeeded this step previously, but the server
+ * wanted to retry. Probably there is a no_renegotiation warning alert
+ * waiting for us.... |
Free retired threads. | @@ -164,8 +164,13 @@ const cleanup = {re
next = thr.next
thrfree(re, thr)
;;
+ for thr = re.freed; thr != Zthr; thr = next
+ next = thr.next
+ thrfree(re, thr)
+ ;;
re.runq = Zthr
re.expired = Zthr
+ re.freed = Zthr
re.nexttid = 0
re.nthr = 0
}
|
Remove tests for static compiling libtcod.
This will be phased out now that Conan can be used instead. | @@ -6,8 +6,6 @@ environment:
matrix:
- SCONSOPTS: "ARCH=x86_64 TOOLSET=msvc"
TEST_PYTHON3: "C:/Python35-x64/python.exe"
- - SCONSOPTS: "ARCH=x86_64 TOOLSET=msvc SOURCE_FILES=static"
- TEST_PYTHON3: "C:/Python35-x64/python.exe"
- SCONSOPTS: "ARCH=x86 TOOLSET=msvc"
TEST_PYTHON3: "C:/Python35/python.exe"
- SCONSOPTS: "TOO... |
vlapic: apicv_get_apic_page_addr should get hpa
virtual-ACPI page which write into VMCS should be hpa
Acked-by: Eddie Dong | @@ -2272,7 +2272,7 @@ apicv_get_apic_access_addr(__unused struct vm *vm)
uint64_t
apicv_get_apic_page_addr(struct vlapic *vlapic)
{
- return (uint64_t)(vlapic->apic_page);
+ return HVA2HPA(vlapic->apic_page);
}
/*
|
Fix build problem with luac.cross when DEVELOPMENT_USE_GDB is used | @@ -958,12 +958,12 @@ LUALIB_API void luaL_assertfail(const char *file, int line, const char *message)
#endif
}
-#ifdef DEVELOPMENT_USE_GDB
+#if defined(DEVELOPMENT_USE_GDB) && !defined(LUA_CROSS_COMPILER)
/*
* This is a simple stub used by lua_assert() if DEVELOPMENT_USE_GDB is defined.
* Instead of crashing out with ... |
gitlab: Clone nanopb to fix build
crrev/c/3149344 made nanopb required, so fetch it before building.
BRANCH=none
TEST=none
Tested-by: Jeremy Bettis | @@ -34,6 +34,7 @@ before_script:
- git clone -b chromeos-v2.6 https://chromium.googlesource.com/chromiumos/third_party/zephyr "${ZEPHYR_BASE}26"
- git clone -b chromeos-main https://chromium.googlesource.com/chromiumos/third_party/zephyr/cmsis "${MODULES_DIR}/cmsis"
- git clone -b chromeos-main https://chromium.googles... |
c: fix for empty keynames | @@ -107,6 +107,10 @@ int keyGenerate (const Key * key, FILE * stream, option_t options)
fprintf (stream, "\tkeyNew (\"%s\"", escapeString (&nam));
elektraFree (nam);
}
+ else if (n == 1)
+ {
+ fprintf (stream, "\tkeyNew(\"\"");
+ }
size_t s = keyGetValueSize (key);
if (s > 1)
|
build instructions: explain how to load submodules | @@ -77,6 +77,11 @@ git clone --recurse-submodules git@github.com:digitalbitbox/bitbox02-firmware.gi
make firmware # requires a GNU ARM toolchain for cross-compiling
```
+If you have already cloned the repository without the `--recurse-submodules` argument, run:
+```
+git submodule update --init --recursive
+```
+
Build... |
doc: types from | @@ -46,20 +46,25 @@ First draft of API:
// might fail, you need to check for error afterwards!
Elektra * elektraOpen (const char * application);
-// enum, int, tristate
-int elektraGetInt (Elektra * handle, const char * name);
-
-char * elektraGetString (Elektra * handle, const char * name);
-
-// and so on.. (all type... |
Adjust travis tests for tools/ | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
-TOOLS=tools tools/sky tools/jn516x
+TOOLS=tools
BASEDIR=../../
TESTLOGS=$(subst /,__,$(patsubst %,%.testlog, $(TOOLS)))
|
Support per balance transactions in PayoutHandlerBase | @@ -105,8 +105,11 @@ public abstract class PayoutHandlerBase
return blockRewardRemaining;
}
- protected virtual async Task PersistPaymentsAsync(Balance[] balances, string transactionConfirmation)
+ protected async Task PersistPaymentsAsync(Balance[] balances, string transactionConfirmation)
{
+ Contract.RequiresNonNull... |
imxrt117x: Added missing ccm base address assign | @@ -697,6 +697,7 @@ void _imxrt_init(void)
imxrt_common.aips[1] = (void *)0x40400000;
imxrt_common.aips[2] = (void *)0x40800000;
imxrt_common.aips[3] = (void *)0x40c00000;
+ imxrt_common.ccm = (void *)0x40cc0000;
imxrt_common.nvic = (void *)0xe000e100;
imxrt_common.scb = (void *)0xe000ed00;
imxrt_common.stk = (void *)0... |
story: create fundamental jug operations | /- *story
+!:
|%
+:: XX generalize move to hoon.hoon
+++ dif-ju
+ |= [a=story b=story]
+ ^- story
+ ::?: ?=(~ a) b
+ ::?< ?=(~ a)
+ ::?< ?=(~ b)
+ ::~! a
+ ::~! b
+ :: uno := (a-b) + (merged items in both a and b) + (b-a)
+ :: ret := (a-b) + (merged items in both a and b)
+ :: ret = (~(int by a) uno) :: preserve only t... |
Remove option exclusions now handled by command role validity.
These options were explicitly excluded because it was possible for them to be mangled by SSH if they contained spaces.
They are now excluded by command role validity rules. | @@ -398,17 +398,6 @@ protocolRemoteParam(ProtocolStorageType protocolStorageType, unsigned int hostId
kvPut(optionReplace, VARSTR(CFGOPT_LOG_PATH_STR), NULL);
kvPut(optionReplace, VARSTR(CFGOPT_LOCK_PATH_STR), NULL);
- // ??? Don't pass restore options which the remote doesn't need and are likely to contain spaces beca... |
hv: refine pci_read_cap and pci_read_ext_cap
The pci_read_cap and pci_read_ext_cap are used to enumerate PCI
legacy capability and extended capability.
Change the name pci_read_cap to pci_enumerate_cap
Change the name pci_read_ext_cap to pci_enumerate_ext_cap
Acked-by: Eddie Dong | @@ -521,7 +521,7 @@ static inline uint32_t pci_pdev_get_nr_bars(uint8_t hdr_type)
/**
* @pre pdev != NULL
*/
-static void pci_read_ext_cap(struct pci_pdev *pdev) {
+static void pci_enumerate_ext_cap(struct pci_pdev *pdev) {
uint32_t hdr, pos;
@@ -546,7 +546,7 @@ static void pci_read_ext_cap(struct pci_pdev *pdev) {
/*
... |
fix(png): fix possible memory leak when decoding fails | @@ -154,6 +154,9 @@ static lv_res_t decoder_open(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t *
error = lodepng_decode32(&img_data, &png_width, &png_height, png_data, png_data_size);
lv_mem_free(png_data); /*Free the loaded file*/
if(error) {
+ if(img_data != NULL) {
+ lv_mem_free(img_data);
+ }
LV_LOG_WARN("error ... |
hv: vE820: calculate SOS memory size by vE820 tables
SOS's memory size could be calculated by its vE820 Tables easily.
Acked-by: eddie Dong | @@ -86,11 +86,10 @@ static void filter_mem_from_sos_e820(struct acrn_vm *vm, uint64_t start_pa, uint
*/
void create_sos_vm_e820(struct acrn_vm *vm)
{
- uint16_t vm_id;
+ uint16_t vm_id, i;
uint64_t hv_start_pa = hva2hpa((void *)(get_hv_image_base()));
uint64_t hv_end_pa = hv_start_pa + CONFIG_HV_RAM_SIZE;
uint32_t entr... |
BugID:18498702:[misc] fix XC5 code scan issue | @@ -82,7 +82,7 @@ char *json_get_next_object(int type, char *str, char *str_end, char **key, int *
}
while (p_cPos && *p_cPos && p_cPos < str_end && iValueType > JNONE) {
- if (iValueType == JBOOLEAN) {
+ if (iValueType == JBOOLEAN && NULL != p_cValue) {
int len = strlen(p_cValue);
if ((*p_cValue == 't' || *p_cValue ==... |
adding various debuggers to usge | Dump html pages only.
Takes an optional argument that specifies the
directory for -info-dump output files.
- -gdb <args> <comp> Run gdb with <args> on component <comp>.
- Default <args> is whitespace.
-break <funcname> Add the specified breakpoint in gdb.
-xterm With -gdb-something, run gdb in an xterm window.
-newcons... |
session BUGFIX memory leak
Capabilities are not in the dictionary.
Fixes | @@ -520,7 +520,7 @@ nc_session_free(struct nc_session *session, void (*data_free)(void *))
/* list of server's capabilities */
if (session->opts.client.cpblts) {
for (i = 0; session->opts.client.cpblts[i]; i++) {
- lydict_remove(session->ctx, session->opts.client.cpblts[i]);
+ free(session->opts.client.cpblts[i]);
}
fr... |
SOVERSION bump to version 2.3.5 | @@ -63,7 +63,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 3)
-set(LIBYANG_MICRO_SOVERSION 4)
+set(LIBYANG_MICRO_SOVERSION 5)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI... |
cmake: don't set -Wall with MSVC
take the generator default (/W3); /Wall produces too many warnings that
can't be acted on. | @@ -103,7 +103,9 @@ endforeach()
### Define the mandatory libraries.
# Build the webpdecoder library.
+if(NOT MSVC)
add_definitions(-Wall)
+endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${WEBP_DEP_INCLUDE_DIRS})
add_library(webpdecode OBJECT ${WEBP_DEC_SRCS})
add_library(webpdspdecode OBJECT ${WEBP_DSP_COMMON... |
dpdk: fix extended stats
Extended stats are not displayed due to incorrect condition.
Type: fix | @@ -668,7 +668,7 @@ format_dpdk_device (u8 * s, va_list * args)
vec_validate (xstat_names, len - 1);
int ret = rte_eth_xstats_get_names (xd->port_id, xstat_names, len);
- if (ret < 0 || ret > len)
+ if (ret >= 0 && ret <= len)
{
/* *INDENT-OFF* */
vec_foreach_index(i, xd->xstats)
|
Follow on to previous change
If sbrk is shrinking the heap memory size, skip memset (otherwise it would
treat the negative value as a very large positive one and clobber memory). | @@ -22,6 +22,8 @@ volatile unsigned int next_alloc = 0x500000;
void *sbrk(ptrdiff_t size)
{
void *base_ptr = (void*) __sync_fetch_and_add(&next_alloc, size);
+ if (size > 0)
memset(base_ptr, 0, size);
+
return base_ptr;
}
|
No Ticket: Redefining user defined sensor types
It was correct before. It was changed to accomodate more sensors but
there was discontinuation in the types. | @@ -68,17 +68,28 @@ typedef enum {
/* Weight Supported */
SENSOR_TYPE_WEIGHT = (1 << 11),
/* Linear Accelerometer (Without Gravity) */
- SENSOR_TYPE_LINEAR_ACCEL = (1 << 26),
+ SENSOR_TYPE_LINEAR_ACCEL = (1 << 12),
/* Gravity Sensor */
- SENSOR_TYPE_GRAVITY = (1 << 27),
+ SENSOR_TYPE_GRAVITY = (1 << 13),
/* Euler Orien... |
Fix error compiling on Win32 with STDCALL=ON | @@ -687,7 +687,11 @@ void _libssh2_aes_ctr_increment(unsigned char *ctr,
}
}
+#ifdef WIN32
+static void * (__cdecl * const volatile memset_libssh)(void *, int, size_t) = memset;
+#else
static void * (* const volatile memset_libssh)(void *, int, size_t) = memset;
+#endif
void _libssh2_explicit_zero(void *buf, size_t siz... |
change a value to initial on mutex unlock
same purpose as commit | @@ -158,7 +158,7 @@ int pthread_mutex_unlock(FAR pthread_mutex_t *mutex)
else {
/* Nullify the pid and lock count then post the semaphore */
- mutex->pid = 0;
+ mutex->pid = -1;
#ifdef CONFIG_MUTEX_TYPES
mutex->nlocks = 0;
#endif
|
Add cert_sig_algs into offered list | @@ -151,7 +151,8 @@ class OpenSSLServ(TLSProgram):
ret += ["-ciphersuites {ciphersuites}".format(ciphersuites=ciphersuites)]
if self._sig_algs:
- signature_algorithms = ':'.join(self._sig_algs)
+ signature_algorithms = set(self._sig_algs + self._cert_sig_algs)
+ signature_algorithms = ':'.join(signature_algorithms)
ret... |
rename sceIdStorageIsReadOnly -> vshIdStorageIsReadOnly | @@ -19,7 +19,7 @@ int _vshSblAimgrGetConsoleId(char CID[32]);
int vshIdStorageIsDirty(void);
int vshIdStorageIsFormatted(void);
-int sceIdStorageIsReadOnly(void);
+int vshIdStorageIsReadOnly(void);
int vshSblAimgrIsCEX(void);
int vshSblAimgrIsDEX(void);
|
Fix o: prefix | @@ -296,7 +296,7 @@ namespace ARIASDK_NS_BEGIN {
{
record.name = "NotSpecified";
}
- record.iKey = "O:" + (m_tenantToken).substr(0, (m_tenantToken).find('-'));
+ record.iKey = "o:" + (m_tenantToken).substr(0, (m_tenantToken).find('-'));
// TODO: [MG] - optimize this code
bool result = true;
|
kernel/pthread: use rtcb->pid instead of calling getpid()
It already gets rtcb through this_task() so that it does not
need to call getpid for pid value.
Let's get it directly from rtcb structure. | @@ -138,7 +138,7 @@ int pthread_join_internal(pthread_t thread, FAR pthread_addr_t *pexit_value, boo
* ourself.
*/
- if ((pid_t)thread == getpid()) {
+ if ((pid_t)thread == rtcb->pid) {
return EDEADLK;
}
|
docs: disable broken exports entries added automatically by xCAT | @@ -12,7 +12,12 @@ example configuration.
\begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true]
# Add NFS client mounts of /home and /opt/ohpc/pub to base image
[sms](*\#*) echo "${sms_ip}:/home /home nfs nfsvers=3,nodev,nosuid 0 0" >> $CHROOT/etc/fstab
-[sms](*\#*) echo "${sms_ip}:/opt/ohpc/pub /... |
hsa: fix error message
Fixes a minor issue that causes printing an error message when there is no error.
Type: fix | @@ -265,11 +265,11 @@ echo_segment_lookup (u64 segment_handle)
clib_spinlock_lock (&em->segment_handles_lock);
segment_idxp = hash_get (em->shared_segment_handles, segment_handle);
clib_spinlock_unlock (&em->segment_handles_lock);
- if (!segment_idxp)
- return ~0;
+ if (segment_idxp)
+ return ((u32) *segment_idxp);
ECH... |
[mechanics] update after merge between mechanics 2D and Rolling Friction | @@ -1920,8 +1920,11 @@ void SiconosBulletCollisionManager::updateInteractions(SP::Simulation simulation
else if (nslaw && nslaw->size() == 5)
{
- SP::Bullet5DR rel(makeBullet5DR(pairA->ds, pairA->sshape,
- pairB->ds, pairB->sshape,
+ SP::RigidBodyDS rbdsA = std11::static_pointer_cast<RigidBodyDS>(pairA->ds);
+ SP::Rigi... |
fix the error return | @@ -71,7 +71,7 @@ FILEHANDLE _sys_open(const char *name, int openmode)
#ifndef DFS_USING_POSIX
LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS);
- return 0; /* error */
+ return -1; /* error */
#else
/* Correct openmode from fopen to open */
if (openmode & OPEN_PLUS)
@@ -101,7 +101,7 @@ FILEHANDLE _sys_open(const char *n... |
[awm2] Draw a frame on every message | @@ -149,10 +149,7 @@ pub fn main() {
}
}
};
- if consumed {
- continue;
- }
-
+ if !consumed {
// Unknown sender - probably a client wanting to interact with the window manager
match event {
// Mouse driver events
@@ -166,18 +163,20 @@ pub fn main() {
desktop.handle_window_requested_redraw(msg_unparsed.source());
}
Awm... |
[hsa] allow offsets in block copy | @@ -909,9 +909,10 @@ pocl_hsa_copy (void *data,
{
void *__restrict__ dst_ptr = dst_mem_id->mem_ptr;
void *__restrict__ src_ptr = src_mem_id->mem_ptr;
- assert(src_offset == 0);
- assert(dst_offset == 0);
- HSA_CHECK (hsa_memory_copy (dst_ptr, src_ptr, size));
+ if ((src_ptr + src_offset) == (dst_ptr + dst_offset))
+ re... |
make update for SSL_new_session_ticket | @@ -513,3 +513,4 @@ SSL_CTX_load_verify_dir ? 3_0_0 EXIST::FUNCTION:
SSL_CTX_load_verify_store ? 3_0_0 EXIST::FUNCTION:
SSL_CTX_set_tlsext_ticket_key_evp_cb ? 3_0_0 EXIST::FUNCTION:
SSL_CTX_new_with_libctx ? 3_0_0 EXIST::FUNCTION:
+SSL_new_session_ticket ? 3_0_0 EXIST::FUNCTION:
|
misc: fix base repo_path in mk_dist | @@ -25,7 +25,7 @@ if(defined $ENV{'OverWritePrevoius'} ) {
my @arches = ('aarch64', 'x86_64');
my @distros = ('Leap_15','CentOS_8');
-my $base_repo_path = "/repos/OpenHPC/2";
+my $base_repo_path = "/repos/OpenHPC";
my $dest_dir = "/repos/dist/$release";
my $tmp_path = "/repos/tmp/dist";
|
linux-raspberrypi_dev: Use AUTOREV
The development branches of linux-raspberrypi are rebased frequently. To
avoid fetch failures caused by out-of-date git hashes we need to use
AUTOREV.
LINUX_VERSION may need to be overridden in local.conf to match the
upstream version. | @@ -2,7 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.9:"
LINUX_VERSION ?= "4.10.0-rc8"
-SRCREV = "9aa91f43583fdb07306f962e6ee6797fba1cc62d"
+SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.10.y \
"
require linux-raspberrypi.inc
|
Fix wrong ESP device detection | @@ -833,11 +833,11 @@ lwespi_parse_received(lwesp_recv_t* rcv) {
esp.m.device = LWESP_DEVICE_ESP8266;
#endif /* LWESP_CFG_ESP8266 */
#if LWESP_CFG_ESP32
- } else if (strstr(rcv->data, "- ESP32 -") != NULL || strstr(rcv->data, "ESP32")) {
+ } else if (strstr(rcv->data, "- ESP32 -") != NULL) {
esp.m.device = LWESP_DEVICE... |
Update Mac path | @@ -126,7 +126,7 @@ pipeline {
stage('Test') {
steps {
sh '''
- export PATH=$PATH:/usr/local/bin
+ export PATH=/usr/local/bin:$PATH
python3 ./Test/astc_test_image.py --test-set Small --encoder=sse2
'''
//perfReport(sourceDataFiles:'TestOutput/results.xml')
|
Fix: testing for mpu wrapers to be equal to 1 | /* This file redefines API functions to be called through a wrapper macro, but
* only for ports that are using the MPU. */
-#ifdef portUSING_MPU_WRAPPERS
+#if ( portUSING_MPU_WRAPPERS == 1 )
/* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is
* included from queue.c or task.c to prevent it from hav... |
Make functional the external lib with googletest, tested nodejs 8.12.0 and working properly. | @@ -30,27 +30,35 @@ ExternalProject_Add(googletest
-Dgtest_disable_pthreads=${GTEST_DISABLE_PTHREADS}
-Dgtest_force_shared_crt=ON
-Dgtest_hide_internal_symbols=OFF
+ -DINSTALL_GTEST=OFF
+ -DBUILD_GMOCK=ON
PREFIX "${CMAKE_CURRENT_BINARY_DIR}"
UPDATE_COMMAND "" # Disable update step
INSTALL_COMMAND "" # Disable install s... |
Fix configuration when RSA signature is used
This defines the correct "mbedtls" config files in both ECDSA256 and RSA
modes. | #include "os/os_heap.h"
-#if !defined(CONFIG_MBEDTLS) && defined(MCUBOOT_USE_MBED_TLS)
+#ifdef MCUBOOT_USE_MBED_TLS
+#define MBEDTLS_CONFIG_FILE CONFIG_MBEDTLS_CFG_FILE
-#define MBEDTLS_CONFIG_FILE MCUBOOT_MBEDTLS_CFG_FILE
#include <mbedtls/platform.h>
#include <mbedtls/memory_buffer_alloc.h>
@@ -45,6 +45,7 @@ void os_... |
kernel: print rw, dirty and accessed bits when dumping page tables. | @@ -484,7 +484,9 @@ void paging_dump_tables(struct dcb *dispatcher)
if (pt->huge.always1) {
// is huge page mapping
genpaddr_t paddr = (genpaddr_t)pt->huge.base_addr << HUGE_PAGE_BITS;
- printf("%d.%d: 0x%"PRIxGENPADDR"\n", pdpt_index, pdir_index, paddr);
+ printf("%d.%d: 0x%"PRIxGENPADDR" (%d %d %d)\n", pdpt_index,
+ ... |
Toggle connections from brush toolbar | @@ -12,7 +12,7 @@ import {
getMaxSceneBottom,
getScenesLookup
} from "../../reducers/entitiesReducer";
-import { MIDDLE_MOUSE } from "../../consts";
+import { MIDDLE_MOUSE, TOOL_COLORS, TOOL_COLLISIONS, TOOL_ERASER } from "../../consts";
import { SceneShape } from "../../reducers/stateShape";
class World extends Compon... |
Add minor features to debugger html client
JerryScript-DCO-1.0-Signed-off-by: Levente Orban | @@ -7,26 +7,33 @@ JerryScript HTML (WebSocket) Debugger Client
</title>
<style>
body {
+ background-color: #feffd6;
text-align: center;
}
-textarea {
- margin-bottom: 30px;
-}
+
input {
margin-top: 10px;
- width: 657px;
+ width: 650px;
+}
+
+textarea {
+ width: 750px;
+ margin-top: 30px;
+ resize: none;
}
</style>
</he... |
CRASH: reading very large GRIB1 message | @@ -107,14 +107,15 @@ static int read_GRIB(reader* r)
size_t sec3len = 0;
size_t sec4len = 0;
unsigned long flags;
- size_t buflen=16368;
+ size_t buflen=32768; /* See ECC-515: was 16368 */
grib_context* c;
grib_buffer* buf;
/*TODO proper context*/
c=grib_context_get_default();
tmp=(unsigned char*)malloc(buflen);
- Ass... |
Win32/RhoSim: try enabling Rho::Config | @@ -78,7 +78,7 @@ extern "C" void Init_CoreAPI_Extension()
Init_Timer_extension();
#endif
-#if defined(OS_ANDROID) || defined(OS_UWP) || defined(OS_WINCE) || defined(OS_SAILFISH) || defined(OS_LINUX) || (defined(OS_MACOSX) && !defined(RHODES_EMULATOR))
+#if defined(OS_ANDROID) || defined(OS_UWP) || defined(OS_WINCE) ||... |
docs: update logic for parallel libs with optional fabric | [sms](*\#*) (*\install*) ohpc-gnu7-openmpi3-parallel-libs
\end{lstlisting}
% ohpc_indent 0
-% ohpc_command elif [[ ${enable_ib} -eq 1 ]];then
+% ohpc_command fi
+% ohpc_command if [[ ${enable_ib} -eq 1 ]];then
% ohpc_indent 5
% ohpc_command (*\install*) ohpc-gnu7-mvapich2-parallel-libs
% ohpc_indent 0
-% ohpc_command e... |
Fix type mismatch in test numbers. | @@ -463,8 +463,8 @@ int main(int argc, char** argv)
int cnx_stress_nb_cnx = 0;
int cnx_ddos_packets = 0;
int cnx_ddos_interval = 0;
- int first_test = 0;
- int last_test = 10000;
+ size_t first_test = 0;
+ size_t last_test = 10000;
char const* cnx_ddos_dir = NULL;
@@ -507,9 +507,17 @@ int main(int argc, char** argv)
if... |
groups: exclude group metadata from channels list | @@ -14,14 +14,22 @@ export class GroupDetail extends Component {
props.associations[groupPath] : {};
- let isEmpty = Object.keys(channelsForGroup).length === 0;
+ let isEmpty = (Object.keys(channelsForGroup).length === 0) ||
+ ((Object.keys(channelsForGroup).length === 1) &&
+ (Object.keys(channelsForGroup)[0].includes... |
Fixed missing wifi module name. | @@ -144,7 +144,7 @@ return {
wifi.sta.config { ssid = ssid, pwd = pwd, save = false }
end
tmr.alarm(0, 500, tmr.ALARM_AUTO, function()
- if (sta.status() == wifi.STA_GOTIP) then
+ if (wifi.sta.status() == wifi.STA_GOTIP) then
tmr.unregister(0)
print("Welcome to NodeMCU world", node.heap(), wifi.sta.getip())
net.createS... |
max7456: stop system detection once a valid signal was found.
seems its to expensive when rendering follows. bummer. maybe one could run it while no rendering is in progress? | @@ -193,6 +193,10 @@ uint8_t max7456_clear_async() {
// function to detect and correct ntsc/pal mode or mismatch
// returns the current system
osd_system_t max7456_check_system() {
+ if (last_osd_system > OSD_SYS_NONE) {
+ return last_osd_system;
+ }
+
const osd_system_t sys = max7456_current_system();
switch (sys) {
|
media: Add doxygen comment of read API
Add comment of FileInputDataSource::read | @@ -95,7 +95,14 @@ public:
* @since TizenRT v2.0 PRE
*/
bool close() override;
-
+ /**
+ * @brief Read the file
+ * @details @b #include <media/FileInputDataSource.h>
+ * param[in] buf pointer to a buffer
+ * param[in] size size to be read
+ * @return The number of elements read
+ * @since TizenRT v2.0 PRE
+ */
ssize_t... |
also accept input of 16800 pot file line | @@ -93,10 +93,12 @@ return len;
static void get16800info(const char *ouiname, char *hash16800line)
{
int len;
-int l;
+int l, l1;
FILE* fhoui;
char *vendorptr;
char *essidptr;
+char *passwdptr;
+
unsigned long long int mac;
unsigned long long int oui;
unsigned long long int vendoroui;
@@ -109,13 +111,23 @@ oui = mac >>... |
set ohpc_mpi_dependent | # scipy build that is dependent on compiler toolchain
%define ohpc_compiler_dependent 1
+%define ohpc_mpi_dependent 1
%include %{_sourcedir}/OHPC_macros
%global gnu_family gnu7
|
sysrepo BUGFIX signed mode_t cast | @@ -1403,7 +1403,7 @@ _sr_set_module_access(const char *module_name, sr_mod_t *shm_mod, const char *ow
time_t from_ts, to_ts;
char *path = NULL;
- assert(module_name && shm_mod && (owner || group || ((int)perm != -1)));
+ assert(module_name && shm_mod && (owner || group || (perm != (mode_t)(-1))));
/* get startup file ... |
vcs psp: radar fixes | @@ -609,6 +609,7 @@ int OnModuleStart() {
uintptr_t ptr_170DD8 = pattern.get(0, "25 20 20 02 06 06 00 46 ? ? ? ? 25 20 20 02", -4); // count = 2
uintptr_t ptr_170FF4 = pattern.get(1, "25 20 20 02 06 06 00 46 ? ? ? ? 25 20 20 02", -4); // count = 2
uintptr_t ptr_9804 = pattern.get(0, "00 78 85 44 80 63 0F 46", -4);
+ ui... |
addaptive cursor and additional triggering options | @@ -2043,15 +2043,19 @@ dragmouse(const Arg *arg)
isactive = 0;
focus(tempc);
restack(selmon);
+ if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
+ None, cursor[CurClick]->cursor, CurrentTime) != GrabSuccess)
+ return;
+
} else {
+ if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, ... |
netkvm: cosmetic changes in protocol INF file | -;-------------------------------------------------------------------------
-; VIOPROT.INF -- VirtIO NetKVM Protocol Driver
-;
-; Copyright (c) 2020 Oracle and/or its affiliates.
-;-------------------------------------------------------------------------
+;-----------------------------------
+;INX_COPYRIGHT_1
+;INX_COP... |
Yan LR: Add missing tag to ReadMe | - infos/provides = storage/yaml
- infos/recommends =
- infos/placements = getstorage setstorage
-- infos/status = maintained preview experimental unfinished concept discouraged nodoc
+- infos/status = maintained unittest preview experimental unfinished nodoc concept discouraged
- infos/metadata =
- infos/description = ... |
spv: ignore input variables missing location decoration; | @@ -291,7 +291,7 @@ static spv_result spv_parse_variable(spv_context* spv, const uint32_t* op, spv_i
uint32_t location = spv->cache[variableId].input.location;
if (location == 0xff) {
- return SPV_INVALID;
+ return SPV_OK;
} else if (location > 31) {
return SPV_LOCATION_TOO_BIG;
} else {
|
VCL: Fix type in trace output. | @@ -4838,7 +4838,7 @@ vppcom_session_attr (uint32_t session_index, uint32_t op,
/* VPP-TBD */
session->rcvbuf_size = *(u32 *) buffer;
if (VPPCOM_DEBUG > 2)
- clib_warning ("VCL<%d>: VPPCOM_ATTR_SET_TX_FIFO_LEN: %u (0x%x), "
+ clib_warning ("VCL<%d>: VPPCOM_ATTR_SET_RX_FIFO_LEN: %u (0x%x), "
"buflen %d, #VPP-TBD#", getp... |
zero-pad date string output.
2019/ 5/ 9 21:18:01:710 notice -> 2019/05/09 21:18:01:710 notice | @@ -812,11 +812,11 @@ u8 * format_timeval (u8 * s, va_list * args)
break;
case 'm':
what = tm->tm_mon + 1;
- what_fmt = "%2d";
+ what_fmt = "%02d";
break;
case 'd':
what = tm->tm_mday;
- what_fmt = "%2d";
+ what_fmt = "%02d";
break;
case 'H':
what = tm->tm_hour;
|
source $HOME/.wasienv/wasienv.sh | @@ -92,7 +92,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Install wasienv
- run: curl https://raw.githubusercontent.com/wasienv/wasienv/master/install.sh | sh
+ run: |
+ curl https://raw.githubusercontent.com/wasienv/wasienv/master/install.sh | sh
+ source $HOME/.wasienv/wasienv.sh
- name: Run CMake
env:
CC: w... |
KDB Value: Fix minor spelling mistakes | @@ -142,7 +142,7 @@ public:
/**
* @brief Needed to put a ValueObserver in a map
*
- * @return Comparision result
+ * @return Comparison result
*/
inline bool operator< (ValueObserver const & lhs, ValueObserver const & rhs)
{
@@ -175,7 +175,7 @@ struct Command
public:
typedef std::pair<std::string, std::string> Pair;
/*... |
Fix typos in the help banner | @@ -2947,12 +2947,12 @@ printf("%s %s (C) %s ZeroBeat\n"
"-E <digit> : EAPOL timeout\n"
" default: 100000 = 1 second\n"
" value depends on channel assignment\n"
- "-D <digit> : deauthentication intervall\n"
+ "-D <digit> : deauthentication interval\n"
" default: 20 (every 20 beacons)\n"
- " the target beacon intervall ... |
util/update_release_branch: Update footer to force CQ builds
The previous footer no longer works for forcing a full CQ run. See
for details.
BRANCH=none
TEST=none | @@ -75,7 +75,7 @@ BRANCH=None
{BUG_FIELD}
TEST=`make -j buildall`
-Cq-Include-Trybots: chromeos/cq:cq-orchestrator
+Force-Relevant-Builds: all
"""
# Wrap the commands and bug field such that we don't exceed 72 cols.
relevant_commits_cmd = textwrap.fill(relevant_commits_cmd, width=72)
|
hark-group-hook: fix path in +on-watch | (on-watch:def path)
:_ this
=; =cage
- [%give %fact ~[/updates] cage]~
+ [%give %fact ~ cage]~
:- %hark-group-hook-update
!> ^- update:hook
[%initial watching]
|
Improve code in CheckValidCLRImage | @@ -39,10 +39,8 @@ bool CheckValidCLRImage(uint32_t address)
// 1st check: the flash content pointed by the address can't be all 0's neither all F's
// meaning that the Flash is neither 'all burnt' or erased
-
- // the stack pointer is at the 1st position of vectors_t
- if(nanoCLRVectorTable->init_stack == (uint32_t*)0... |
Remove batch interface from scenecollection1 | @@ -717,6 +717,8 @@ register_resources(void)
PRINT("Register Collection with local path \"/scenecollection1\"\n");
res_scenecol1 =
oc_new_collection("Scene Collection 1", "/scenecollection1", 1, 0);
+ // Remove batch from the set of supported interafaces
+ res_scenecol1->interfaces = OC_IF_BASELINE | OC_IF_LL;
oc_resou... |
BugID:17920924:add support of fd_mgmt 1 | #include "ramfs_api.h"
#include "ramfs_adapt.h"
#include "ramfs_types.h"
+#include "ulog/ulog.h"
#define MAX_RAMFS_FILE_NAME_BYTES 32
@@ -363,6 +364,13 @@ static int ramfs_vfs_rmdir(vfs_file_t *fp, const char *path)
return ramfs_rmdir(path);
}
+static int ramfs_vfs_sync(vfs_file_t *fp)
+{
+ LOGI(TAG, "sync is running !... |
Docs: Revert _STA value overriding
Method objects cannot be redefined without operating system support.
When EC _STA method is present it is not possible to write anything
to it without invoking undefined behaviour. | @@ -52,22 +52,6 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "SsdtEC", 0x00001000)
}
**/
- /*
- * Uncomment the following to disable EC if the STA method exists.
- */
-
- /**
- External (_SB_.PCI0.LPCB.EC0_._STA, UnknownObj)
-
- Scope (\)
- {
- If (_OSI ("Darwin"))
- {
- \_SB.PCI0.LPCB.EC0._STA = Zero
- }
- }
- **/
-
Sco... |
Travis: Specify OpenSSL path for macOS
Before this change plugins that depend on OpenSSL would not be included
on macOS 10.12. | @@ -34,7 +34,7 @@ before_install:
brew install dbus;
brew install qt5;
brew install discount;
- brew install botan libgcrypt;
+ brew install openssl botan libgcrypt;
brew install libgit2;
brew install xerces-c;
export Qt5_DIR=/usr/local/opt/qt5;
@@ -58,6 +58,7 @@ before_script:
CMAKE_OPT+=("-DPYTHON_INCLUDE_DIR:PATH=$(... |
FIB memory leak during recursive loop detection | @@ -1204,6 +1204,8 @@ fib_path_list_recursive_loop_detect (fib_node_index_t path_list_index,
is_looped = fib_path_recursive_loop_detect(*path_index, copy_ptr);
list_looped += is_looped;
+
+ vec_free(copy);
}
FIB_PATH_LIST_DBG(path_list, "loop-detect: eval:%d", eval);
|
Decouple TransmitProfiles from HAVE_MAT_JSON | #ifdef HAVE_MAT_JSONHPP
#include "json.hpp"
+#endif
+
#include "utils/Utils.hpp"
#include <mutex>
@@ -173,6 +175,7 @@ namespace ARIASDK_NS_BEGIN {
/// <param name="profiles_json"></param>
/// <param name="profiles"></param>
/// <returns></returns>
+#ifdef HAVE_MAT_JSONHPP
size_t TransmitProfiles::parse(const std::strin... |
Update README.rst
Add Windows path note, in preference from adding exes to system locations | @@ -30,7 +30,11 @@ Windows builds are available in the releases page on GitHub:
https://github.com/rednex/rgbds/releases
-Copy the ``.exe`` files to ``C:\Windows\`` or similar.
+Extract the zip and then add the executable directory to the path. For example:
+
+::
+
+ path %PATH%;C:\Programs\rgbds-0.3.8-win64\win64
If y... |
test(ethereum): Add 001CreateWallet_0010CreateSixWallet | @@ -272,6 +272,42 @@ START_TEST(test_001CreateWallet_0009CreateWalletWithInternalGeneration)
}
END_TEST
+START_TEST(test_001CreateWallet_0010CreateSixWallet)
+{
+ BSINT32 rtnVal;
+ BoatEthWalletConfig wallet = get_ethereum_wallet_settings();
+ extern BoatIotSdkContext g_boat_iot_sdk_context;
+ wallet.prikeyCtx_config.p... |
Fix typos in new test file. | @@ -47,7 +47,8 @@ VERSION 2.0
EXPECT document-password-supported IN-GROUP printer-attributes-tag OF-TYPE integer(0:1023) COUNT 1 IF-DEFINED SUPPORTS_PDF
- EXPECT identify-actions-default IN-GROUP printer-attributes-tag OF-TYPE keyword WITH-ALL-VALUES-FROM identify-actions-supported IF-DEFINED SUPPORTS_IDENTIFY_PRINTER
... |
groups: add slight background overlay to channel tiles | @@ -82,17 +82,27 @@ export class GroupDetail extends Component {
let link = `/~${app}/join${channelPath}`
app = app.charAt(0).toUpperCase() + app.slice(1);
+ let overlay = {
+ r: parseInt(color.slice(0, 2), 16),
+ g: parseInt(color.slice(2, 4), 16),
+ b: parseInt(color.slice(4, 6), 16)
+ };
+
let tile = (app === "Unkno... |
NetworkTools: Fix tracert text capitalization | @@ -725,11 +725,11 @@ INT_PTR CALLBACK TracertDlgProc(
EnableWindow(GetDlgItem(hwndDlg, IDC_REFRESH), TRUE);
Static_SetText(context->WindowHandle, PhaFormatString(
- L"Tracing %s... Complete",
+ L"Tracing %s... complete",
context->IpAddressString
)->Buffer);
Static_SetText(GetDlgItem(hwndDlg, IDC_STATUS), PhaFormatStri... |
Remove TCOD_list_int_t type. | * A lightweight and generic container that provides array, list, and stack
* paradigms.
*/
-typedef struct TCOD_List {
+struct TCOD_List {
/**
* A pointer to an array of void pointers.
*/
@@ -44,7 +44,7 @@ typedef struct TCOD_List {
int fillSize;
/** The maximum number of items that `array` can currently hold. */
int a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.