message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Use correct recursive mutex for env and regular mutex for tz | @@ -375,9 +375,9 @@ void esp_newlib_locks_init(void)
extern _lock_t __sinit_lock;
__sinit_lock = (_lock_t) &s_common_recursive_mutex;
extern _lock_t __env_lock_object;
- __env_lock_object = (_lock_t) &s_common_mutex;
+ __env_lock_object = (_lock_t) &s_common_recursive_mutex;
extern _lock_t __tz_lock_object;
- __tz_lock... |
Solved typo in README. | @@ -484,7 +484,7 @@ Usually the developer is the same who does the fork, but it may be possible that
Follow these steps to build and install **METACALL** manually.
``` sh
-$ git clone https://github.com/metacall/core
+$ git clone https://github.com/metacall/core.git
$ cd metacall
$ mkdir build
$ cd build
|
motorcontrol: add position integral control | @@ -471,7 +471,9 @@ time_run_status_t time_run_status[] = {
// Persistent PID related variables for each motor
count_t count_err_integral[PBDRV_CONFIG_NUM_MOTOR_CONTROLLER];
+count_t count_err_prev[PBDRV_CONFIG_NUM_MOTOR_CONTROLLER];
ustime_t maneuver_started[PBDRV_CONFIG_NUM_MOTOR_CONTROLLER];
+ustime_t time_prev[PBDR... |
libhfuzz: make write function taking const buf | @@ -40,7 +40,7 @@ static inline bool readFromFdAll(int fd, uint8_t * buf, size_t len)
return (readFromFd(fd, buf, len) == (ssize_t) len);
}
-static bool writeToFd(int fd, uint8_t * buf, size_t len)
+static bool writeToFd(int fd, const uint8_t * buf, size_t len)
{
size_t writtenSz = 0;
while (writtenSz < len) {
@@ -66,8... |
add section on where to find verilog | @@ -88,6 +88,9 @@ For example:
Note: You need to specify all the make variables once again to match what the build gave to run the assembly tests or the benchmarks or the binaries if you are using the make option.
+Finally, in the ``generated-src/<...>-<package>-<config>/`` directory resides all of the collateral and V... |
admin/nagios: oddball init script for sles+arm | @@ -291,6 +291,9 @@ exit 0
%{_unitdir}/%{pname}.service
%ifarch aarch64
/lib/systemd/system/nagios.service
+%if 0%{?sles_version} || 0%{?suse_version}
+/etc/init.d/nagios
+%endif
%else
/etc/init.d/nagios
%endif
|
SOVERSION bump to version 5.5.14 | @@ -45,7 +45,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 5)
set(SYSREPO_MINOR_SOVERSION 5)
-set(SYSREPO_MICRO_SOVERSION 13)
+set(SYSREPO_MICRO_S... |
feat: list_to_json() should work | @@ -1045,18 +1045,10 @@ to_json(char *str, size_t len, void *p_field)
/* @todo this needs to be tested */
int
-list_to_json(char *str, size_t len, void *p_field)
+list_to_json(char *str, size_t len, void *p_fields)
{
- dati **fields = *(dati ***)p_field;
- size_t size = ntl_length((void**)fields);
- if (0 == size) retu... |
Fix incorrect struct type in list initialization.
This looks like a copy-paste error.
The code is only run during development so this is not a live issue.
Found with -fsanitize=address. | @@ -506,7 +506,7 @@ bldCfgParseDependReconcile(const BldCfgOptionDependRaw *const optDependRaw, cons
static List *
bldCfgParseOptionDeprecate(Yaml *const yaml)
{
- List *result = lstNewP(sizeof(BldCfgOptionCommandRaw), .comparator = lstComparatorStr);
+ List *result = lstNewP(sizeof(BldCfgOptionDeprecateRaw), .comparat... |
Avoid partial header reads
Use net_recv_all() to avoid partial reads for the "meta" header (this
would break the whole stream). | #include <libavformat/avformat.h>
#include <libavutil/time.h>
+#include <SDL2/SDL_assert.h>
#include <SDL2/SDL_events.h>
#include <SDL2/SDL_mutex.h>
#include <SDL2/SDL_thread.h>
@@ -30,11 +31,13 @@ static int read_packet(void *opaque, uint8_t *buf, int buf_size) {
// the previous PTS read is now for the current frame
d... |
voxel: change USB_C0_DP_HPD GPIO define
define USB_C0_DP_HPD to GPIO60
BRANCH=none
TEST=make buildall | @@ -140,7 +140,7 @@ GPIO(EC_I2C7_EEPROM_SDA, PIN(B, 2), GPIO_INPUT)
GPIO(EC_BATT_PRES_ODL, PIN(E, 1), GPIO_INPUT)
/* Physical HPD pins are not needed on EC as these are configured by PMC */
-GPIO(USB_C0_DP_HPD, PIN(F, 3), GPIO_INPUT)
+GPIO(USB_C0_DP_HPD, PIN(6, 0), GPIO_INPUT)
GPIO(USB_C1_DP_HPD, PIN(7, 0), GPIO_INPUT)... |
Configurations/10-main.conf: add back /WX to VC-WIN32.
We had /WX (treat warnings as errors) in VC-WIN32 for long time. At
some point it was somehow omitted. It's argued that it allows to
keep better focus on new code, which motivates the comeback... | @@ -1281,7 +1281,7 @@ sub vms_info {
inherit_from => [ "BASE_Windows" ],
template => 1,
cc => "cl",
- cflags => "-W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE",
+ cflags => "-W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 -DWIN32_LEAN_AND_MEAN -DL_... |
Use long command-line options
In addition to the short form (e.g. "-p"), add the long form ("--port"). | #include "scrcpy.h"
+#include <getopt.h>
#include <unistd.h>
#include <libavformat/avformat.h>
#include <SDL2/SDL.h>
@@ -12,9 +13,14 @@ struct args {
Uint16 maximum_size;
};
-int parse_args(struct args *args, int argc, char *argv[]) {
+static int parse_args(struct args *args, int argc, char *argv[]) {
+ static const st... |
Try to help debugging failure on MacOS | @@ -1205,8 +1205,18 @@ static int create_ssdp_sock_v6(
__FILE__,
__LINE__,
"Error in setsockopt() IPV6_JOIN_GROUP (join multicast "
- "group): %s\n",
- errorBuffer);
+ "group): %s.\n"
+ "SSDP_IPV6_LINKLOCAL = %s,\n"
+ "ipv6mr_interface = %u,\n"
+ "ipv6mr_multiaddr[0,1,2,3] = "
+ "0x%08X:0x%08X:0x%08X:0x%08X\n",
+ error... |
Switch deprecation method for MD4 | @@ -46,13 +46,14 @@ typedef struct MD4state_st {
unsigned int num;
} MD4_CTX;
# endif
-
-DEPRECATEDIN_3_0(int MD4_Init(MD4_CTX *c))
-DEPRECATEDIN_3_0(int MD4_Update(MD4_CTX *c, const void *data, size_t len))
-DEPRECATEDIN_3_0(int MD4_Final(unsigned char *md, MD4_CTX *c))
-DEPRECATEDIN_3_0(unsigned char *MD4(const unsig... |
fix GITHUB_REPOSITORY for https clones | @@ -32,7 +32,7 @@ $(shell echo -n $(VERSION) > cli/VERSION)
# github repostiory name; i.e. criblio/appscope
# set automatically in CI so don't overwrite that
-GITHUB_REPOSITORY ?= $(shell git config --get remote.origin.url | cut -d: -f2 | sed 's/\.git$$//')
+GITHUB_REPOSITORY ?= $(shell git config --get remote.origin.u... |
nat lb mapping command existed array out of bounds(VPP-979) | @@ -726,7 +726,8 @@ int nat44_add_del_lb_static_mapping (ip4_address_t e_addr, u16 e_port,
kv.key = m_key.as_u64;
kv.value = m - sm->static_mappings;
clib_bihash_add_del_8_8(&sm->static_mapping_by_local, &kv, 1);
- locals[i].prefix = locals[i - 1].prefix + locals[i].probability;
+ locals[i].prefix = (i == 0) ? locals[i... |
fixed error in oversized_flags test | @@ -451,15 +451,16 @@ test_mongoc_platform_truncate (int drop)
{
mongoc_handshake_t *md;
bson_t doc = BSON_INITIALIZER;
+ bson_iter_t iter;
char *undropped;
+ char *expected;
char big_string[HANDSHAKE_MAX_SIZE];
int handshake_remaining_space;
/* Need to know how much space storing fields in our BSON will take
* so that... |
add nopswdcap flag to Jenkins images | @@ -205,6 +205,6 @@ parallel "Build Ubuntu 16.04" : { buildLinuxManagedImage("ubuntu",
"Build RHEL 8" : { buildLinuxManagedImage("rhel", "8") },
"Build Windows 2016 SGX1" : { buildWindowsManagedImage("win2016", "ws2016-SGX", "SGX1") },
"Build Windows 2016 SGX1FLC DCAP" : { buildWindowsManagedImage("win2016", "ws2016-SG... |
xpath BUGFIX prefix resolution module | @@ -3357,8 +3357,8 @@ warn_equality_value(struct lyxp_expr *exp, struct lyxp_set *set, uint16_t val_ex
type = ((struct lysc_node_leaf *)scnode)->type;
if (type->basetype != LY_TYPE_IDENT) {
- rc = type->plugin->store(set->ctx, type, value, strlen(value), LY_TYPE_OPTS_SCHEMA,
- lys_resolve_prefix, (void *)type->dflt_mod... |
sysdeps/managarm: Split IS_TTY into message | @@ -4082,37 +4082,24 @@ int sys_flock(int fd, int opts) {
int sys_isatty(int fd) {
SignalGuard sguard;
- HelAction actions[3];
- globalQueue.trim();
- managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
- req.set_request_type(managarm::posix::CntReqType::IS_TTY);
+ managarm::posix::IsTtyRequest<Mem... |
get-gcp-jwt: sot -> jot, moar vertical
Since we only have one JWT (the thing we produce is an "access token",
not a JWT), we can just call it jot. | ;< =key:rsa bind:m read-private-key
;< kid=@t bind:m (read-setting %private-key-id)
;< aud=@t bind:m (read-setting %token-uri)
-=/ sot=@t
+=/ jot=@t
%: make-jwt
key kid iss
'https://www.googleapis.com/auth/cloud-platform'
aud now.bowl
==
;< p=[access-token=@t expires-at=@da] bind:m
- (get-access-token sot aud now.bowl)... |
perf-tools/dimemas: autoload boost in modulefile | @@ -94,6 +94,9 @@ module-whatis "URL %{url}"
set version %{version}
+# Require boost
+depends-on boost
+
prepend-path PATH %{install_path}/bin
prepend-path MANPATH %{install_path}/share/man
prepend-path INCLUDE %{install_path}/include
|
rexecd: fix compile warning
rexecd.c:196:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] | @@ -176,6 +176,7 @@ int main(int argc, FAR char **argv)
memset(&addr, 0, sizeof(addr));
switch (family)
{
+ default:
case AF_INET:
((FAR struct sockaddr_in *)&addr)->sin_family = AF_INET;
((FAR struct sockaddr_in *)&addr)->sin_port = REXECD_PORT;
|
Tests: Remove unused macro | using namespace std;
using namespace kdb;
-#define BUFFER_LENGTH 4096
-
#define succeed_if(x, y) \
do \
{ \
|
doc: document disabled test | @@ -8,6 +8,8 @@ tests/shell/shell_recorder/mathcheck.esr for INI (hard-coded ni)
doc/help/kdb-get.md for INI
src/bindings/swig/ruby/tests/CMakeLists.txt disabled testruby_tools_plugindatabase.rb in commit 87d1a4f1ec19a0cf86b877e6d2eb9e1d124d96ee
+scripts/jenkins/Jenkinsfile disabled buildint openwrt packages in c0ffb72... |
Prevent overflow in unlikely seed generation
* Prevent overflow in unlikely seed generation
Fixes
* Explicitly make constant a UINT64_C | @@ -86,6 +86,9 @@ static cyclic_group_t groups[] = {{// 2^8 + 1
// Check whether an integer is coprime with (p - 1)
static int check_coprime(uint64_t check, const cyclic_group_t *group)
{
+ if (check == 0 || check == 1) {
+ return NOT_COPRIME;
+ }
for (unsigned i = 0; i < group->num_prime_factors; i++) {
if (group->pri... |
test-suite: loop mpi4py tests over python families (#606)(#627) | @@ -15,13 +15,13 @@ NODES=2
TASKS=8
ARGS=8
-module load mpi4py
+module load $python_module_prefix-mpi4py
-@test "[dev-tools/mpi4py] python hello world ($rm/$LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" {
+@test "[dev-tools/$python-mpi4py] python hello world ($rm/$LMOD_FAMILY_COMPILER/$LMOD_FAMILY_MPI)" {
if [ ! -s helloworl... |
Add documentation on platform specific checks | +Intro
+=====
+
+This directory contains a few sets of files that are used for
+configuration in diverse ways:
+
+ *.conf Target platform configurations, please read
+ 'Configurations of OpenSSL target platforms' for more
+ information.
+ *.tmpl Build file templates, please read 'Build-file
+ programming with the "unif... |
[make][flags] remove -finline, which apparently does nothing
Been carrying this flag around for years but from sleuthing around in
the compiler it seems to only exist as the opposite to -fno-inline which
has an actual effect. Only reason -finline would do anything would be to
cancel a previous -fno-inline switch. | @@ -55,7 +55,7 @@ CONFIGHEADER := $(BUILDDIR)/config.h
GLOBAL_INCLUDES := $(BUILDDIR) $(addsuffix /include,$(LKINC))
GLOBAL_OPTFLAGS ?= $(ARCH_OPTFLAGS)
-GLOBAL_COMPILEFLAGS := -g -finline -include $(CONFIGHEADER)
+GLOBAL_COMPILEFLAGS := -g -include $(CONFIGHEADER)
GLOBAL_COMPILEFLAGS += -W -Wall -Wno-multichar -Wno-un... |
fixed PMEM with SAVEID loading | @@ -2799,13 +2799,14 @@ static void tick(Console* console)
console->showGameMenu = true;
memcpy(&tic->cart, console->embed.file, sizeof(tic_cartridge));
+
+ tic_api_reset(tic);
+
setStudioMode(TIC_RUN_MODE);
console->embed.yes = false;
console->skipStart = false;
studioRomLoaded();
- tic_api_reset(tic);
-
printLine(con... |
Testing: Use the HAVE_JPEG env var to include extra files | @@ -64,6 +64,15 @@ tigge_af_ecmwf.grib2
tigge_cf_ecmwf.grib2
"
+set +u
+# Check HAVE_JPEG is defined and is equal to 1
+if [ "x$HAVE_JPEG" != x ]; then
+ if [ $HAVE_JPEG -eq 1 ]; then
+ # Include files which have messages with grid_jpeg packing
+ files="jpeg.grib2 multi.grib2 reduced_gaussian_surface_jpeg.grib2 v.grib2... |
Alternate way to add debug menu | #include "Image.h"
#include <spdlog/spdlog.h>
+#include <mhook-lib/mhook.h>
-void UnlockMenuPatch(Image* apImage)
+void HookIsFinal(void* a, uint64_t* b, char* c)
+{
+ (*b)++;
+ if (c)
+ *c = 0;
+}
+
+using TRegisterScriptFunction = void(void* a, uint64_t hash, uint64_t hash2, void* func);
+TRegisterScriptFunction* Rea... |
fix: add c++ directive to orka-utils.h | #include <stddef.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
char* orka_load_whole_file(const char filename[], size_t *len);
int orka_iso8601_to_unix_ms(char *timestamp, size_t len, void *p_data);
|
Be a bit more careful in the test of address changes at the client. | @@ -830,7 +830,7 @@ int quic_client(const char* ip_address_text, int server_port, const char * sni,
ret = picoquic_prepare_packet(cnx_client, current_time,
send_buffer, sizeof(send_buffer), &send_length, &x_to, &x_to_length, &x_from, &x_from_length);
- if (migration_started){
+ if (migration_started && force_migration ... |
Fix installation on Haiku | PREFIX?=/usr/local
-INCLUDEDIR=$(PREFIX)/include
-BINDIR=$(PREFIX)/bin
-LIBDIR=$(PREFIX)/lib
+INCLUDEDIR?=$(PREFIX)/include
+BINDIR?=$(PREFIX)/bin
+LIBDIR?=$(PREFIX)/lib
JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1)\""
CLIBS=-lm
JANET_TARGET=build/janet
JANET_LIBRARY=build/libjanet.so
JANET_STATIC_LIBRARY=... |
Setup: Fix 32bit install | @@ -31,6 +31,9 @@ BOOLEAN SetupExtractBuild(
ULONG64 currentLength = 0;
mz_zip_archive zip_archive = { 0 };
PPH_STRING extractPath = NULL;
+ SYSTEM_INFO info;
+
+ GetNativeSystemInfo(&info);
#ifdef PH_BUILD_API
ULONG resourceLength;
@@ -69,7 +72,7 @@ BOOLEAN SetupExtractBuild(
fileName = PhConvertUtf8ToUtf16(zipFileSta... |
Add missing examples into examples.cfg | @@ -76,6 +76,8 @@ test-bit@test @nonic @psa ctr=off
test-bool@test @nonic @psa ctr=off
test-checksum@test @nonic ctr=off
test-const-entries@test @nonic ctr=off
+test-const-entries-lpm@test @nonic ctr=off
+test-const-entries-ternary@test @nonic ctr=off
test-control-in-out@test @nonic ctr=off
test-default-action@test @no... |
Make server responsive for read | @@ -2272,7 +2272,13 @@ int Handler::write_streams() {
}
if (ndatalen > 0) {
- break;
+ // TODO Returning from here instead of break decreases
+ // performance, but it decreases "hidden RTT" increase because
+ // server is unable to read socket timely if it is busy to
+ // write packets here.
+ auto ep = static_cast<End... |
acl-plugin: tm: avoid hash calculation dependency on a memory store operation
A small store into a middle of a larger structure that was subsequently
loaded for calculating the bihash key was noticeably impacting the performance. | @@ -605,7 +605,15 @@ multi_acl_match_get_applied_ace_index (acl_main_t * am, int is_ip6, fa_5tuple_t
*pkey++ = *pmatch++ & *pmask++;
*pkey++ = *pmatch++ & *pmask++;
- kv_key->pkt.mask_type_index_lsb = mask_type_index;
+ /*
+ * The use of temporary variable convinces the compiler
+ * to make a u64 write, avoiding the st... |
publish: fetch notebooks on mount | @@ -41,6 +41,7 @@ export default class PublishApp extends React.Component {
this.subscription = new Subscription(this.store, this.api, channel);
this.subscription.start();
+ this.api.fetchNotebooks();
}
componentWillUnmount() {
|
graph-view: fixed issues with scrying for parent hash | ^- (unit hash:store)
?~ index ~
?~ t.index ~
+ =/ lngth=@ (dec (lent index))
+ =/ ind=index:store `(list atom)`(scag lngth `(list atom)`index)
=/ parent=node:store
%+ scry-for node:store
%+ weld
/node/(scot %p ship)/[term]
- (index-to-path t.index)
+ (index-to-path ind)
hash.post.parent
::
++ index-to-path
|
DOCS: Document OSSL_STORE_INFO_PUBKEY in doc/man3/OSSL_STORE_INFO.pod
Fixes | @@ -166,7 +166,11 @@ Key parameters.
=item OSSL_STORE_INFO_PKEY
-A private/public key of some sort.
+A keypair or just a private key (possibly with key parameters).
+
+=item OSSL_STORE_INFO_PUBKEY
+
+A public key (possibly with key parameters).
=item OSSL_STORE_INFO_CERT
|
ENCODE -> DECODE | @@ -1481,9 +1481,14 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
audio->ep_in_as_intf_num = 0;
usbd_edpt_close(rhport, audio->ep_in);
-#if !CFG_TUD_AUDIO_ENABLE_ENCODING
// Clear FIFOs, since data is no longer valid
+#if !CFG_TUD_AUDIO_ENABLE_ENCODING
tu_fifo_clear(&audio->ep_in_ff... |
Remove boomerang properties member from model struct. | @@ -2126,7 +2126,6 @@ typedef struct
int pshotno; // 7-1-2005 now every enemy can have their own "knife" projectile
int star; // 7-1-2005 now every enemy can have their own "ninja star" projectiles
int bomb; // New projectile type for exploding bombs/grenades/dynamite
- s_boomerang_props boomerang_prop;
int flash; // N... |
cr50_rma_open: fix version check
BRANCH=none
TEST=script works with a cr50 running 0.6.2 | @@ -468,13 +468,13 @@ class RMAOpen(object):
raise ValueError('%s does not have RMA support. Update to at '
'least %s' % (version, rma_support))
- def _running_version_is_older(self, comp_ver):
- """Returns True if running version is older than comp_ver."""
- comp_ver_fields = [int(field) for field in comp_ver.split('.... |
Fix Host: validation for .local hostnames. | @@ -206,7 +206,7 @@ _papplClientProcessHTTP(
client->host_port = client->system->port;
}
- ptr = strrchr(client->host_field, '.');
+ ptr = strstr(client->host_field, ".local");
if (!isdigit(client->host_field[0] & 255) && client->host_field[0] != '[' && strcmp(client->host_field, client->system->hostname) && strcmp(cli... |
Disable cpputest's build-in memory_leak_detection completely when ASAN is enabled. | @@ -29,8 +29,8 @@ if (ENABLE_ADDRESS_SANITIZER)
set(CMAKE_C_FLAGS "-DCPPUTEST_MEM_LEAK_DETECTION_DISABLED -fsanitize=address -fno-omit-frame-pointer ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "-DCPPUTEST_MEM_LEAK_DETECTION_DISABLED -fsanitize=address -fno-omit-frame-pointer ${CMAKE_CXX_FLAGS}")
else ()
- set(CMAKE_C_FLAGS ... |
espcoredump: fix error reported for blank partition | @@ -301,7 +301,10 @@ esp_err_t esp_core_dump_image_get(size_t* out_addr, size_t *out_size)
uint32_t *dw = (uint32_t *)core_data;
*out_size = *dw;
spi_flash_munmap(core_data_handle);
- if ((*out_size < sizeof(uint32_t)) || (*out_size > core_part->size)) {
+ if (*out_size == 0xFFFFFFFF) {
+ ESP_LOGD(TAG, "Blank core dump... |
Use "raycasting" for determining focus for floating windows
Floating containers and their surfaces are ordered in "raised last".
This is used to detect the topmost surface and thus the focus. | @@ -151,10 +151,10 @@ struct sway_container *container_find_child(struct sway_container *container,
return NULL;
}
-static void surface_at_view(struct sway_container *con, double lx, double ly,
+static struct sway_container *surface_at_view(struct sway_container *con, double lx, double ly,
struct wlr_surface **surface,... |
ExtendedNotifications: Improve logfile performance, Add environment string path support, Add relative path support | * file logging
*
* Copyright (C) 2010 wj32
+ * Copyright (C) 2021 dmex
*
* This file is part of Process Hacker.
*
@@ -38,14 +39,23 @@ VOID FileLogInitialization(
{
NTSTATUS status;
PPH_STRING fileName;
+ PPH_STRING directory;
fileName = PhaGetStringSetting(SETTING_NAME_LOG_FILENAME);
if (!PhIsNullOrEmptyString(fileName... |
Add dcd_edpt_iso_xfer() to dcd_template.c | */
#include "tusb_option.h"
+#include "common/tusb_fifo.h"
#if CFG_TUSB_MCU == OPT_MCU_NONE
@@ -104,6 +105,16 @@ bool dcd_edpt_xfer (uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t
return false;
}
+// Submit a transfer where is managed by FIFO, When complete dcd_event_xfer_complete() is invoked to notify th... |
Another homebridge-install log tweak | @@ -67,6 +67,10 @@ function logInstallVersion {
echo "UPDATE_VERSION_HB_LIB = $UPDATE_VERSION_HB_LIB" >> "$LOG_DIR/LOG_HOMEBRIDGE_INSTALL_$LOGFILE_DATE"
echo "UPDATE_VERSION_NPM = $UPDATE_VERSION_NPM" >> "$LOG_DIR/LOG_HOMEBRIDGE_INSTALL_$LOGFILE_DATE"
echo "UPDATE_VERSION_NODE = $UPDATE_VERSION_NODE" >> "$LOG_DIR/LOG_H... |
Fix, add Get for ScoreFunction print
Note: mandatory check (NEED_CHECK) was skipped | @@ -510,7 +510,7 @@ void NCatboostOptions::TCatBoostOptions::SetNotSpecifiedOptionsToDefaults() {
if (ObliviousTreeOptions->ScoreFunction != EScoreFunction::Correlation &&
ObliviousTreeOptions->ScoreFunction != EScoreFunction::NewtonCorrelation) {
CB_ENSURE(BoostingOptions->BoostingType == EBoostingType::Plain,
- "Scor... |
Close socket request will abort tcp write/connect
When tcp write/connect is running, close socket request will abort
it and continue to delete netconn and close tcp. Do not immediately
return after aborting tcp write/connect. Otherwise, tcp close
requeset will block and tcp write/connect will crash. | @@ -1085,12 +1085,6 @@ lwip_netconn_do_delconn(void *m)
} else
#endif /* LWIP_NETCONN_FULLDUPLEX */
{
- if (!(state != NETCONN_CONNECT || IN_NONBLOCKING_CONNECT(msg->conn))) {
- msg->err = ERR_INPROGRESS;
- NETCONN_SET_SAFE_ERR(msg->conn, ERR_INPROGRESS);
- LWIP_DEBUGF(API_MSG_DEBUG, ("netconn error:ERR_INPROGRESS\n"))... |
lv_objx_templ: create 'Add/remove functions' section | @@ -47,7 +47,7 @@ static bool lv_templ_design(lv_obj_t * templ, const area_t * mask, lv_design_mod
*-----------------*/
/**
- * Create a template objects
+ * Create a template object
* @param par pointer to an object, it will be the parent of the new template
* @param copy pointer to a template object, if not NULL then... |
Update deprecated.html
fix def name TILE_SYSTEMLENGTH | @@ -389,7 +389,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
<p><a class="anchor" id="_deprecated000052"></a> </p>
<dl>
<dt>Member <a class="el" href="vdp_8h.html#a52e41f780a406576cb0c48a63586c57b">TILE_SYSTEM_LENGHT</a> </dt>
-<dd>Use TILE_SYSTEMLENGTH instead. </dd>
+<dd>Use TILE_SYSTEM_LE... |
jenkins: do not test if file exists | @@ -1227,13 +1227,9 @@ def withPermissions(listOfFiles, perm, cl) {
echo "Entering withPermissions"
permissionsMap = [:]
listOfFiles.each {
- if(fileExists(it)) {
def permOld = getPermissions(it)
permissionsMap[it] = permOld
setPermissions(it, perm)
- } else {
- error "File $it does not exist. Can not set permissions"
... |
remove dev-time modifications to manage.c | @@ -1830,8 +1830,6 @@ u3m_boot(c3_c* dir_c)
if ( c3n == nuu_o ) {
u3j_ream();
u3n_ream();
- // TODO: remove me before PR
- u3m_reclaim();
return u3A->eve_d;
}
else {
@@ -1926,4 +1924,3 @@ u3m_pack(void)
return (u3a_open(u3R) - pre_w);
}
-
|
added min/max timestamp to status display | @@ -162,11 +162,16 @@ static long int eapolm32e3count;
static long int eapolm34e3count;
static long int eapolm34e4count;
+
static uint64_t timestampstart;
+static uint64_t timestampmin;
+static uint64_t timestampmax;
+
static uint32_t eapoltimeoutvalue;
static uint64_t ncvalue;
static int essidsvalue;
+
static int nmea... |
runtime: fix a bug where the scheduler could steal from runqueues before they were initialized | #include "defs.h"
+static pthread_barrier_t init_barrier;
+
static int runtime_init_thread(void)
{
int ret;
@@ -43,6 +45,7 @@ static void *pthread_entry(void *data)
ret = runtime_init_thread();
BUG_ON(ret);
+ pthread_barrier_wait(&init_barrier);
sched_start();
/* never reached unless things are broken */
@@ -54,18 +57,... |
Update fpgaRegisterEvent comments
Specify that flags argument will be used to represent vector ID in case
of user interrupts | @@ -83,6 +83,10 @@ fpga_result fpgaDestroyEventHandle(fpga_event_handle *event_handle);
* The event_handle points to an OS specific mechanism for event notification.
* An event_handle is associated with only a single event.
*
+ * In case of user interrupts, the flags parameter will be used to specify
+ * the vector ID.... |
Prefix function names with elektra | @@ -13,10 +13,10 @@ class CSupport(Support):
raise Exception("invalid keyname " + key)
def getfuncname(self, key):
- return "get"+self.funcname(key)
+ return "elektraGet"+self.funcname(key)
def setfuncname(self, key):
- return "set"+self.funcname(key)
+ return "elektraSet"+self.funcname(key)
def funcpretty(self, key):
... |
Trivial typo fix in README. | @@ -177,9 +177,9 @@ Issues:
opened (around 15). Specifically, I see failures to start NSH in the
windows so they come up blank. All other behaviors seem normal. Most
likely, some NxTerm resource allocation is failing silently and leaving
- things in an unusable. The board I am using has 128Mb of SDRAM so I
- can't beli... |
fix of anticipation | @@ -114,6 +114,7 @@ Decision Decision_RealizeGoal(Event *goal, long currentTime)
postcon_c->anticipation_operation_id[i] = decision.operationID;
IN_DEBUG( printf("ANTICIPATE future=%ld variance=%ld\n", bestImp.occurrenceTimeOffset,bestImp.variance); )
stampID--;
+ break;
}
}
//EMD anticipation
|
apps/nshlib/README.txt: Clarify arguments to the mkrd command. | @@ -797,8 +797,8 @@ o mkrd [-m <minor>] [-s <sector-size>] <nsectors>
Create a ramdisk consisting of <nsectors>, each of size
<sector-size> (or 512 bytes if <sector-size> is not specified.
- The ramdisk will be registered as /dev/ram<n> (if <n> is not
- specified, mkrd will attempt to register the ramdisk as
+ The ramd... |
Benchmarks: Opmphm: fix format for ssize_t | @@ -1005,7 +1005,7 @@ static void benchmarkPrintAllKeySetShapes (void)
{
printf ("%s\n", keyName (key));
}
- printf ("\n ======================== size %li ========================\n\n", ksGetSize (ks));
+ printf ("\n ======================== size %zd ========================\n\n", ksGetSize (ks));
}
ksDel (ks);
}
|
Fix warning C6287 | @@ -383,12 +383,13 @@ VOID PvPeProperties(
// EH continuation page
{
BOOLEAN has_ehcont = FALSE;
+
if (PvMappedImage.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC)
{
if (NT_SUCCESS(PhGetMappedImageLoadConfig32(&PvMappedImage, &config32)) &&
RTL_CONTAINS_FIELD(config32, config32->Size, GuardEHContinuationCount))
{
- if (config... |
CMSIS-DSP: Update to the README
Additional info about the compilation defines for FFT tables and the
Python configuration script. | @@ -119,18 +119,18 @@ Some new compilations symbols have been introduced to avoid including all the ta
If no new symbol is defined, everything will behave as usual. If ARM_DSP_CONFIG_TABLES is defined then the new symbols will be taken into account.
-Then you can select all FFT tables or all interpolation tables by def... |
cheza: Enable RTC EC/host command
BRANCH=none
TEST='rtc' command in ec console and 'ectool rtcget' in ap console
Commit-Ready: ChromeOS CL Exonerator Bot
Tested-by: Philip Chen | #define CONFIG_USBC_VCONN
#define CONFIG_USBC_VCONN_SWAP
+/* RTC */
+#define CONFIG_CMD_RTC
+#define CONFIG_HOSTCMD_RTC
+
/* Sensors */
#define CONFIG_ACCELGYRO_BMI160
#define CONFIG_ACCEL_INTERRUPTS
|
out_http: fix leak on exception (CID 183993) | @@ -251,6 +251,7 @@ struct flb_out_http *flb_http_conf_create(struct flb_output_instance *ins,
if (sentry->last_pos == len) {
/* Missing value */
flb_error("[out_http] missing header value");
+ flb_free(header);
flb_utils_split_free(split);
flb_http_conf_destroy(ctx);
return NULL;
|
VERSION bump to version 1.1.19 | @@ -44,7 +44,7 @@ set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG")
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(LIBNETCONF2_MAJOR_VERSION 1)
set(LIBNETCONF2_MINOR_VERSION 1)
-set(LIBNETCONF2_MICRO_VERSION 18)
+set(LIBNETCONF2_MICRO_VERSION 19)
set(LIBNETCONF2_VERSION ${LIB... |
[firechip] Update legacy firechip config | @@ -201,8 +201,6 @@ class FireSimCVA6Config extends Config(
//*********************************************************************************/
class FireSimMulticlockRocketConfig extends Config(
new chipyard.config.WithTileFrequency(6400.0) ++ //lol
- new WithDefaultFireSimBridges ++
- new WithDefaultMemModel ++
- ne... |
Include deprecated SYS_F_xxx codes | @@ -159,6 +159,34 @@ typedef struct err_state_st {
# define ERR_GET_REASON(l) (int)( (l) & 0xFFFL)
# define ERR_FATAL_ERROR(l) (int)( (l) & ERR_R_FATAL)
+# if !OPENSSL_API_3
+# define SYS_F_FOPEN 0
+# define SYS_F_CONNECT 0
+# define SYS_F_GETSERVBYNAME 0
+# define SYS_F_SOCKET 0
+# define SYS_F_IOCTLSOCKET 0
+# define... |
Update widget width computation | @@ -191,6 +191,7 @@ void Widget_ExecUpdateLayout( LCUI_Widget w )
ctx->current = node->data;
if( ctx->current->computed_style.position != SV_STATIC &&
ctx->current->computed_style.position != SV_RELATIVE ) {
+ Widget_AddState( ctx->current, WSTATE_LAYOUTED );
continue;
}
switch( ctx->current->computed_style.display ) {... |
board/mushu/board.h: Format with clang-format
BRANCH=none
TEST=none | #define CONFIG_HOST_INTERFACE_ESPI
#undef CONFIG_CMD_MFALLOW
-
#undef CONFIG_UART_TX_BUF_SIZE
#define CONFIG_UART_TX_BUF_SIZE 4096
/* Keyboard features */
#define CONFIG_PWM_KBLIGHT
-
/* Sensors */
/* BMI160 Base accel/gyro */
#define CONFIG_ACCELGYRO_BMI160
@@ -174,12 +172,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum ... |
Don't write out a bad OID
If we don't have OID data for an object then we should fail if we
are asked to encode the ASN.1 for that OID.
Fixes | @@ -528,6 +528,8 @@ static int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cout, int *putype,
otmp = (ASN1_OBJECT *)*pval;
cont = otmp->data;
len = otmp->length;
+ if (cont == NULL || len == 0)
+ return -1;
break;
case V_ASN1_NULL:
|
[Readme] Duplicate of media_player_color param | @@ -142,7 +142,6 @@ A partial list of parameters are below. See the config file for a complete list.
| `vsync`<br> `gl_vsync` | Set vsync for OpenGL or Vulkan |
| `media_player` | Show media player metadata |
| `media_player_name` | Set main media player DBus service name without the `org.mpris.MediaPlayer2` part, like... |
added lacking Out specializations | @@ -94,6 +94,26 @@ void Out<IRemoteAddr>(IOutputStream& out, const IRemoteAddr& addr) {
PrintAddr<true>(out, addr);
}
+template <>
+void Out<NAddr::TAddrInfo>(IOutputStream& out, const NAddr::TAddrInfo& addr) {
+ PrintAddr<true>(out, addr);
+}
+
+template <>
+void Out<NAddr::TIPv4Addr>(IOutputStream& out, const NAddr::... |
added ESSID to device info list | @@ -1026,6 +1026,7 @@ for(zeigermac = aplist; zeigermac < aplistptr; zeigermac++)
fprintf(fh_deviceinfo, "\t");
for(p = 0; p < zeigermac->enrolleelen; p++) fprintf(fh_deviceinfo, "%02x", zeigermac->enrollee[p]);
}
+ fwritedeviceinfostr(zeigermac->essidlen, zeigermac->essid, fh_deviceinfo);
fprintf(fh_deviceinfo, "\n");... |
added missing PyImathMatrix22.cpp to Makefile.am, for the autotools build. | @@ -19,6 +19,7 @@ libPyImath_la_SOURCES = PyImath.cpp \
PyImathFixedArray.cpp \
PyImathFrustum.cpp \
PyImathLine.cpp \
+ PyImathMatrix22.cpp \
PyImathMatrix33.cpp \
PyImathMatrix44.cpp \
PyImathPlane.cpp \
|
api: fix memcpy argument in oc_rep_encoder_create_map
Copy the size of the struct and not the size of the pointer to struct | @@ -1172,7 +1172,7 @@ oc_rep_encoder_create_map(CborEncoder *encoder, CborEncoder *mapEncoder,
CborEncoder prevMapEncoder;
memcpy(&prevMapEncoder, mapEncoder, sizeof(prevMapEncoder));
CborEncoder prevEncoder;
- memcpy(&prevEncoder, encoder, sizeof(encoder));
+ memcpy(&prevEncoder, encoder, sizeof(prevEncoder));
CborErr... |
mark as yet unreleased | @@ -14,4 +14,4 @@ Torres Porres \, Derek Kwan and Matt Barber;
#X text 26 135 FOLLOWING DEVELOPERS: Hans-Christoph Steiner (2005-2013)
and Fred Jan Kraan (dec/2014 - feb/2016);
#X text 26 67 VERSION: 0.3-beta-3, f 57;
-#X text 26 84 RELEASE_DATE: 2017 \, july 3rd, f 57;
+#X text 26 84 RELEASE_DATE: unreleased, f 57;
|
mcu/nrf5340: Fix uart device names | @@ -88,7 +88,7 @@ static const struct nrf5340_uart_cfg os_bsp_uart1_cfg = {
};
#endif
#if MYNEWT_VAL(UART_2)
-static struct uart_dev os_bsp_uart0;
+static struct uart_dev os_bsp_uart2;
static const struct nrf5340_uart_cfg os_bsp_uart2_cfg = {
.suc_pin_tx = MYNEWT_VAL(UART_2_PIN_TX),
.suc_pin_rx = MYNEWT_VAL(UART_2_PIN_... |
Correct string size for classes and strings | @@ -419,7 +419,7 @@ char *setToString(Value value) {
char *classToString(Value value) {
ObjClass *klass = AS_CLASS(value);
- char *classString = malloc(sizeof(char) * (klass->name->length + 6));
+ char *classString = malloc(sizeof(char) * (klass->name->length + 7));
memcpy(classString, "<cls ", 5);
memcpy(classString +... |
Save unit tests output to file
Seperate output of different script stages | import tests_config
import os
import commands
+import sys
script_path = os.path.dirname(os.path.realpath(__file__))
@@ -22,7 +23,7 @@ if not os.path.isdir(main_UT_dir + "ocf_env" + os.sep + "ocf"):
try:
os.makedirs(main_UT_dir + "ocf_env" + os.sep + "ocf")
except Exception:
- print "Cannot crate ocf_env/ocf directory!"... |
GRIB2 v30 is now official | # This gets updated twice a year by WMO.
# See https://community.wmo.int/activity-areas/wmo-codes/manual-codes/latest-version
-constant tablesVersionLatestOfficial = 29 : edition_specific;
+constant tablesVersionLatestOfficial = 30 : edition_specific;
# If this is different from the official version, then it is the pre... |
added detection of EAP-SIM (GSM Subscriber Modules) Authentication | @@ -315,7 +315,7 @@ if((accesspointhdliste = calloc((APHDLISTESIZEMAX +1), APHDL_SIZE)) == NULL)
return true;
}
/*===========================================================================*/
-void printmacdir(uint8_t *mac1, uint8_t *mac2, uint8_t tods, uint8_t fromds, uint8_t eapcode, char *infostring)
+void printmace... |
Remove logically dead code
Reported by coverity check. | @@ -2486,16 +2486,6 @@ keep_going: /* We will come back to here until there is
goto keep_going;
}
- if (addr_cur == NULL)
- {
- /*
- * Ooops, no more addresses. An appropriate error
- * message is already set up, so just set the right
- * status.
- */
- goto error_return;
- }
-
/* Remember current address for possible ... |
[readme] vsync opengl and vulkan explanation | @@ -80,10 +80,23 @@ A partial list of parameters are below. See the config file for a complete list.
| `output_file` | Define name and location of the output file (Required for logging) |
| `font_file` | Change default font (set location to .TTF/.OTF file ) |
| `log_duration` | Set amount of time the logging will run f... |
Fix missing symbols on x86 Android. | @@ -18,7 +18,6 @@ IF (ARCH_I386 OR ARCH_X86_64)
IF (OS_WINDOWS)
SRCS(
multiword_64_64_cl_i386_mmx.cc
- crc32c_sse4.cc
)
ELSEIF(OS_ANDROID AND ARCH_I386)
# 32-bit Android has some problems with register allocation, so we fall back to default implementation
@@ -43,9 +42,12 @@ IF (ARCH_I386 OR ARCH_X86_64)
multiword_128_6... |
config_map: always set linked list on multiple property | @@ -452,6 +452,17 @@ int flb_config_map_set(struct mk_list *properties, struct mk_list *map, void *co
mk_list_foreach(m_head, map) {
m = mk_list_entry(m_head, struct flb_config_map, _head);
+ /*
+ * If the map type allows multiple entries, the user context is a pointer
+ * for a linked list. We just point their structu... |
clean up unused variables and unreachable statements | @@ -323,9 +323,11 @@ int get_vendor(void){
int get_cputype(int gettype){
int eax, ebx, ecx, edx;
+/*
int extend_family, family;
int extend_model, model;
int type, stepping;
+*/
int feature = 0;
cpuid(1, &eax, &ebx, &ecx, &edx);
@@ -428,7 +430,8 @@ int get_cacheinfo(int type, cache_info_t *cacheinfo){
cpuid(0, &cpuid_le... |
rand_unix.c: correct include guard comments | @@ -81,7 +81,8 @@ static uint64_t get_timer_bits(void);
# define OSSL_POSIX_TIMER_OKAY
# endif
# endif
-#endif /* defined(OPENSSL_SYS_UNIX) || defined(__DJGPP__) */
+#endif /* (defined(OPENSSL_SYS_UNIX) && !defined(OPENSSL_SYS_VXWORKS))
+ || defined(__DJGPP__) */
#if defined(OPENSSL_RAND_SEED_NONE)
/* none means none. ... |
tests/rtdl: Remove the workarounds for and | @@ -50,10 +50,8 @@ static int callback(struct dl_phdr_info *info, size_t size, void *data) {
if (contains(LDSO_PATTERN, info->dlpi_name))
found->found_ldso++;
- // Temporarily disable this to work around issue #579.
- // if (!strcmp("", info->dlpi_name))
- // found->found_self++;
- found->found_self = 1;
+ if (!strcmp(... |
fixed spec file to get it working | @@ -24,6 +24,7 @@ RFC 2362 with a few noted exceptions (see the RELEASE.NOTES for details).
%build
+./autogen.sh
./configure
make %{?_smp_mflags}
@@ -45,7 +46,7 @@ make %{?_smp_mflags}
%files
%defattr(-,root,root,-)
-%doc AUTHORS CREDITS FAQ INSTALL LICENSE LICENSE.mrouted README README.config README.config.jp README.d... |
closer to osu value circle size | @@ -13,7 +13,8 @@ class DiffCalculator:
self.time_preempt = self.ar()
def cs(self):
- return 54.4 - 4.48 * self.diff["CircleSize"]
+ print(self.diff["CircleSize"])
+ return 23.05 - (self.diff["CircleSize"] - 7) * 4.4825 # 54.4 - 4.48 * self.diff["CircleSize"]
def od(self):
o = self.diff["OverallDifficulty"]
|
Tweak uninstall docs | @@ -114,19 +114,19 @@ scratch. The procedure is as follows:
1.2 Execute `python setup.py clean`
-2. Delete installed python files
+2. Delete built/installed python files
-2.1 Execute `rm -r build/`, deleting the python build directory
+2.1 Execute `rm -r build/` to delete the python build directory
-2.2 Execute `rm pyc... |
Debugging: Print info in debug mode | @@ -198,6 +198,11 @@ static int pack_long(grib_accessor* a, const long* val, size_t* len)
mdata = grib_handle_of_accessor(a)->buffer->data;
mdata += grib_byte_offset(owner);
+ /* Note: In the definitions, flagbit numbers go from 7 to 0 (the bit_index), while WMO convention is from 1 to 8 */
+ if (a->context->debug) {
+... |
added warning to not use macchanger | @@ -7896,6 +7896,7 @@ printf("%s %s (C) %s ZeroBeat\n"
" hcxdumptool may not work as expected on virtual NETLINK interfaces\n"
" do not report issues related to iw\n"
" do not run hcxdumptool in combination with tools (channel hopper), that take access to the interface (except: tshark, wireshark, tcpdump)\n"
+ " do not... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.