message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
upnp/inc/upnp: UpnpRegisterClient2() doesn't exist | @@ -998,10 +998,9 @@ EXPORT_SPEC int UpnpRegisterClient(
* \brief Unregisters a control point application, unsubscribing all active
* subscriptions.
*
- * This function unregisters a client registered with UpnpRegisterClient or
- * UpnpRegisterclient2. After this call, the \b UpnpClient_Handle is no longer
- * valid. T... |
fixup! net/lwip: add validation of code in NS message | @@ -371,6 +371,7 @@ void nd6_input(struct pbuf *p, struct netif *inp)
pbuf_free(p);
ND6_STATS_INC(nd6.proterr);
ND6_STATS_INC(nd6.drop);
+ return;
}
/* Check if there is a link-layer address provided. Only point to it if in this buffer. */
|
fixed bug in authetication-engine on x86-systems | @@ -234,7 +234,7 @@ struct essidinfo
{
uint8_t info_essid;
uint8_t info_essid_len;
- uint8_t* essid[1];
+ uint8_t *essid[0];
} __attribute__((__packed__));
typedef struct essidinfo essid_t;
#define ESSIDINFO_SIZE (sizeof(essid_t))
|
Fix texture resets again; | @@ -567,9 +567,6 @@ void lovrHeadsetRenderTo(headsetRenderCallback callback, void* userdata) {
state.isRendering = 1;
state.compositor->WaitGetPoses(state.renderPoses, 16, NULL, 0);
- // OpenVR changes the OpenGL texture binding, so we reset it after rendering
- Texture* oldTexture = lovrGraphicsGetTexture();
-
// Head... |
Fix struct packing issue in usb_msd.py.
Struct 's' type requires a bytes object but could be given a string
in certain cases. | @@ -21,7 +21,7 @@ import struct
import numbers
import time
import usb.util
-
+import six
class USBMsd(object):
"""Wrapper class for a MSD usb device"""
@@ -248,6 +248,7 @@ class Struct(object):
self.name = name
self.format_str = format_str
self.field_list = field_list
+ self.fmt_dict = {k: fmt_list[i] for i, k in enume... |
Added info about possible dependencies requirement
added section showing from blinking cursor to get libsurvive, compile and run calibrate, including what to do if you run into missing dependency. | @@ -144,6 +144,17 @@ The limiting factor for Vive viability on a given computer is the maximum availa
To support the Vive on HDMI, you either need a newer version of HDMI, or you need to define a custom resolution that respects pixel clock and video port limits, and is also accepted and displayed by the Vive. So far, w... |
implicitly cast pthread_t to long unsigned int
This fixes compilation time errors like:
error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'pthread_t' {aka 'struct __pthread *'} | @@ -860,7 +860,7 @@ void tcmu_set_thread_name(const char *prefix, struct tcmu_device *dev)
if (!prefix) {
tcmu_dev_err(dev, "Failed to set name for thread %lu\n",
- pthread_self());
+ (long unsigned int)pthread_self());
return;
}
|
issue-9316: Update return documentation for RAND_set_rand_engine | @@ -10,7 +10,7 @@ RAND_set_rand_method, RAND_get_rand_method, RAND_OpenSSL - select RAND method
RAND_METHOD *RAND_OpenSSL(void);
- void RAND_set_rand_method(const RAND_METHOD *meth);
+ int RAND_set_rand_method(const RAND_METHOD *meth);
const RAND_METHOD *RAND_get_rand_method(void);
@@ -48,8 +48,9 @@ Each pointer may be... |
osx: travis updating gcc | @@ -5,6 +5,7 @@ cp ./rhobuild.yml.example ./rhobuild.yml
set -e
+brew update && brew install gcc
echo Downloading Qt
#DOWNLOAD_URL=https://download.qt.io/archive/qt/5.9/5.9.5/qt-opensource-mac-x64-5.9.5.dmg
|
addr calc fix | @@ -173,8 +173,8 @@ int OnModuleStart() {
{
uintptr_t ptr_17D324 = pattern.get(0, "E0 FF BD 27 20 00 A2 8F", 0);
CCoronas__RegisterCorona = (void*)ptr_17D324;
- uintptr_t ptr_3CF00 = pattern.get(0, "FF 00 A5 30 60 08 A9 27", 8);
- uintptr_t TheCamera= (uintptr_t)((uint32_t)(*(uint16_t*)(ptr_3CF00 + 0)) << 16 | (uint32_... |
out_tcp: check connection first
compose_payload allocates memory when 'format' is not 'msgpack'.
It is not released when no connection is available and it causes issue
This patch is to change flush flow.
1. Check connection
2. Invoke compose_payload | @@ -94,12 +94,6 @@ static void cb_tcp_flush(struct flb_event_chunk *event_chunk,
size_t out_size = 0;
(void) i_ins;
- ret = compose_payload(ctx, event_chunk->data, event_chunk->size,
- &out_payload, &out_size);
- if (ret != FLB_OK) {
- return FLB_OUTPUT_RETURN(ret);
- }
-
/* Get upstream context and connection */
u = c... |
cmdline: better description of the minimization process | @@ -401,7 +401,7 @@ bool cmdlineParse(int argc, char* argv[], honggfuzz_t* hfuzz) {
{ { "output", required_argument, NULL, 0x601 }, "Output data (dynamic coverage corpus, or the minimized coverage corpus) is written to this directory (default: input directory is used)" },
{ { "persistent", no_argument, NULL, 'P' }, "En... |
network: reduce delay for retries
from 5s to 1s | @@ -51,7 +51,7 @@ int elektraNetworkAddrInfo (Key * toCheck)
}
#define NETWORK_ATTEMPTS 3
-#define NETWORK_SECONDS_BETWEEN_ATTEMPTS 5
+#define NETWORK_SECONDS_BETWEEN_ATTEMPTS 1
int elektraPortInfo (Key * toCheck, Key * parentKey)
{
|
Fix 32bit defines from previous commit | #include <ph.h>
#include <kphuser.h>
-#ifdef _WIN64
-
ULONG KphpGetKernelRevisionNumber(
VOID
)
@@ -50,6 +48,8 @@ ULONG KphpGetKernelRevisionNumber(
return result;
}
+#ifdef _WIN64
+
NTSTATUS KphInitializeDynamicPackage(
_Out_ PKPH_DYN_PACKAGE Package
)
|
[mod_webdav] special-case If: (<DAV:no-lock>)
(recognize <DAV:no-lock>, but supporting logic is limited) | @@ -3537,9 +3537,9 @@ webdav_has_lock (connection * const con,
* List = "(" 1*Condition ")"
* Condition = ["Not"] (State-token | "[" entity-tag "]")
*/
+ int notflag = 0;
while (*p != '\0' && *++p != ')') {
while (*p == ' ' || *p == '\t') ++p;
- int notflag = 0;
if ( (p[0] & 0xdf) == 'N'
&& (p[1] & 0xdf) == 'O'
&& (p[2... |
nix: update linux-aarch64 overlay to exclude macos m1 | @@ -3,8 +3,9 @@ final: prev:
let
isAarch64 = prev.stdenv.hostPlatform.isAarch64;
+ isDarwin = prev.stdenv.isDarwin;
-in prev.lib.optionalAttrs isAarch64 {
+in prev.lib.optionalAttrs (isAarch64 && !isDarwin) {
libsigsegv = prev.libsigsegv.overrideAttrs (attrs: {
preConfigure = (prev.preConfigure or "") + ''
sed -i 's/^C... |
removes obsolete, commented-out signal handling in main.c | @@ -437,82 +437,6 @@ u3_ve_sysopt()
u3_Local = strdup(u3_Host.dir_c);
}
-#if 0
-static jmp_buf Signal_buf;
-#ifndef SIGSTKSZ
-# define SIGSTKSZ 16384
-#endif
-static uint8_t Sigstk[SIGSTKSZ];
-
-volatile enum { sig_none, sig_overflow, sig_interrupt } Sigcause;
-
-static void _main_cont(void *arg1, void *arg2, void *arg... |
25-test_x509.t: Make test case w.r.t. self-issued cert run also without EC enabled | @@ -47,29 +47,23 @@ is(cmp_text($out_utf8, srctop_file(@certs, "cyrillic.utf8")),
# not unlinking $out_pem
}
-SKIP: {
- skip "EC disabled", 1 if disabled("ec");
-
# producing and checking self-issued (but not self-signed) cert
my $subj = "/CN=CA"; # using same DN as in issuer of ee-cert.pem
my $extfile = srctop_file("t... |
perfmon: fix peusdo events
Fix peusdo events, missed populating "core" events with peusdo events.
Type: fix
Fixes: | @@ -27,7 +27,7 @@ static perfmon_event_t events[] = {
.description = desc, \
.exclude_kernel = 1 },
- foreach_perf_intel_core_event
+ foreach_perf_intel_core_event foreach_perf_intel_peusdo_event
#undef _
};
|
Update redis.conf
Typo in conf file comment. | @@ -627,7 +627,7 @@ repl-diskless-sync-max-replicas 0
#
# In many cases the disk is slower than the network, and storing and loading
# the RDB file may increase replication time (and even increase the master's
-# Copy on Write memory and salve buffers).
+# Copy on Write memory and slave buffers).
# However, parsing the... |
win: update visual studio version for align requirement | #define cglm_types_h
#if defined(_MSC_VER)
-#if _MSC_VER < 1914 /* Visual Studio 2017 version 15.7 */
+#if _MSC_VER < 1913 /* Visual Studio 2017 version 15.6 */
# define CGLM_ALL_UNALIGNED
/* do not use alignment for older visual studio versions */
# define CGLM_ALIGN(X) /* __declspec(align(X)) */
|
docs: bump to 2.0 version | {\hspace*{4in} \includegraphics[width=1.7in]{ohpc_logo_blue.pdf}}
\vspace*{2cm}
-\noindent {\LARGE \color{logodarkgrey} \fontfamily{phv}\selectfont OpenHPC (v\OHPCVersion{} RC1)} \vspace*{0.1cm} \\
+\noindent {\LARGE \color{logodarkgrey} \fontfamily{phv}\selectfont OpenHPC (v\OHPCVersion{})} \vspace*{0.1cm} \\
\noinden... |
[skip ci] Update comment on SimAXIMem | @@ -208,7 +208,7 @@ class SmallSPIFlashRocketConfig extends Config(
class SimAXIRocketConfig extends Config(
new chipyard.iobinders.WithUARTAdapter ++
new chipyard.iobinders.WithTieOffInterrupts ++
- new chipyard.iobinders.WithSimAXIMem ++ // drive the master AXI4 memory with a SimAXIMem
+ new chipyard.iobinders.WithSi... |
[hardware] Enable trace parsing with Xs | @@ -162,6 +162,9 @@ def flt_fmt(flt: float, width: int = 7) -> str:
# -------------------- Literal formatting --------------------
def int_lit(num: int, size: int = 2, force_hex: bool = False) -> str:
+ if type(num) is str:
+ sys.stderr.write('WARNING: Trace contains Xs!\n')
+ return num
width = (8 * int(2 ** size))
si... |
convert comments | * Good nodes need also be written back to a peerfile on shutdown.
*/
-/* Setup callbacks */
+// Setup callbacks
void peerfile_setup( void );
void peerfile_free( void );
-/* Write peers to peerfile */
+// Write peers to peerfile
void peerfile_export( void );
-/* Add a static peer */
-void peerfile_add_peer( const char *... |
added LogiLink WL0151A known as working | @@ -123,6 +123,7 @@ This list is for information purposes only and should not be regarded as a bindi
| TP-LINK Archer T2UH | ID 148f:761a Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter) |
| ASUS USB-AC51 | ID 0b05:17d1 ASUSTek Computer, Inc. AC51 802.11a/b/g/n/ac Wireless Adapter [Mediatek MT7610U]... |
Remove unwanted debug fprintf | @@ -277,7 +277,6 @@ void test_ngtcp2_pkt_decode_ack_frame(void) {
CU_ASSERT((ssize_t)expectedlen == rv);
CU_ASSERT(0xf1f2f3f4f5f6llu == fr.ack.largest_ack);
- fprintf(stderr, "%016lx\n", fr.ack.largest_ack);
}
void test_ngtcp2_pkt_decode_padding_frame(void) {
|
prepare handling of EXPANDED EAP | @@ -135,6 +135,7 @@ static long int eapcount;
static long int eapsimcount;
static long int eapakacount;
static long int eappeapcount;
+static long int eapexpandedcount;
static long int eapreqidcount;
static long int eaprespidcount;
static long int zeroedpmkcount;
@@ -298,6 +299,7 @@ eapcount = 0;
eapsimcount = 0;
eapak... |
rtc_clk: fix esp32 unreachable code in rtc_clk_xtal_freq_estimate | @@ -135,6 +135,7 @@ static rtc_xtal_freq_t rtc_clk_xtal_freq_estimate(void)
#if CONFIG_IDF_ENV_FPGA
return RTC_XTAL_FREQ_40M;
#endif // CONFIG_IDF_ENV_FPGA
+ rtc_xtal_freq_t xtal_freq;
/* Enable 8M/256 clock if needed */
const bool clk_8m_enabled = rtc_clk_8m_enabled();
const bool clk_8md256_enabled = rtc_clk_8md256_en... |
BugID:18987319: Fixed WhiteScan issue | @@ -160,7 +160,7 @@ mx_status emh_ali_stop_provision(void)
mx_status emh_alisds_set_cloud_atts(emh_arg_alisds_format_t format, uint8_t *data, int32_t len)
{
- if (ATCmdParser_send("AT+ALINKSEND=%d", len)
+ if (ATCmdParser_send("AT+ALINKSEND=%d", (int)len)
&& ATCmdParser_recv(">")
&& ATCmdParser_write((char *)data, len)... |
king: try undoing warnings in eventlog-lmdb | @@ -6,12 +6,10 @@ license-file: LICENSE
library:
source-dirs: lib
ghc-options:
- - -Wall
+ - -fwarn-incomplete-patterns
+ - -fwarn-unused-binds
+ - -fwarn-unused-imports
- -Werror
- - -Wno-type-defaults
- - -Wno-unused-matches
- - -Wno-name-shadowing
- - -Wno-unused-do-bind
- -O2
dependencies:
|
don't set rem to 0 since libc seems to first call with rem filled in for sleep | @@ -16,11 +16,6 @@ static void nanosleep_timeout(thread t, boolean *dead)
sysreturn nanosleep(const struct timespec* req, struct timespec* rem)
{
- if(rem)
- {
- rem->ts_sec = 0;
- rem->ts_nsec = 0;
- }
// nanosleep is interpretable and the remaining
// time is put in rem, but for now this is non interpretable
// and w... |
sysrepocfg BUGFIX do not validate input data at all
Leave it for sysrepo itself.
Fixes | @@ -272,7 +272,7 @@ op_import(sr_session_ctx_t *sess, const char *file_path, const char *module_name
struct lyd_node *data;
int r, flags;
- flags = LYD_OPT_CONFIG | LYD_OPT_NOEXTDEPS | (not_strict ? 0 : LYD_OPT_STRICT);
+ flags = LYD_OPT_CONFIG | LYD_OPT_TRUSTED | (not_strict ? 0 : LYD_OPT_STRICT);
if (step_load_data(s... |
wireless/gs2200m: replace the preamble scratch to union | @@ -96,6 +96,23 @@ struct gs2200m_s
struct usock_s sockets[SOCKET_COUNT];
};
+union usrsock_request_u
+{
+ struct usrsock_request_socket_s socket;
+ struct usrsock_request_close_s close;
+ struct usrsock_request_connect_s connect;
+ struct usrsock_request_sendto_s sendto;
+ struct usrsock_request_recvfrom_s recvfrom;
+... |
reset inx_w after finishing a bucket | @@ -299,8 +299,9 @@ _ch_trim_buck(u3h_root* har_u, u3h_slot* sot_w)
}
}
- har_u->arm_u.buc_o = c3n;
har_u->arm_u.mug_w = (har_u->arm_u.mug_w + 1) & 0x7FFFFFFF; // modulo 2^31
+ har_u->arm_u.inx_w = 0;
+ har_u->arm_u.buc_o = c3n;
return c3n;
}
|
dm:script: remove ioc related stuff from uos on UP2
UP2 don't have ioc, there is no need to simulate it. | @@ -154,8 +154,6 @@ acrn-dm -A -m $mem_size -c $2$boot_GVT_option"$GVT_args" -s 0:0,hostbridge -s 1:
$boot_cse_option \
$intr_storm_monitor \
$boot_ipu_option \
- -i /run/acrn/ioc_$vm_name,0x20 \
- -l com2,/run/acrn/ioc_$vm_name \
--mac_seed $mac_seed \
-B "root=/dev/vda2 rw rootwait maxcpus=$2 nohpet console=hvc0 \
co... |
SOVERSION bump to version 3.4.1 | @@ -67,7 +67,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 3)
set(LIBNETCONF2_MINOR_SOVERSION 4)
-set(LIBNETCONF2_MICRO_SOVERSION 0)
+set(LIBN... |
examples/png: additional png API calls | @@ -104,6 +104,24 @@ int LLVMFuzzerTestOneInput(uint8_t* buf, size_t len)
write(null_fd, row_pointers[i], row_bytes);
}
+ /* Addtional API calls */
+ png_uint_32 width, ret, res_x, res_y;
+ double file_gamma;
+ png_uint_16p hist;
+ int bit_depth, color_type, interlace_method, compression_method, filter_method, unit_typ... |
pbdrv/ev3dev_stretch/motor: fix path for dc motor | @@ -98,7 +98,7 @@ static pbio_error_t ev3dev_motor_init(motor_t *mtr, pbio_port_t port) {
return err;
}
// Open duty
- err = sysfs_open_dc_motor_attr(&mtr->f_command, mtr->n_motor, "duty_cycle_sp", "w");
+ err = sysfs_open_dc_motor_attr(&mtr->f_duty, mtr->n_motor, "duty_cycle_sp", "w");
if (err != PBIO_SUCCESS) {
retur... |
update create_keys.sh | @@ -20,12 +20,6 @@ kdb set system:/person/name "This is a system:/ fallback"
kdb set user:/dir_and_file_at_once "Contents of a non-leaf node"
kdb set user:/dir_and_file_at_once/leaf "leaf node"
-#mount json file (stopped since libelektra v5, TODO: investigate)
-#kdb mount /root/src/sample_config_files/config.json syste... |
haskell-debian-stretch: add new git job to docu | @@ -152,6 +152,7 @@ After being added to whitelist you can trigger buildjobs by saying:
* jenkins build [gcc-configure-debian-stretch-minimal](https://build.libelektra.org/job/elektra-gcc-configure-debian-stretch-minimal/) please
* jenkins build [gcc-configure-debian-jessie-minimal](https://build.libelektra.org/job/ele... |
fix return code check on syscall (issue | @@ -239,7 +239,7 @@ static bool os_random_buf(void* buf, size_t buf_len) {
if (mi_atomic_load_acquire(&no_getrandom)==0) {
ssize_t ret = syscall(SYS_getrandom, buf, buf_len, GRND_NONBLOCK);
if (ret >= 0) return (buf_len == (size_t)ret);
- if (ret != ENOSYS) return false;
+ if (errno != ENOSYS) return false;
mi_atomic_s... |
rpi-base.inc: Include udev-rules-rpi in MACHINE_EXTRA_RRECOMMENDS | @@ -60,7 +60,7 @@ MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa blue
# Raspberry Pi has no hardware clock
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
-MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
+MACHINE_EXTRA_RRECOMMENDS += " kernel-modules udev-rules-rpi"
# Set Raspberrypi splash ima... |
sched/assert: Don't call up_check_tcbstack for the kernel stack
since up_check_tcbstack only check the userspace stack color | @@ -205,12 +205,7 @@ static void show_stacks(FAR struct tcb_s *rtcb)
dump_stack("Kernel", sp,
(uintptr_t)rtcb->xcp.kstack,
CONFIG_ARCH_KERNEL_STACKSIZE,
-# ifdef CONFIG_STACK_COLORATION
- up_check_tcbstack(rtcb),
-# else
- 0,
-# endif
- false);
+ 0, false);
#endif
}
|
include/mock/tcpci_i2c_mock.h: Format with clang-format
BRANCH=none
TEST=none | @@ -28,15 +28,11 @@ int verify_tcpci_tx_retry_count(enum tcpci_msg_type tx_type,
int verify_tcpci_tx_timeout(enum tcpci_msg_type tx_type,
enum pd_ctrl_msg_type ctrl_msg,
- enum pd_data_msg_type data_msg,
- int timeout);
+ enum pd_data_msg_type data_msg, int timeout);
int verify_tcpci_tx_with_data(enum tcpci_msg_type tx... |
Remove blueprint tests from skip list. | {"category":"simulation","file":"zerocopy.py","cases":["zerocopy02"]},
{"category":"quickrecipes","file":"how_to_start.py"},
{"category":"quickrecipes","file":"opening_compute_engine.py"},
- {"category":"databases","file":"blueprint.py", "cases":["bp_strided_struct_2d_ele_vals","bp_strided_struct_2d_vert_vals","bp_stri... |
add new vendor Socionext | <xs:enumeration value="Sinowealth:149" />
<xs:enumeration value="SmartChip:156" />
<xs:enumeration value="SONiX:110" />
+ <xs:enumeration value="Socionext:171" />
<xs:enumeration value="Spansion:100" />
<xs:enumeration value="STMicroelectronics:13" />
<xs:enumeration value="Sunrise Micro Devices:121" />
|
sim: Simplify printing blank line
Per clippy, `println!()` should be used instead of `println!("")`. | @@ -1239,7 +1239,7 @@ fn show_flash(flash: &dyn Flash) {
println!(" {:3}: 0x{:08x}, 0x{:08x}",
sector.num, sector.base, sector.size);
}
- println!("");
+ println!();
}
/// Install a "program" into the given image. This fakes the image header, or at least all of the
|
skate: adding ACPI MADt schema | -- whereas these are using the new-style bindings
[ skateGenSchemas (options arch) f | f <- [
+ "acpimadt",
"pci",
"cpuid"
],
|
Sanity checking in dill_ctx_term_. | @@ -39,12 +39,14 @@ static void dill_ctx_init_(struct dill_ctx *ctx) {
}
static void dill_ctx_term_(struct dill_ctx *ctx) {
+ dill_assert(ctx->initialized == 1);
dill_ctx_fd_term(&ctx->fd);
dill_ctx_pollset_term(&ctx->pollset);
dill_ctx_stack_term(&ctx->stack);
dill_ctx_handle_term(&ctx->handle);
dill_ctx_cr_term(&ctx-... |
nimble/ll: Fix own address type check during scan
We did not check own address type requested for scan when filtering so
we matched random address even if public address was requested and vv.
This fixes LL/DDI/SCN/BV-71-C. | @@ -1333,7 +1333,8 @@ ble_ll_scan_rx_filter(uint8_t own_addr_type, uint8_t scan_filt_policy,
}
/* Ignore if not directed to us */
- if (!ble_ll_is_our_devaddr(addrd->targeta, addrd->targeta_type)) {
+ if ((addrd->targeta_type != (own_addr_type & 0x01)) ||
+ !ble_ll_is_our_devaddr(addrd->targeta, addrd->targeta_type)) {... |
Fix windows path normalizing for referenced textures; | @@ -50,7 +50,10 @@ static void assimpNodeTraversal(ModelData* modelData, struct aiNode* assimpNode,
}
}
-static void normalizePath(const char* path, char* dst, size_t size) {
+static void normalizePath(char* path, char* dst, size_t size) {
+ char* slash = path;
+ while ((slash = strchr(path, '\\')) != NULL) { *slash++ ... |
location number of external table should less than bucketnum of target table | @@ -4583,14 +4583,15 @@ calculate_planner_segment_num(PlannedStmt *plannedstmt, Query *query,
if ((context.resultRelationHashSegNum < context.externTableForceSegNum
&& context.externTableForceSegNum != 0)
|| (context.resultRelationHashSegNum < context.externTableLocationSegNum)) {
- elog(ERROR, "Could not allocate enou... |
iokernel: fix the pmc monitoring bug, the sib might have no task running so that it has ksched_gens = 0. | @@ -137,7 +137,7 @@ static inline void ksched_enqueue_intr(unsigned int core, int type)
static inline void ksched_enqueue_pmc(unsigned int core, uint64_t sel)
{
ksched_shm[core].pmcsel = sel;
- store_release(&ksched_shm[core].pmc, ksched_gens[core]);
+ store_release(&ksched_shm[core].pmc, 1);
CPU_SET(core, &ksched_set)... |
Do not copy DCID when NGTCP2_PV_FLAG_DONT_CARE flag is set | @@ -4774,6 +4774,7 @@ static int conn_recv_path_response(ngtcp2_conn *conn, ngtcp2_path_response *fr,
return 0;
}
+ if (!(pv->flags & NGTCP2_PV_FLAG_DONT_CARE)) {
if (!(pv->flags & NGTCP2_PV_FLAG_FALLBACK_ON_FAILURE)) {
if (pv->dcid.seq != conn->dcid.current.seq) {
assert(conn->dcid.current.cid.datalen);
@@ -4788,7 +47... |
BugID:25031181:Modify yloop's Config.in to conform to the new spec | +if AOS_CREATE_PROJECT
config AOS_COMP_YLOOP
bool
+ select AOS_COMP_VFS
+ default y
+endif
+
+# Backward compatibility
+if !AOS_CREATE_PROJECT
+config AOS_COMP_YLOOP
+ bool "http"
default n
select AOS_COMP_VFS
help
- AliOS things yloop -- event notifications
-
-if AOS_COMP_YLOOP
-# Configurations for comp yloop
+ AliOS... |
Fix escape key functionality to clear sprite tile selection | @@ -297,6 +297,7 @@ const MetaspriteEditor = ({
if (selectedTileIds.length === 0) {
if (e.key === "Escape") {
resetSpriteTileSelection();
+ resetSelectedTileIds();
}
return;
}
@@ -324,6 +325,7 @@ const MetaspriteEditor = ({
}
if (e.key === "Escape") {
+ resetSpriteTileSelection();
resetSelectedTileIds();
}
@@ -356,7 +3... |
Fix possible infinite loop in pem_read_bio_key_decoder()
There could be an infinite loop if no read happened.
Fixes | @@ -36,6 +36,11 @@ static EVP_PKEY *pem_read_bio_key_decoder(BIO *bp, EVP_PKEY **x,
{
EVP_PKEY *pkey = NULL;
OSSL_DECODER_CTX *dctx = NULL;
+ int pos, newpos;
+
+ if ((pos = BIO_tell(bp)) < 0)
+ /* We can depend on BIO_tell() thanks to the BIO_f_readbuffer() */
+ return NULL;
dctx = OSSL_DECODER_CTX_new_for_pkey(&pkey,... |
Remove unnecessary use of libncursesw on Linux | @@ -236,10 +236,10 @@ build_target() {
add libraries -L/usr/local/opt/ncurses/lib
add cc_flags -I/usr/local/opt/ncurses/include
fi
- add libraries -lncurses
- else
- add libraries -lncursesw
fi
+ add libraries -lncurses
+ # If we wanted wide chars, use -lncursesw on Linux, and still just
+ # -lncurses on Mac.
;;
esac
t... |
Made menu in font.py a bit bigger | @@ -8,9 +8,9 @@ FONT_NAMES = ("sans", "gothic", "cursive", "serif", "serif_italic")
WIDTH = badger2040.WIDTH
HEIGHT = badger2040.HEIGHT
-MENU_TEXT_SIZE = 0.4
-MENU_SPACING = 16
-MENU_WIDTH = 80
+MENU_TEXT_SIZE = 0.5
+MENU_SPACING = 20
+MENU_WIDTH = 84
MENU_PADDING = 2
TEXT_SIZE = 0.8
|
include/charger.h: Format with clang-format
BRANCH=none
TEST=none | @@ -85,12 +85,10 @@ struct charger_drv {
enum ec_error_list (*get_voltage)(int chgnum, int *voltage);
enum ec_error_list (*set_voltage)(int chgnum, int voltage);
-
/* Get the measured charge current and voltage in mA/mV */
enum ec_error_list (*get_actual_current)(int chgnum, int *current);
enum ec_error_list (*get_actu... |
add hide_edge_borders smart to sway.5 manual | @@ -282,7 +282,7 @@ The default colors are:
workspace (or current workspace), and _current_ changes gaps for the current
view or workspace.
-**hide_edge_borders** <none|vertical|horizontal|both>::
+**hide_edge_borders** <none|vertical|horizontal|both|smart>::
Hide window borders adjacent to the screen edges. Default is... |
virtio: Fix the coverity warnings | @@ -250,13 +250,15 @@ virtio_pci_get_max_virtqueue_pairs (vlib_main_t * vm, virtio_if_t * vif)
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MQ))
{
virtio_pci_legacy_read_config (vm, vif, &config.max_virtqueue_pairs,
- sizeof (config.max_virtqueue_pairs), 8);
+ sizeof (config.max_virtqueue_pairs),
+ STRUCT_OFFSET_OF... |
workflows: skip workflows from appveyor
workflows: skip workflows from appveyor | @@ -14,6 +14,11 @@ environment:
configuration:
- Release
+skip_commits:
+ message: /workflows/
+ files:
+ - '.github/**'
+
install:
- ps: Invoke-WebRequest -O winflexbison.zip $env:winflexbison
- ps: Expand-Archive winflexbison.zip -Destination /WinFlexBison
|
workflows: remove Windows container sync | @@ -158,7 +158,7 @@ jobs:
# Simple skopeo copy jobs to transfer image from staging to release registry with optional GPG key signing.
# Unfortunately skopeo currently does not support Cosign: https://github.com/containers/skopeo/issues/1533
staging-release-images:
- name: Release ${{ matrix.tag }} container images
+ na... |
Fix doc string for l2_leaf_reg. | @@ -1860,8 +1860,8 @@ class CatBoostClassifier(CatBoost):
depth : int, [default=6]
Depth of a tree. All trees are the same depth.
range: [1,+inf]
- l2_leaf_reg : int, [default=3]
- L2 regularization term on weights.
+ l2_leaf_reg : float, [default=3.0]
+ Coefficient at the L2 regularization term of the cost function.
r... |
Fix EVP_MD_meth_new.pod
A name too many in the NAME section, and a copyright year update | @@ -11,7 +11,7 @@ EVP_MD_meth_set_ctrl, EVP_MD_meth_get_input_blocksize,
EVP_MD_meth_get_result_size, EVP_MD_meth_get_app_datasize,
EVP_MD_meth_get_flags, EVP_MD_meth_get_init, EVP_MD_meth_get_update,
EVP_MD_meth_get_final, EVP_MD_meth_get_copy, EVP_MD_meth_get_cleanup,
-EVP_MD_meth_get_ctrl, EVP_MD_CTX_md_data
+EVP_MD... |
Fix feature test macro
The expected feature test macro is _POSIX_C_SOURCE having a value
greater or equal to 200809L.
Fixes <https://github.com/Genymobile/scrcpy/issues/1726> | -// for portability
-#define _POSIX_SOURCE // for kill()
-#define _BSD_SOURCE // for readlink()
+// for portability (kill, readlink, strdup, strtok_r)
+#define _POSIX_C_SOURCE 200809L
+#define _BSD_SOURCE
// modern glibc will complain without this
#define _DEFAULT_SOURCE
|
SOVERSION bump to version 3.1.7 | @@ -67,7 +67,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 3)
set(LIBNETCONF2_MINOR_SOVERSION 1)
-set(LIBNETCONF2_MICRO_SOVERSION 6)
+set(LIBN... |
fstore: modified the log_cb prototype to match the one expected by cio | #include <fluent-bit/flb_sds.h>
#include <chunkio/chunkio.h>
-static void log_cb(void *ctx, int level, const char *file, int line,
- const char *str)
+static int log_cb(struct cio_ctx *ctx, int level, const char *file, int line,
+ char *str)
{
if (level == CIO_LOG_ERROR) {
flb_error("[fstore] %s", str);
@@ -39,6 +39,8 ... |
Enable kqueue on MacOS
Make sure JANET_EV_KQUEUE is defined when JANET_APPLE is defined unless
disabled by configuration. | @@ -198,10 +198,16 @@ extern "C" {
#define JANET_EV_EPOLL
#endif
+/* Enable or disable kqueue on BSD */
#if defined(JANET_BSD) && !defined(JANET_EV_NO_KQUEUE)
#define JANET_EV_KQUEUE
#endif
+/* Enable or disable kqueue on Apple */
+#if defined(JANET_APPLE) && !defined(JANET_EV_NO_KQUEUE)
+#define JANET_EV_KQUEUE
+#endi... |
doc UPDATE clarify no data return | @@ -746,7 +746,7 @@ int sr_get_item(sr_session_ctx_t *session, const char *path, uint32_t timeout_ms
* @param[in] xpath [XPath](@ref paths) of the data elements to be retrieved.
* @param[in] timeout_ms Operational callback timeout in milliseconds. If 0, default is used.
* @param[in] opts Options overriding default get ... |
feat(fabric test case):
add fabric test case "BoatWalletDelete_Fail_WalletName_NULL" | @@ -797,6 +797,36 @@ START_TEST(test_001CreateWallet_0019BoatWalletDelete_Success)
}
END_TEST
+START_TEST(test_001CreateWallet_0020BoatWalletDelete_Fail_WalletName_NULL)
+{
+ BSINT32 rtnVal;
+ BSINT32 index;
+ BoatHlfabricWallet *g_fabric_wallet_ptr = NULL;
+ BoatHlfabricWalletConfig wallet_config = get_fabric_wallet_s... |
doc: update TCC feature names in hld overview | @@ -57,16 +57,17 @@ A typical industry usage would include one Windows HMI + one RT VM:
- RT VM that runs a specific RTOS on it to handle
real-time workloads such as PLC control
-ACRN supports guest OS of Windows; ACRN has also added/is adding a
-series features to enhance its real-time performance then meet hard-RT KP... |
Remove remaining references to compression in docs
Some references to compression exist in the docs.
This commit removes those instances. | @@ -7322,7 +7322,6 @@ static mbedtls_tls_prf_types tls_prf_get_type( mbedtls_ssl_tls_prf_cb *tls_prf )
* - [in] ciphersuite
* - [in] master
* - [in] encrypt_then_mac
- * - [in] compression
* - [in] tls_prf: pointer to PRF to use for key derivation
* - [in] randbytes: buffer holding ServerHello.random + ClientHello.rand... |
Remove extraneous brace from previous commit | @@ -42,7 +42,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
while(i < n)
{
#if defined(DSDOT)
- dot += (double)(y[iy] * (double)x[ix] ;
+ dot += (double)y[iy] * (double)x[ix] ;
#else
dot += y[iy] * x[ix];
#endif
|
OcAppleRamDiskLib: Fix error handling | @@ -127,6 +127,12 @@ InternalAllocateRemainingSize (
UINT64 UsedSize;
UINTN FinalUsedSize;
+ //
+ // Require page aligned base and top addresses.
+ //
+ ASSERT (BaseAddress == EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (BaseAddress)));
+ ASSERT (TopAddress == EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (TopAddress)));
+
while (Rema... |
Make rebootstrapping more robust. | @@ -18,7 +18,7 @@ build()
vcs=git
remotecmd="ssh $host"
setpath="mkdir -p $wrkdir/root/bin && export PATH=$PATH:$wrkdir/root/bin"
- showpatch="cd '$wrkdir/mc' && cat update.patch && rm -f update.patch"
+ showpatch="cd '$wrkdir/mc' && cat update.patch"
case $os in
plan9)
if echo $host | grep '@' > /dev/null; then
@@ -54... |
fix(actions): timeout stuck cache west modules | @@ -25,6 +25,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Cache west modules
+ timeout-minutes: 2
uses: actions/cache@v2
env:
cache-name: cache-zephyr-modules
|
Add unscii to lv_font.mk | @@ -4,6 +4,7 @@ CSRCS += lv_font_roboto_12.c
CSRCS += lv_font_roboto_16.c
CSRCS += lv_font_roboto_22.c
CSRCS += lv_font_roboto_28.c
+CSRCS += lv_font_unscii_8.c
DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_font
VPATH += :$(LVGL_DIR)/lvgl/src/lv_font
|
fix and tune to NP21kai 3 | @@ -175,18 +175,22 @@ $ make install
### GCW Zero (GCW0)
##### Build
-1. Change directory to sdl2.
+1. Change directory into sdl2.
```
$ cd NP2kai/sdl2
```
2. Make.
```
-$ make -f Makefile21.gcw0 buildopk
+$ make -f Makefile.gcw0
+```
+or
+```
+$ make -f Makefile21.gcw0
```
##### Install binary
-1. Transfer np2kai.opk ... |
*selected_algorithm needs to be set here | @@ -1162,8 +1162,11 @@ static int sign_certificate(ptls_sign_certificate_t *_self, ptls_t *tls, ptls_as
/* Just resume the asynchronous operation, if one is in flight. */
#if PTLS_OPENSSL_HAVE_ASYNC
- if (async != NULL && *async != NULL)
+ if (async != NULL && *async != NULL) {
+ struct async_sign_ctx *sign_ctx = (stru... |
ur: refactors scalar/direct-atom measurement macros | @@ -30,6 +30,13 @@ typedef uint8_t ur_bool_t;
#define ur_mask_31(a) (a & 0x7fffffff)
#define ur_mask_62(a) (a & 0x3fffffffffffffffULL)
+/*
+** bloq (binary exponent) conversions
+*/
+#define ur_bloq_up1(a) ( (a + 0x1) >> 1 )
+#define ur_bloq_up2(a) ( (a + 0x3) >> 2 )
+#define ur_bloq_up3(a) ( (a + 0x7) >> 3 )
+
/*
** a... |
[msh] add available memory information for free cmd | @@ -83,6 +83,7 @@ int cmd_free(int argc, char **argv)
rt_kprintf("total : %d\n", total);
rt_kprintf("used : %d\n", used);
rt_kprintf("maximum : %d\n", max_used);
+ rt_kprintf("available: %d\n", total - used);
#endif
return 0;
}
|
Fix mongoc_collection_insert_many's signature
Missing * for documents parameter. | @@ -10,7 +10,7 @@ Synopsis
bool
mongoc_collection_insert_many (mongoc_collection_t *collection,
- const bson_t *documents,
+ const bson_t **documents,
size_t n_documents,
const bson_t *opts,
bson_t *reply,
|
tools/ttysnoop: Fix wrong KERNEL_VERSION
Kernel commits (:tty: implement write_iter") is merged from
v5.10.11. | @@ -120,7 +120,7 @@ static int do_tty_write(void *ctx, const char __user *buf, size_t count)
* commit 9bb48c82aced (v5.11-rc4) tty: implement write_iter
* changed arguments of tty_write function
*/
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 11)
int kprobe__tty_wri... |
Added bg arc gets | @@ -128,6 +128,20 @@ uint16_t lv_arc_get_angle_start(lv_obj_t * arc);
*/
uint16_t lv_arc_get_angle_end(lv_obj_t * arc);
+/**
+ * Get the start angle of an arc background.
+ * @param arc pointer to an arc object
+ * @return the start angle [0..360]
+ */
+uint16_t lv_arc_get_bg_angle_start(lv_obj_t * arc);
+
+/**
+ * Get... |
fix default value view | @@ -1046,13 +1046,13 @@ function option.show_options(options)
-- append color
option_info = "${green}" .. option_info .. "${clear}"
- function inwidth_append(dst, st, padding, width, remain_width)
function get_linelen(st)
local poss = string.find(string.reverse(st), "\n")
if not poss then return (#st) end
local start_p... |
prepare for release v0.15.0
added changelog for release v0.15.0 | +bcc (0.15.0-1) unstable; urgency=low
+
+ * Support for kernel up to 5.7
+ * new tools: funcinterval.py, dirtop.py
+ * support lsm bpf programs
+ * support multiple pid/tids for offwaketime
+ * usdt: add helpers to set semaphore values
+ * turn off x86 jump table optimization during jit compilation
+ * add support to u... |
User: Added IsZeroGuid(). | @@ -99,6 +99,21 @@ IsZeroBuffer (
return TRUE;
}
+BOOLEAN
+EFIAPI
+IsZeroGuid (
+ IN CONST GUID *Guid
+ )
+{
+ UINT64 LowPartOfGuid;
+ UINT64 HighPartOfGuid;
+
+ LowPartOfGuid = ReadUnaligned64 ((CONST UINT64 *)Guid);
+ HighPartOfGuid = ReadUnaligned64 ((CONST UINT64 *)Guid + 1);
+
+ return (BOOLEAN)(LowPartOfGuid == 0... |
Find Augeas: Change default lens dir for macOS
This commit closes | @@ -29,7 +29,11 @@ else (LIBAUGEAS_INCLUDE_DIR)
endif (_LIBAUGEAS_PC_FOUND)
if (NOT _LIBAUGEAS_PREFIX)
+ if (APPLE)
+ set (_LIBAUGEAS_PREFIX "/usr/local/opt/augeas")
+ else (APPLE)
set (_LIBAUGEAS_PREFIX "/usr")
+ endif (APPLE)
endif ()
set (LIBAUGEAS_PREFIX
"${_LIBAUGEAS_PREFIX}"
|
Update readme to mention tcc | @@ -31,9 +31,9 @@ Livecoding terminal UI: The above, plus ncurses (or compatible curses library),
## Build
-The build script, called simply `tool`, is written in `bash`. It should work with `gcc` (including the `musl-gcc` wrapper) and `clang`, and will automatically detect your compiler. You can manually specify a comp... |
docs: add link to the Zephyr new board checklist
Add a link to the index for the Zephyr new board checklist.
BRANCH=none
TEST=verify link in Gerrit browse | ## Zephyr
+* [Zephyr New Board Checklist](./zephyr/zephyr_new_board_checklist.md)
* [Building Zephyr OS](./zephyr/zephyr_build.md)
* [Initialization Order](./zephyr/zephyr_init.md)
* [Proof-of-Concept-Device Bringup](./zephyr/zephyr_poc_device_bringup.md)
|
sdl: error: Fix crash on certain Windows environment
Apparently caused by sdl.SetError(nil) but it doesn't
always happen.
See | @@ -6,11 +6,14 @@ package sdl
void GoSetError(const char *fmt) {
SDL_SetError("%s", fmt);
}
+
*/
// #include "sdl_wrapper.h"
import "C"
import "errors"
+var emptyCString *C.char = C.CString("")
+
// SDL error codes with their corresponding predefined strings.
const (
ENOMEM ErrorCode = C.SDL_ENOMEM // out of memory
@@ ... |
delete imu tf | @@ -216,17 +216,6 @@ void publishImuMsg(void)
mag_pub.publish(&mag_msg);
imu_pub.publish(&imu_msg);
-
- imu_tf.header.stamp = rosNow();
- imu_tf.header.frame_id = "base_link";
- imu_tf.child_frame_id = "imu_link";
-
- imu_tf.transform.translation.x = IMU_POS_X;
- imu_tf.transform.translation.y = IMU_POS_Y;
- imu_tf.tra... |
Restore erroneous edit to puid_picotls.ps1 | # Build at a known-good commit
$COMMIT_ID="9accdf4af580e2ad883c929f8ca7a4cc58f15379"
+# Match expectations of picotlsvs project.
+mkdir $dir\include\
+foreach ($dir in "$Env:OPENSSLDIR","$Env:OPENSSL64DIR") {
+ if ($dir) {
+ cp "$dir\lib\libcrypto.lib" "$dir"
+ cp C:\OpenSSL-Win32\include\openssl\applink.c "$dir\includ... |
stay with round robin, RTT does strange stuff... | @@ -17,7 +17,7 @@ set_next_wake_time replace set_next_wake_time.o
get_destination_connection_id replace get_destination_connection_id.o
predict_packet_header_length replace predict_packet_header_length.o
connection_state_changed post connection_state_changed.o
-select_sending_path replace select_sending_path_rtt.o
+sel... |
Fix `-w` not coercing WRAMX sections to WRAM0
Fixes | @@ -248,7 +248,7 @@ static void doSanityChecks(struct Section *section, void *ptr)
error(NULL, 0, "%s: WRAMX sections must be in bank 1 with options -w or -d",
section->name);
else
- section->type = SECTTYPE_WRAMX;
+ section->type = SECTTYPE_WRAM0;
}
if (isDmgMode && section->type == SECTTYPE_VRAM && section->bank == 1... |
board/kano/keyboard.c: Format with clang-format
BRANCH=none
TEST=none | @@ -41,8 +41,8 @@ static const struct ec_response_keybd_config kano_kb = {
},
.capabilities = KEYBD_CAP_SCRNLOCK_KEY,
};
-__override const struct ec_response_keybd_config
-*board_vivaldi_keybd_config(void)
+__override const struct ec_response_keybd_config *
+board_vivaldi_keybd_config(void)
{
return &kano_kb;
}
|
decisions: explain why issues are not a good idea | @@ -112,7 +112,8 @@ These decision PRs are also merged for documentation purposes.
## Rationale
- The process is lightweight and simple.
-- The template helps not forgetting important points.
+- The template makes sure important points are not forgotten.
+- Every decision is by design in its own file with its own git h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.