message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
add gpu_cat_features_storage option | @@ -1541,6 +1541,7 @@ class CatBoostClassifier(CatBoost):
eta=None,
max_bin=None,
scale_pos_weight=None,
+ gpu_cat_features_storage=None,
**kwargs
):
if objective is not None:
@@ -1866,6 +1867,7 @@ class CatBoostRegressor(CatBoost):
objective=None,
eta=None,
max_bin=None,
+ gpu_cat_features_storage=None,
**kwargs
):
if... |
workflow: Back off stale bot a bit
Change the stale bot to 180 days before initial flag. In addition,
avoid issues entirely that have the 'someday' label applied. | @@ -14,10 +14,11 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will aut... |
doc: add paper itself in bib | address = {New York, NY, USA},
keywords = {benchmark, configuration specification},
}
+
+@article{raab2016elektra,
+ doi = {10.21105/joss.00044},
+ url = {http://dx.doi.org/10.21105/joss.00044},
+ year = {2016},
+ month = {dec},
+ publisher = {The Open Journal},
+ volume = {1},
+ number = {8},
+ author = {Markus Raab},... |
Add documentation for xkb_capslock/xkb_numlock | @@ -33,6 +33,14 @@ For more information on these xkb configuration options, see
*input* <identifier> xkb\_variant <variant>
Sets the variant of the keyboard like _dvorak_ or _colemak_.
+*input* <identifier> xkb\_capslock enabled|disabled
+ Enables or disables CapsLock on sway startup, the default is disabled.
+ Only me... |
sched: fix visual studio Compiler Warning (level 4) C4706
D:\code\incubator-nuttx\sched\environ\env_dup.c(81):
warning C4706: assignment within conditional expression
[D:\code\nuttx\incubator-nuttx\vs20221\sched\sched.vcxproj]
Reference: | @@ -78,7 +78,7 @@ int env_dup(FAR struct task_group_s *group, FAR char * const *envcp)
/* Is there an environment ? */
- if (envcp || (envcp = ptcb->group->tg_envp))
+ if (envcp || (envcp = ptcb->group->tg_envp) != NULL)
{
/* Count the strings */
|
add option in picoquicdemo to enforce 1RTT connections | @@ -101,7 +101,7 @@ static const char* default_server_key_file = "certs/key.pem";
static const int default_server_port = 4443;
static const char* default_server_name = "::";
-static const char* ticket_store_filename = "demo_ticket_store.bin";
+static char* ticket_store_filename = "demo_ticket_store.bin";
static const c... |
OpenCorePkg\Platform\OpenCore: apply fix for issue | @@ -517,7 +517,7 @@ OcLoadUefiSupport (
Status = gBS->AllocatePages (
AllocateAddress,
EfiReservedMemoryType,
- EFI_SIZE_TO_PAGES (Config->Uefi.ReservedMemory.Values[Index]->Size),
+ (UINTN) EFI_SIZE_TO_PAGES (Config->Uefi.ReservedMemory.Values[Index]->Size),
&ReservedAddress
);
}
|
Also remove icons and other resource files (Issue | @@ -617,6 +617,8 @@ _papplPrinterDelete(
{
int i; // Looping var
_pappl_resource_t *r; // Current resource
+ char prefix[1024]; // Prefix for printer resources
+ size_t prefixlen; // Length of prefix
// Let USB/raw printing threads know to exit
@@ -641,10 +643,13 @@ _papplPrinterDelete(
_papplPrinterUnregisterDNSSDNoLo... |
improve package.tools.gn | @@ -61,7 +61,9 @@ function generate(package, configs, opt)
table.insert(argv, _get_buildir(opt))
for name, value in pairs(_get_configs(package, configs, opt)) do
if type(value) == "string" then
- table.insert(args, name .. '=\"' .. value .. "\"")
+ table.insert(args, name .. "=\"" .. value .. "\"")
+ elseif type(value)... |
controller-vtep: monitor only needed SB tables | @@ -122,7 +122,38 @@ main(int argc, char *argv[])
/* Connect to OVN SB database. */
struct ovsdb_idl_loop ovnsb_idl_loop = OVSDB_IDL_LOOP_INITIALIZER(
- ovsdb_idl_create(ovnsb_remote, &sbrec_idl_class, true, true));
+ ovsdb_idl_create(ovnsb_remote, &sbrec_idl_class, false, true));
+
+ ovsdb_idl_add_table(ovnsb_idl_loop... |
define WEBP_USE_INTRINSICS w/gcc-4.9+
32-bit builds are neutral to slightly faster using ndk r15c on a
N5/S6/CM1 | #include "./dsp.h"
// Right now, some intrinsics functions seem slower, so we disable them
-// everywhere except aarch64 where the inline assembly is incompatible.
-#if defined(__aarch64__)
+// everywhere except newer gcc or aarch64 where the inline assembly is
+// incompatible.
+#if LOCAL_GCC_PREREQ(4,9) || defined(__... |
case endtime < starttime fix | @@ -27,13 +27,15 @@ def find_time(starttime, endtime, replay, settings):
starttime *= settings.timeframe
starttime += replay[0][Replays.TIMES]
- # starttime += replay_start
+ starttime = min(starttime, replay[-15][Replays.TIMES])
if endtime != -1:
endtime *= settings.timeframe
# endtime += replay_start
endtime += repla... |
Add more details to comment about EC PARAMETERS parsing | @@ -116,7 +116,11 @@ int s2n_stuffer_private_key_from_pem(struct s2n_stuffer *pem, struct s2n_stuffer
s2n_stuffer_reread(pem);
s2n_stuffer_reread(asn1);
- /* Try EC private key, skipping EC PARAMETERS if it exists. For now, only support standard curves. */
+ /* By default, OpenSSL tools always generate both "EC PARAMET... |
examples: ftpc: Fix a compile warning for IPv4 only configuration | @@ -380,7 +380,7 @@ int main(int argc, FAR char *argv[])
if (argc != 2)
{
-#if ADDR_FAMILY == CONFIG_NET_IPv6
+#if ADDR_FAMILY == AF_INET6
printf("Usage:\n");
printf(" %s xx:xx:xx:xx:xx:xx:xx:xx [pp]\n", argv[0]);
printf("Where\n");
|
Configurations/unix-Makefile.tmpl: fix inconsistencies with resource files
.res files weren't treated consistently. They weren't included at all
in the build of a shared library, and were named inconsistently; .res
sometimes, and .res.o otherwise. Now we standardise it to .res.o,
which is the recommended way with GNU... | @@ -110,7 +110,7 @@ GENERATED_MANDATORY={- join(" ", @{$unified_info{depends}->{""}} ) -}
GENERATED={- join(" ",
( grep { defined $unified_info{generate}->{$_} }
map { @{$unified_info{sources}->{$_}} }
- grep { /\.o$/ } keys %{$unified_info{sources}} ),
+ grep { /\.(?:o|res)$/ } keys %{$unified_info{sources}} ),
( grep... |
sse2: add NEON implementation of mm_{min,max}_pd
Fixes | @@ -3594,6 +3594,8 @@ simde_mm_min_pd (simde__m128d a, simde__m128d b) {
#if defined(SIMDE_POWER_ALTIVEC_P8_NATIVE)
r_.altivec_f64 = vec_min(a_.altivec_f64, b_.altivec_f64);
+ #elif defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ r_.neon_f64 = vminq_f64(a_.neon_f64, b_.neon_f64);
#else
SIMDE_VECTORIZE
for (size_t i = 0 ; i < (s... |
libvfs: vfs_fd: set errno to sensible value for more vfs_fd operations | @@ -113,6 +113,7 @@ int vfsfd_read(int fd, void *buf, size_t len)
case FDTAB_TYPE_STDERR:
case FDTAB_TYPE_AVAILABLE:
default:
+ errno = EBADF;
return -1;
}
@@ -122,10 +123,6 @@ int vfsfd_read(int fd, void *buf, size_t len)
int vfsfd_write(int fd, const void *buf, size_t len)
{
struct fdtab_entry *e = fdtab_get(fd);
- i... |
tools/oomkill: Use task_struct->tgid as PID
The OOM target PID should be task_struct->tgid. | @@ -37,12 +37,12 @@ BPF_PERF_OUTPUT(events);
void kprobe__oom_kill_process(struct pt_regs *ctx, struct oom_control *oc, const char *message)
{
- unsigned long totalpages;
struct task_struct *p = oc->chosen;
struct data_t data = {};
u32 pid = bpf_get_current_pid_tgid() >> 32;
+
data.fpid = pid;
- data.tpid = p->pid;
+ d... |
Enable UseColorThreadStack by default | @@ -278,11 +278,11 @@ VOID PhAddDefaultSettings(
PhpAddIntegerSetting(L"UseColorUnknown", L"1");
PhpAddIntegerSetting(L"ColorUnknown", L"8080ff"); // Light Red
- PhpAddIntegerSetting(L"UseColorSystemThreadStack", L"0");
+ PhpAddIntegerSetting(L"UseColorSystemThreadStack", L"1");
PhpAddIntegerSetting(L"ColorSystemThread... |
fixes a crashing issue in freedata
The freedata function used cached values for sizes of certain arrays found in the parser struct. However, now that the network is mutable, those values can become invalid. Relying instead on the actual array lengths prevents freeing unallocated memory, or ignoring cleanup on newly cre... | @@ -396,7 +396,7 @@ void freedata(Project *pr)
// Free memory for node data
if (pr->network.Node != NULL)
{
- for (j = 1; j <= pr->parser.MaxNodes; j++)
+ for (j = 1; j <= pr->network.Nnodes; j++)
{
// Free memory used for demands and WQ source data
freedemands(&(pr->network.Node[j]));
@@ -409,7 +409,7 @@ void freedata... |
Makefile.ide: Simplify cmd_json_list and std var format
BRANCH=none
TEST=./util/clangd_config.py bloonchipper
TEST=make -j16 all-ide-compile-cmds | # If env EXTERNAL_TRUNK_PATH is defined, we use this to build the
# absolute path to the ec directory. Otherwise, we just take the abspath of ".".
-ide_ec_path_ext = \
+ide-ec-path-ext = \
$(if $(EXTERNAL_TRUNK_PATH),$(EXTERNAL_TRUNK_PATH)/src/platform/ec)
-ide_ec_path_abs = $(abspath .)
-ide_ec_path = $(or $(ide_ec_pa... |
Update INS status message definition | @@ -147,19 +147,21 @@ definitions:
fields:
- 8-31:
desc: Reserved
- - 6-7:
- desc: INS Error
+ - 5-7:
+ desc: IMU Status
values:
- - 0: No error
- - 1: General error
- - 3-5:
+ - 0: IMU Ready
+ - 1: No raw IMU data
+ - 2: No raw IMU timestamp
+ - 3: Unrecommended raw IMU rate
+ - 3-4:
desc: Initialization Routine Indic... |
Cleaning up ocall_buffer allocated in _setup_ecall_context | @@ -1274,18 +1274,16 @@ oe_result_t oe_terminate_enclave(oe_enclave_t* enclave)
* Track failures reported by the platform, but do not exit early */
result = oe_sgx_delete_enclave(enclave);
-#if defined(_WIN32)
-
- /* Release Windows events created during enclave creation */
for (size_t i = 0; i < enclave->num_bindings;... |
docs - correct a gpexpand status value | <entry colname="col2">text</entry>
<entry colname="col3"/>
<entry colname="col4">Status of expansion for this table. Valid values are:<p>NOT
- STARTED</p><p>IN PROGRESS</p>FINISHED<p>NO LONGER EXISTS</p></entry>
+ STARTED</p><p>IN PROGRESS</p><p>COMPLETED</p><p>NO LONGER EXISTS</p></entry>
</row>
<row>
<entry colname="... |
Remove more casts. | @@ -42,7 +42,7 @@ void *janet_nanbox_to_pointer(Janet x) {
Janet janet_nanbox_from_pointer(void *p, uint64_t tagmask) {
Janet ret;
- ret.u64 = (int64_t)p;
+ ret.pointer = p;
#if defined (JANET_NANBOX_47) || defined (JANET_32)
#else
ret.u64 &= JANET_NANBOX_POINTERBITS;
@@ -53,7 +53,7 @@ Janet janet_nanbox_from_pointer(v... |
linux/trace: remove incorrect check | @@ -120,7 +120,7 @@ void arch_bfdDemangle(pid_t pid, funcs_t* funcs, size_t funcCnt) {
}
for (size_t i = 0; i < funcCnt; i++) {
- if (funcs[i].func && strncmp(funcs[i].func, "_Z", 2) == 0) {
+ if (strncmp(funcs[i].func, "_Z", 2) == 0) {
char* new_name = bfd_demangle(bfdParams.bfdh, funcs[i].func, 0);
if (new_name) {
sn... |
sbgemm: spr: tuning for blocking params | @@ -1771,6 +1771,20 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif
#define USE_SGEMM_KERNEL_DIRECT 1
+#undef SBGEMM_DEFAULT_UNROLL_N
+#undef SBGEMM_DEFAULT_UNROLL_M
+#undef SBGEMM_DEFAULT_P
+#undef SBGEMM_DEFAULT_R
+#undef SBGEMM_DEFAULT_Q
+// FIXME: actually UNROLL_M = UNROLL_N = 16... |
test testplugins patch | CFLAGS = $(TAU_MPI_COMPILE_INCLUDE) $(TAU_INCLUDE) $(TAU_DEFS) $(USER_OPT) $(TAU_INTERNAL_FLAGS) -fPIC
-LDFLAGS = $(TAU_MPI_LIB)
-+LDFLAGS = -L$(TAU_PREFIX_INSTALL_DIR)/lib $(TAU_MPI_LIB)
++LDFLAGS = -LFoo -L$(TAU_PREFIX_INSTALL_DIR)/lib $(TAU_MPI_LIB)
OBJS = libtau_plugin_function_registration_complete.so libtau_plugi... |
Fix ret undefined error in nsh_telnetlogin when CONFIG_NSH_LOGIN_PLATFORM enable | @@ -176,9 +176,6 @@ int nsh_telnetlogin(FAR struct console_stdio_s *pstate)
{
char username[16];
char password[16];
-#ifdef CONFIG_NSH_LOGIN_PASSWD
- int ret;
-#endif
int i;
/* Present the NSH Telnet greeting */
@@ -219,13 +216,9 @@ int nsh_telnetlogin(FAR struct console_stdio_s *pstate)
/* Verify the username and pass... |
[util/generic] Doxyfy. | @@ -121,7 +121,8 @@ class TIoSystemError: public TSystemError, public TIoException {
class TFileError: public TIoSystemError {
};
-/* TBadArgumentException should be thrown when an argument supplied to some function (or constructor)
+/**
+ * TBadArgumentException should be thrown when an argument supplied to some funct... |
Update Client::Game::UI::Map | @@ -6,7 +6,7 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.UI {
[StructLayout(LayoutKind.Explicit)]
public unsafe partial struct Map {
- [FieldOffset(0x78)] public QuestMarkerArray QuestMarkers;
+ [FieldOffset(0x80)] public QuestMarkerArray QuestMarkers;
[StructLayout(LayoutKind.Sequential, Size = 0x10E0)]
public s... |
config: remove unused variable | @@ -327,7 +327,6 @@ void flb_config_exit(struct flb_config *config)
struct mk_list *tmp;
struct mk_list *head;
struct flb_cf *cf;
- struct flb_input_collector *collector;
if (config->log_file) {
flb_free(config->log_file);
|
MSR: Always add plugin itself to required plugins | @@ -21,10 +21,7 @@ function (add_s_test NAME FILE)
endfunction ()
function (add_plugin_shell_test PLUGIN)
- list (FIND REMOVED_PLUGINS ${PLUGIN} INDEX)
- if (${INDEX} EQUAL -1)
- add_s_test (${PLUGIN} "${CMAKE_SOURCE_DIR}/src/plugins/${PLUGIN}/README.md" ${ARGN})
- endif ()
+ add_s_test (${PLUGIN} "${CMAKE_SOURCE_DIR}/... |
do not create output file inf no input file(s) selected | @@ -2321,6 +2321,14 @@ if(argc < 2)
return EXIT_SUCCESS;
}
+if(optind == argc)
+ {
+ printf("no input file(s) selected\n");
+ if(fh_pmkideapolhc != NULL) fclose(fh_pmkideapolhc);
+ if(fh_pmkideapoljtr != NULL) fclose(fh_pmkideapoljtr);
+ exit(EXIT_FAILURE);
+ }
+
if(pmkideapolhcoutname != NULL)
{
if((fh_pmkideapolhc = ... |
bugfix about refreence counter in op_apost. | @@ -2115,7 +2115,7 @@ static inline void op_aref( mrbc_vm *vm, mrbc_value *regs EXT )
mrbc_decref( dst );
- if( src->tt == MRBC_TT_ARRAY ) {
+ if( mrbc_type(*src) == MRBC_TT_ARRAY ) {
// src is Array
*dst = mrbc_array_get(src, c);
mrbc_incref(dst);
@@ -2125,7 +2125,7 @@ static inline void op_aref( mrbc_vm *vm, mrbc_val... |
Win32 dxgi cleaning up debugging | #endif
uint32_t get_device_id_dxgi(){
- printf("start get device id\n");
HMODULE libDXGI;
if ((libDXGI = ::GetModuleHandle(KIERO_TEXT("dxgi.dll"))) == NULL){
printf("dxgi not found\n");
@@ -34,7 +33,6 @@ uint32_t get_device_id_dxgi(){
int i;
for (i = 0; SUCCEEDED(dxgi_factory->EnumAdapters(i, &dxgi_adapter)); i++) {
dx... |
ACPI: adding boot entry fact to the skb | @@ -179,6 +179,16 @@ int init_all_interrupt_sources(void)
gi->BaseAddress, gi->GicvBaseAddress, gi->GichBaseAddress,
gi->ParkedAddress, gi->CpuInterfaceNumber, gi->Uid);
+ if (gi->ParkingVersion) {
+ /* parking */
+ skb_add_fact("boot_driver_entry(%"PRIu64",%s).", gi->ArmMpidr,
+ "armBootParking");
+ } else {
+ /* psci... |
error: out of memory to resource error for lua | @@ -147,7 +147,7 @@ int elektraLuaOpen (ckdb::Plugin * handle, ckdb::Key * errorKey)
/* init new lua state */
if ((data->L = lua_newstate (Lua_alloc, NULL)) == NULL)
{
- ELEKTRA_SET_OUT_OF_MEMORY_ERROR (errorKey);
+ ELEKTRA_SET_RESOURCE_ERROR (errorKey, "Unable to create new lua state");
goto error;
}
|
board/agah/usbc_config.h: Format with clang-format
BRANCH=none
TEST=none | #define CONFIG_USB_PD_PORT_MAX_COUNT 2
-enum usbc_port {
- USBC_PORT_C0 = 0,
- USBC_PORT_C2,
- USBC_PORT_COUNT
-};
+enum usbc_port { USBC_PORT_C0 = 0, USBC_PORT_C2, USBC_PORT_COUNT };
struct ps8818_reg_val {
uint8_t reg;
|
Jenkinsfile: build release docu with Debian Sid | @@ -232,10 +232,10 @@ def dockerInit() {
/* Build Elektra's documentation with this image.
* Also contains latex for pdf creation.
*/
- DOCKER_IMAGES.buster_doc = dockerUtils.createDockerImageDesc(
- 'debian-buster-doc', dockerUtils.&idTesting,
- './scripts/docker/debian/buster',
- './scripts/docker/debian/buster/doc.D... |
changes: remove duplicate entry | @@ -1566,12 +1566,6 @@ OpenSSL 1.1.1
*Richard Levitte*
- * Added newline escaping functionality to a filename when using openssl dgst.
- This output format is to replicate the output format found in the `*sum`
- checksum programs. This aims to preserve backward compatibility.
-
- *Matt Eaton, Richard Levitte, and Paul ... |
Update esp mbedtls config to not use deterministic ecdsa
Updated for consistency w/ rest of Amazon FreeRTOS mbedTLS ports. | *
* Comment this macro to disable deterministic ECDSA.
*/
-#define MBEDTLS_ECDSA_DETERMINISTIC
+//#define MBEDTLS_ECDSA_DETERMINISTIC
/**
* \def MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
|
Handle 0RTT rejection | @@ -543,6 +543,12 @@ int Client::handshake_completed() {
if (early_data_ &&
SSL_get_early_data_status(ssl_) != SSL_EARLY_DATA_ACCEPTED) {
std::cerr << "Early data was rejected by server" << std::endl;
+
+ if (auto rv = ngtcp2_conn_early_data_rejected(conn_); rv != 0) {
+ std::cerr << "ngtcp2_conn_early_data_rejected: "... |
evp_keymgmt_util_copy: Fix possible leak on copy failure | @@ -455,8 +455,10 @@ int evp_keymgmt_util_copy(EVP_PKEY *to, EVP_PKEY *from, int selection)
* implemented, so just copy and be done
*/
if (!evp_keymgmt_copy(to_keymgmt, to_keydata, from->keydata,
- selection))
+ selection)) {
+ evp_keymgmt_freedata(to_keymgmt, alloc_keydata);
return 0;
+ }
} else if (match_type(to_keym... |
DeepScanlineInputFile now uses chunk size test from DeepTiledInputFile | @@ -1961,14 +1961,20 @@ readSampleCountForLineBlock(InputStreamMutex* streamData,
// @TODO refactor the compressor code to ensure full 64-bit support.
//
- int compressorMaxDataSize = std::numeric_limits<int>::max();
- if (sampleCountTableDataSize > uint64_t(compressorMaxDataSize))
+ uint64_t compressorMaxDataSize = st... |
board/taeko/battery.c: Format with clang-format
BRANCH=none
TEST=none | @@ -151,7 +151,9 @@ __override bool board_battery_is_initialized(void)
bool batt_initialization_state;
int batt_status;
- batt_initialization_state = (battery_status(&batt_status) ? false :
+ batt_initialization_state =
+ (battery_status(&batt_status) ?
+ false :
!!(batt_status & STATUS_INITIALIZED));
return batt_initi... |
Work CI-CD
Fix nuspec for nanoCLR Win32. | </metadata>
<files>
<file src="..\..\build\bin\Release\nanoFramework.nanoCLR.exe" target="tools" />
- <file src="targets\win32\msvc_redist\vcruntime140.dll" target="tools" />
+ <file src="msvc_redist\vcruntime140.dll" target="tools" />
<file src="..\..\assets\nf-logo.png" target="images" />
<file src="..\..\LICENSE.md"... |
fix flapping caused by different order float computations | @@ -117,9 +117,9 @@ Y_UNIT_TEST_SUITE(TMultiLogitTests) {
value += val;
}
}
- UNIT_ASSERT_DOUBLES_EQUAL_C(value / totalWeight, funcValueRef / totalWeight, 1e-5, TStringBuilder() << value << " " << funcValueRef);
+ UNIT_ASSERT_DOUBLES_EQUAL_C(value / totalWeight, funcValueRef / totalWeight, 1e-4, TStringBuilder() << val... |
component/bt: Fix BTU task watchdog timeout after pair with iphone
Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it.
Closes | @@ -2761,9 +2761,9 @@ void btm_sec_check_pending_reqs (void)
/* Now, re-submit anything in the mux queue */
bq = btm_cb.sec_pending_q;
- if (!btm_cb.sec_pending_q) {
+
btm_cb.sec_pending_q = fixed_queue_new(QUEUE_SIZE_MAX);
- }
+
while ((p_e = (tBTM_SEC_QUEUE_ENTRY *)fixed_queue_try_dequeue(bq)) != NULL) {
/* Check tha... |
Remove extra semicolons, fixes build with -Wextra-semi | @@ -884,7 +884,7 @@ Use it as a unique identifier to virtual allocation within the single block.
Use value `VK_NULL_HANDLE` to represent a null/invalid allocation.
*/
-VK_DEFINE_NON_DISPATCHABLE_HANDLE(VmaVirtualAllocation);
+VK_DEFINE_NON_DISPATCHABLE_HANDLE(VmaVirtualAllocation)
/** @} */
@@ -3126,7 +3126,7 @@ enum c... |
dhcpserver: Minor #idfef fix | #include "dhcpserver/dhcpserver.h"
#include "dhcpserver/dhcpserver_options.h"
-#if ESP_DHCP
+#if ESP_DHCPS
#define BOOTP_BROADCAST 0x8000
@@ -1419,4 +1419,4 @@ err_t dhcps_dns_getserver(dhcps_t *dhcps, ip4_addr_t *dnsserver)
}
return ERR_ARG;
}
-#endif // ESP_DHCP
+#endif // ESP_DHCPS
|
Make some TCODColor constructors constexpr.
Use more strict syntax. | @@ -136,7 +136,7 @@ class TCODLIB_API TCODColor {
public :
uint8_t r,g,b;
- TCODColor() : r(0),g(0),b(0) {}
+ constexpr TCODColor() : r{0}, g{0}, b{0} {}
/**
@PageName color
@FuncTitle Create your own colors
@@ -153,13 +153,13 @@ public :
TCODColor myColor = new TCODColor(321.0f,0.7f,1.0f); //HSV
@LuaEx myColor = tcod.... |
zephyr/shim/src/console_buffer.c: Format with clang-format
BRANCH=none
TEST=none | @@ -47,11 +47,9 @@ void console_buf_notify_chars(const char *s, size_t len)
if (new_tail == head_idx)
head_idx = next_idx(head_idx);
if (new_tail == previous_snapshot_idx)
- previous_snapshot_idx =
- next_idx(previous_snapshot_idx);
+ previous_snapshot_idx = next_idx(previous_snapshot_idx);
if (new_tail == current_snap... |
Sensor API: Support only one event per notifier/notification
earlier this was multiplexin multiple events for a single notification | @@ -982,19 +982,13 @@ err:
}
static int
-sensor_set_notification(struct sensor *sensor)
+sensor_set_notification(struct sensor *sensor, struct sensor_notifier *notifier)
{
- sensor_event_type_t event_type;
- const struct sensor_notifier *notifier;
int rc;
- event_type = 0;
- SLIST_FOREACH(notifier, &sensor->s_notifier_... |
crypto/http/http_client.c: Add the check for OPENSSL_strdup
As the potential failure of the OPENSSL_strdup(), it should
be better to check the return value and return error if fails. | @@ -1158,6 +1158,14 @@ BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
current_url = redirection_url;
if (*redirection_url == '/') { /* redirection to same server */
path = OPENSSL_strdup(redirection_url);
+ if (path == NULL) {
+ OPENSSL_free(host);
+ OPENSSL_free(port);
+ (void)OSSL_HTTP_c... |
Changelist for 4.3.2 | +CARTO Mobile SDK 4.3.2
+-------------------
+
+### Changes/fixes:
+
+* Fixed PersistentCacheTileDataSource not working with large cache files
+* Changed PersistentCacheTileDataSource to be more conservative when estimating cache file size
+
+
CARTO Mobile SDK 4.3.2RC2
-------------------
|
docs: fix headings in get started | # Get Started
-- Skill requirements
+## Skill requirements
- Operating system
You can contribute to Elektra to improve the source code, website, documentation, translation etc.
-- Software requirements
+## Software requirements
We need to install some basic tools to run Elektra: cmake, git and essential build tools (ma... |
ra: destroy parser on exception | @@ -174,6 +174,7 @@ struct flb_ra_parser *flb_ra_parser_meta_create(char *str, int len)
if (!s) {
flb_errno();
flb_free(s);
+ flb_ra_parser_destroy(rp);
return NULL;
}
|
RPM packaging - make sure developer also installs cups-devel since we need the
CUPS headers. | @@ -19,6 +19,7 @@ Packager: John Doe <johndoe@example.com>
Vendor: Michael R Sweet
BuildRequires: avahi-devel, cups-devel, gnutls-devel, libjpeg-turbo-devel, libpng-devel, libusbx-devel, pam-devel, zlib-devel
+Requires: cups-devel
# Use buildroot so as not to disturb the version already installed
BuildRoot: /var/tmp/%{... |
Fix out of date comment | @@ -4468,8 +4468,7 @@ BackendInitialize(Port *port)
* BackendRun -- set up the backend's argument list and invoke PostgresMain()
*
* returns:
- * Shouldn't return at all.
- * If PostgresMain() fails, return status.
+ * Doesn't return at all.
*/
static void
BackendRun(Port *port)
|
fixup! linux: run tests also with ASAN and TSAN builds | @@ -60,12 +60,12 @@ jobs:
file: docker/apps/Dockerfile.cloud-server-debug
tag: dbg
args: "CLOUD=1 SECURE=1 CREATE=1 MNT=1 DEBUG=1 OICRES_OBSERVABLE=1 REP_ENCODING_REALLOC=1 OSCORE=0 ASAN=0 TSAN=0"
- - name: cloud-server-discovery-resource-observable-rep-realloc-debug
- file: docker/apps/Dockerfile.cloud-server-debug-as... |
Work CD-CI
Update triggers definitions. | @@ -4,15 +4,25 @@ trigger:
- master
- develop/*
- release/*
+ - refs/tags/*
paths:
exclude:
+ - /*.md
- .gitignore
- - README.md
- - CHANGELOG.md
- - LICENSE.md
- - CONTRIBUTING.md
- - CODE_OF_CONDUCT.md
+ - appveyor.yml
- cmake-variants.TEMPLATE.json
+ # waiting for feature to become available
+ # tags:
+ # include:
+... |
Capture the output in --mode=none
When running a benchmark with --mode=none, capture and print the output.
This will allow us to check the output in the test suite. | @@ -73,10 +73,9 @@ benchlib.modes = {}
benchlib.modes.none = {
run = function(bench_cmd)
- -- Output directly to console, don't capture stdout
- local ok, err = util.execute(bench_cmd)
+ local ok, err, res, _ = util.outputs_of_execute(bench_cmd)
assert(ok, err)
- return ""
+ return res
end,
parse = function(_res)
|
Fix return value from `term_to_local_process_id` | @@ -760,7 +760,7 @@ static term nif_erlang_register_2(Context *ctx, int argc, term argv[])
VALIDATE_VALUE(pid_or_port_term, term_is_pid);
int atom_index = term_to_atom_index(reg_name_term);
- int pid = term_to_local_process_id(pid_or_port_term);
+ int32_t pid = term_to_local_process_id(pid_or_port_term);
// TODO: pid m... |
Fix swaybar tray inerited thems not processed | @@ -135,7 +135,7 @@ static int entry_handler(char *group, char *key, char *value,
theme->name = strdup(value);
} else if (strcmp(key, "Comment") == 0) {
theme->comment = strdup(value);
- } else if (strcmp(key, "Inherists") == 0) {
+ } else if (strcmp(key, "Inherits") == 0) {
theme->inherits = strdup(value);
} else if (... |
Fix redisBufferRead documentation
Referred to redisContextReadReply which I cannot find in this codebase
nor the old redis-tools one. Presumably this meant to say
redisGetReplyFromReader which is how redisBufferRead is used in this
file. Could've also meant the interface function redisReaderGetReply. | @@ -777,7 +777,7 @@ int redisEnableKeepAlive(redisContext *c) {
/* Use this function to handle a read event on the descriptor. It will try
* and read some bytes from the socket and feed them to the reply parser.
*
- * After this function is called, you may use redisContextReadReply to
+ * After this function is called,... |
Completions: Add suggestions for option `null` | @@ -76,6 +76,10 @@ end
# = Options =
# ===========
+function __fish_kdb_subcommand_supports_option_null -d 'Check if the current subcommand supports binary null termination'
+ __fish_kdb_subcommand_includes complete list list-commands ls lsmeta mount
+end
+
function __fish_kdb_subcommand_supports_option_verbose -d 'Che... |
Fix Pass:clear(Texture); | @@ -816,12 +816,11 @@ static int l_lovrPassClear(lua_State* L) {
if (texture) {
float value[4];
- luax_readcolor(L, 3, value);
- int index = lua_istable(L, 3) ? 4 : 6;
- uint32_t layer = luax_optu32(L, index++, 1) - 1;
- uint32_t layerCount = luax_optu32(L, index++, ~0u);
- uint32_t level = luax_optu32(L, index++, 1) -... |
le_tc/kernel: Fix build error in pthread itc
Remove definiton of unused function 'thread_setget' in pthread itc. | @@ -73,16 +73,6 @@ static void *thread_setgetname(void *param)
}
return NULL;
}
-/**
- *@fn :thread_setget
- *@breif :utility function for creating thread
- *@return :void*
- */
-static void *thread_setget(void *param)
-{
- sleep(WAIT_TIME_2);
- return NULL;
-}
/**
* @fn :thread_equal_check
|
added new device TP-LINK TL-WN722N v1 (v2 and v3 are not working) | @@ -72,20 +72,22 @@ Requirements
Supported adapters (strict)
--------------
-* USB ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
+* ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
-* USB ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
+* ID 148f:3070 Ralink Technolog... |
make note not paper | @@ -39,7 +39,7 @@ install:
script:
- flake8 pyccl
- flake8 --exclude=data benchmarks
-- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then pushd doc/ccl_paper && make && popd; fi
+- if [[ $TRAVIS_OS_NAME != 'osx' ]]; then pushd doc/0000-ccl_note/ && make && popd; fi
- cd $TRAVIS_BUILD_DIR
- "[[ `grep \"$(printf '\t')\" pyccl/*.py... |
.github/workflows: use make package to replace make binary on ubuntu
CICD
For some components like shim-rune and epm, make package can generate
their configuration files automatically. | @@ -39,12 +39,6 @@ jobs:
echo 'export PKG_CONFIG_PATH=/usr/lib/pkgconfig' >>/etc/profile;
echo 'export GO111MODULE=on' >>/etc/profile"
- - name: Build and install binaries on ubuntu
- run: docker exec $ubuntu bash -c "source /etc/profile;
- cd /root && cp -r inclavare-containers inclavare-containers-$RUNE_VERSION;
- cd... |
Fix stunServerPort default value usage
The if-else blocks were wrongly disposed, so when the stunServerPort config wasnt set, but the IP was, a STUN server would not be setup in the NiceAgent interface
Also some identation changes according to the git hook suggestions around the code I changed | @@ -533,12 +533,15 @@ WebRtcEndpointImpl::WebRtcEndpointImpl (const boost::property_tree::ptree &conf,
}
uint stunPort = 0;
+
if (!getConfigValue <uint, WebRtcEndpoint> (&stunPort, "stunServerPort",
DEFAULT_STUN_PORT) ) {
GST_INFO ("STUN port not found in config;"
" using default value: %d", DEFAULT_STUN_PORT);
- } els... |
Fixed the x86emu_fork function | @@ -51,7 +51,7 @@ x86emu_t* x86emu_fork(x86emu_t* e, int forktype)
if(v==EAGAIN || v==ENOMEM) {
--emu->context->forked;
FreeX86Emu(&newemu); // fork failed, free the new emu
- } else if(!v) {
+ } else if(v!=0) {
// execute atforks parent functions
for (int i=0; i<emu->context->atfork_sz; --i)
EmuCall(emu, emu->context-... |
fix i2c flags bug | @@ -83,7 +83,7 @@ rt_size_t rt_i2c_master_send(struct rt_i2c_bus_device *bus,
struct rt_i2c_msg msg;
msg.addr = addr;
- msg.flags = flags & RT_I2C_ADDR_10BIT;
+ msg.flags = flags;
msg.len = count;
msg.buf = (rt_uint8_t *)buf;
@@ -103,8 +103,7 @@ rt_size_t rt_i2c_master_recv(struct rt_i2c_bus_device *bus,
RT_ASSERT(bus ... |
Add description of embedding to README.md | @@ -48,6 +48,7 @@ Janet makes a good system scripting language, or a language to embed in other pr
* REPL
* Parsing Expression Grammars built in to the core library
* 300+ functions and macros in the core library
+* Embedding Janet in other programs
* Interactive environment with detailed stack traces
## Documentation
... |
elektra: replace code in keyReplacePrefix with respective keyCopy call | @@ -689,18 +689,7 @@ int keyReplacePrefix (Key * key, const Key * oldPrefix, const Key * newPrefix)
if (key->keyUSize == oldPrefix->keyUSize)
{
// key is same as oldPrefix -> just copy name
- // TODO: replace with keyCopy (key, newPrefix, KEY_CP_NAME) once #3606 is merged
- if (!test_bit (key->flags, KEY_FLAG_MMAP_KEY)... |
NetKVM: Use 'enum class' instead of 'enum' (CA warning 26812)
Update NotifyEvent enum | @@ -116,20 +116,20 @@ public:
}
void NotifyAdapterRemoval()
{
- Notifier(m_Binding, Removal);
+ Notifier(m_Binding, NotifyEvent::Removal);
}
void NotifyAdapterArrival()
{
- Notifier(m_Binding, Arrival, m_Adapter);
+ Notifier(m_Binding, NotifyEvent::Arrival, m_Adapter);
}
void NotifyAdapterDetach()
{
- Notifier(m_Bindin... |
fix spiffsgen.py wrong path delimiter on windows | @@ -516,7 +516,7 @@ def main():
for root, dirs, files in os.walk(args.base_dir):
for f in files:
full_path = os.path.join(root, f)
- spiffs.create_file("/" + os.path.relpath(full_path, args.base_dir), full_path)
+ spiffs.create_file("/" + os.path.relpath(full_path, args.base_dir).replace("\\", "/"), full_path)
image = ... |
Compact Hashes and separate some locks | @@ -111,6 +111,7 @@ static fio_hash_s channels;
static fio_hash_s clients;
static fio_hash_s engines;
static spn_lock_i lock = SPN_LOCK_INIT;
+static spn_lock_i engn_lock = SPN_LOCK_INIT;
/* *****************************************************************************
Channel and Client Management
@@ -246,13 +247,19 @@... |
Fix error handling in cache attach
Only close cores in error handling if attach parameter "open_cores" is
set to true. | @@ -340,8 +340,9 @@ static void init_attached_data_structures_recovery(ocf_cache_t cache,
* Used in case of cache initialization errors. *
****************************************************************/
static void _ocf_mngt_close_all_uninitialized_cores(
- ocf_cache_t cache)
+ struct ocf_cache_attach_context *contex... |
BugID:17132021:[WhiteScan] [587318] [RETURN_LOCAL] /home/iot/WhiteScan/app/example/hdlcapp/hdlcclient/hdlcclient.c | @@ -367,7 +367,7 @@ static void handle_hdlc(char *pwbuf, int blen, int argc, char **argv)
LOGD(TAG, "Will suspend station");
ycmd = ATYWSSSUSPSTA;
} else if (strcmp(argv[2], "setch") == 0) {
- char chcmd[sizeof(ATYWSSSETCH) + 3] = { 0 };
+ static char chcmd[sizeof(ATYWSSSETCH) + 3] = { 0 };
if (argc != 4) {
LOGE(TAG, "... |
BugID:16760137:example:add mqtt press test case | @@ -16,11 +16,11 @@ CFLAGS := $(filter-out -DCOAP_COMM_ENABLED,$(CFLAGS))
endif
ifneq (,$(filter -DMQTT_COMM_ENABLED,$(CFLAGS)))
-TARGET += mqtt-example mqtt-example-rrpc mqtt-example-multithread
+TARGET += mqtt-example mqtt-example-rrpc mqtt-example-multithread mqtt-example-presstest
SRCS_mqtt-example := app_entry.c m... |
[numerics] use Cholesky factorization | @@ -236,7 +236,7 @@ void gfc3d_ADMM(GlobalFrictionContactProblem* restrict problem, double* restrict
double* restrict velocity, double* restrict globalVelocity,
int* restrict info, SolverOptions* restrict options)
{
- /* verbose=2; */
+ /* verbose=1; */
/* int and double parameters */
int* iparam = options->iparam;
dou... |
Fixed assert since t could be 0 | @@ -864,7 +864,7 @@ SURVIVE_EXPORT const SurvivePose *survive_get_lighthouse_position(const SurviveC
FLT t = (survive_run_time(ctx) - ctx->bsd[bsd_idx].old_pos_time) / t_diff;
if (t > 1)
t = 1;
- assert(t > 0);
+ assert(t >= 0);
if (t >= 0) {
PoseSlerp(&mctx->bsd[bsd_idx].Pose, &ctx->bsd[bsd_idx].old_pos, &ctx->bsd[bsd... |
test/charge_ramp.c: Format with clang-format
BRANCH=none
TEST=none | @@ -73,8 +73,8 @@ int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state)
vbus_low_current_ma;
}
-void board_set_charge_limit(int port, int supplier, int limit_ma,
- int max_ma, int max_mv)
+void board_set_charge_limit(int port, int supplier, int limit_ma, int max_ma,
+ int max_mv)
{
charge_limit_ma = ... |
Makefile: libunwind 1.2.1 (Ubuntu 19.10) wants liblzma
We see
ld.lld: error:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libunwind-ptrace.so:
undefined reference to lzma_stream_buffer_decode
and so forth.
The BUILD_OSSFUZZ_STATIC branch doesn't need changing because
pkgconfig adds the -llzma. | @@ -51,7 +51,7 @@ ifeq ($(OS)$(findstring Microsoft,$(KERNEL)),Linux) # matches Linux but excludes
-lopcodes -lbfd -liberty -lz \
-Wl,-Bdynamic
else
- ARCH_LDFLAGS += -lunwind-ptrace -lunwind-generic -lunwind \
+ ARCH_LDFLAGS += -lunwind-ptrace -lunwind-generic -lunwind -llzma \
-lopcodes -lbfd
endif
ARCH_LDFLAGS += -l... |
I modified build_visit to point to the tagged 2.13 release. | @@ -65,8 +65,8 @@ export SVN_THIRDPARTY_PATH=${SVN_THIRDPARTY_PATH-"trunk/third_party"}
# RC Branch:
###
#export TRUNK_BUILD="no"
-#export SVN_SOURCE_PATH="branches/2.12RC/src"
-#export SVN_THIRDPARTY_PATH="branches/2.12RC/third_party"
+#export SVN_SOURCE_PATH="branches/2.13RC/src"
+#export SVN_THIRDPARTY_PATH="branche... |
pr_eaa: fix TLS handshake timeout error when running skopeo copy command
Use retry action to pull images multiple times. | @@ -86,8 +86,13 @@ jobs:
mv /root/inclavare-containers/${{ matrix.tag }}/verdict /usr/local/bin/'
- name: install sample image
- run: docker exec $inclavare_test bash -c 'mkdir /root/images && cd /root/images;
+ uses: nick-invision/retry@v2
+ with:
+ timeout_minutes: 120
+ max_attempts: 500
+ command: docker exec $incl... |
changed execution ID format, cause Azure doesn't like ":" character | @@ -72,7 +72,7 @@ def main():
def generate_execution_id(target):
- return f"{target}:{datetime.now().isoformat()}"
+ return f"{target}_{datetime.now().isoformat()}".replace(":", "_")
if __name__ == '__main__':
|
Aligned PMU function prototypes and definitions for PMU counter overflow and interrupt enable functions.
Fixed spacing issue with some comments. | * @file pmu_armv8.h
* @brief CMSIS PMU API for Armv8.1-M PMU
* @version V1.0.0
- * @date 18. March 2020
+ * @date 24. March 2020
******************************************************************************/
/*
* Copyright (c) 2020 Arm Limited. All rights reserved.
@@ -184,11 +184,11 @@ __STATIC_INLINE void ARM_PMU_CN... |
Do not show fps_limit if unlimited | @@ -485,9 +485,10 @@ void HudElements::resolution(){
void HudElements::show_fps_limit(){
int fps = 0;
double frame_time = (double)fps_limit_stats.targetFrameTime.count()/1000000;
- if (frame_time > 0.0){
- fps = (1 / frame_time) *1000;
+ if (frame_time == 0.0){
+ return;
}
+ fps = (1 / frame_time) *1000;
ImGui::TableNe... |
Docs: Added UIScale in Sample.plist | <key>prev-lang:kbd</key>
<data>cnU6MTk0NTY=</data>
</dict>
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
+ <dict>
+ <key>UIScale</key>
+ <data>AQ==</data>
+ </dict>
</dict>
<key>Block</key>
<dict>
<array>
<string>boot-args</string>
</array>
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
+ <array>
+ <string>UISca... |
hs_recved must be increased by the amount of UDP packet payload | @@ -4695,7 +4695,8 @@ static int conn_recv_handshake_cpkt(ngtcp2_conn *conn, const ngtcp2_path *path,
const uint8_t *pkt, size_t pktlen,
ngtcp2_tstamp ts) {
ngtcp2_ssize nread;
- size_t origlen = pktlen;
+
+ conn->hs_recved += pktlen;
while (pktlen) {
nread = conn_recv_handshake_pkt(conn, path, pkt, pktlen, ts);
@@ -47... |
build/configs/esp32_DevKitC: Modify esp32_DevKitC/tc defconfig
Enable kernel testcase: round robin task scheduler test. | @@ -272,7 +272,7 @@ CONFIG_DEV_CONSOLE=y
CONFIG_NFILE_DESCRIPTORS=8
CONFIG_NFILE_STREAMS=8
CONFIG_NAME_MAX=32
-# CONFIG_PRIORITY_INHERITANCE is not set
+CONFIG_PRIORITY_INHERITANCE=y
#
# RTOS hooks
@@ -436,7 +436,7 @@ CONFIG_UART1_2STOP=0
# Wireless Device Options
#
# CONFIG_DRIVERS_WIRELESS is not set
-# CONFIG_KERNEL... |
Added documentation + added void for no parameter methods | @@ -225,12 +225,33 @@ void PAL_setPaletteColorsDMA(u16 index, const Palette* pal);
*/
void PAL_setPaletteDMA(u16 numPal, const u16* pal);
-
-// these functions should be private as they are called by PAL_fadeXXX functions internally
-// but they can be useful sometime for better control on the fading processus
+/**
+ *... |
HTML version should run on 60 FPS only, because some video cards have 100 Hz refresh rate | @@ -2728,7 +2728,7 @@ s32 main(s32 argc, char **argv)
}
else createFileSystem(NULL, onFSInitialized);
- emscripten_set_main_loop(tick, TIC_FRAMERATE == 60 ? 0 : TIC_FRAMERATE, 1);
+ emscripten_set_main_loop(tick, TIC_FRAMERATE, 1);
#else
createFileSystem(argc > 1 && fsExists(argv[1]) ? fsBasename(argv[1]) : NULL, onFSI... |
Fix license authors | /******************************************************************************/
/**
@file standard_file_template.h
-@author Lawrence, Fazackerley, Douglas, Huang, Klamut, Penson,
-Wallperington, Wardle . All rights reserved.
+@author Lawrence, Fazackerley, Douglas, Huang, Klamut, Penson, Wardle. All rights reserved.
@... |
provisioning/warewulf-ipmi: restore ipmitool included with WW logic | @@ -74,7 +74,7 @@ cd %{_builddir}
%files
%doc AUTHORS ChangeLog INSTALL NEWS README TODO COPYING
-%if ! %{localipmi}
+%if %{localipmi}
%{_libexecdir}/warewulf/ipmitool
%endif
%{perl_vendorlib}/Warewulf/Ipmi.pm
|
CLEANUP: do 10us sleep instead of sched_yield(). | #include <string.h>
#include <time.h>
#include <assert.h>
-#include <sched.h>
#include <inttypes.h>
#include <sys/time.h> /* gettimeofday() */
@@ -5747,11 +5746,11 @@ static void *collection_delete_thread(void *arg)
struct default_engine *engine = arg;
hash_item *it;
coll_meta_info *info;
+ struct timespec sleep_time =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.