message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
ios mouse event minor fix
efPrimaryTouch required because of this line: | @@ -2177,7 +2177,7 @@ bool nmeIsMain = true;
{
Event mouse(etMouseMove, p.x*nmeStage->nmeView->dpiScale, p.y*nmeStage->nmeView->dpiScale);
//mouse.flags |= efLeftDown;
- //mouse.flags |= efPrimaryTouch;
+ mouse.flags |= efPrimaryTouch;
nmeStage->OnEvent(mouse);
}
}
|
updates solid pill staging to handle :lens and +solid changes | @@ -17,15 +17,38 @@ trap cleanup EXIT
# update pill strategy to ensure correct staging
#
+
herb ./pier -p hood -d "+hood/mount /=home="
-cp $ARVO/app/lens.hoon ./pier/home/app/
-cp $ARVO/lib/pill.hoon ./pier/home/lib/
-chmod -R u+rw ./pier/home/lib/
+# update :lens, :dojo and dependencies
+#
+# XX reduce this list
+#
+... |
chat-cli: Update prompt on-create
Creating a mailbox would refresh the prompt before setting a new
audience, instead of after. This change corrects the behavior.
Also updates glyph binding code and print style. | ^- (quip move _this)
::TODO check if already exists
=/ =target [our-self path]
+ =. audience [target ~ ~]
=^ moz this
?. ?=(^ gyf) [~ this]
(bind-glyph u.gyf target)
- =- [[- moz] this(audience [target ~ ~])]
+ =- [[- moz] this]
%^ act %do-create %chat-view
:- %chat-view-action
[%create path %channel ~ ~]
++ show-glyph... |
HUB75 Clear TX FIFOs for MicroPython soft reset glitch | @@ -131,20 +131,34 @@ void Hub75::start(irq_handler_t handler) {
if(handler) {
dma_channel = 0;
+ // Try as I might, I can't seem to coax MicroPython into leaving PIO in a known state upon soft reset
+ // check for claimed PIO and prepare a clean slate.
if(pio_sm_is_claimed(pio, sm_data) || pio_sm_is_claimed(pio, sm_ro... |
Update data.yml
update StringArrayData funcs | @@ -1051,10 +1051,12 @@ classes:
inherits_from: Component::GUI::AtkArrayData
vtbl: 0x1416C1A18
funcs:
+ 0x1404AF7C0: SetValue
+ 0x1404AF9A0: SetValueUtf8
0x1404AFA00: SetValueIfDifferentAndNotify
0x1404AFA30: SetValueIfDifferentAndNotifyUtf8
- 0x1404AFA70: SetValue
- 0x1404AFAB0: SetValueUtf8
+ 0x1404AFA70: SetValueFor... |
Fix missing pointer dereference operator in lms7_api.cpp | @@ -733,7 +733,7 @@ API_EXPORT int CALL_CONV LMS_GetNormalizedGain(lms_device_t *device, bool dir_tx
}
*gain = lms->GetNormalizedGain(dir_tx,chan);
- if (gain < 0)
+ if (*gain < 0)
return -1;
return LMS_SUCCESS;
}
@@ -755,7 +755,7 @@ API_EXPORT int CALL_CONV LMS_GetGaindB(lms_device_t *device, bool dir_tx, size_t
}
*ga... |
Fix usb mode startup issue | @@ -2275,9 +2275,6 @@ static void handle_watchman_v2(SurviveObject *w, uint64_t time_in_us, uint16_t t
vive_switch_mode(driverInfo, LightcapMode_raw1);
return;
}
- if (driverInfo->lightcapMode == LightcapMode_raw0) {
- return;
- }
uint8_t flags = POP_BYTE(payloadPtr);
bool has_errors = false;
|
Forgot UPNP_HAVE_DEBUG while removing the separation of the headers. | @@ -91,7 +91,7 @@ ADD_LIBRARY (UPNP::SHARED ALIAS upnp_shared)
TARGET_COMPILE_DEFINITIONS (upnp_shared
PRIVATE $<$<CONFIG:Debug>:STATS>
- PUBLIC $<IF:$<CONFIG:Debug>,DEBUG,NDEBUG>
+ PUBLIC $<IF:$<CONFIG:Debug>,DEBUG UPNP_HAVE_DEBUG,NDEBUG>
)
TARGET_INCLUDE_DIRECTORIES (upnp_shared
@@ -189,7 +189,7 @@ ADD_LIBRARY (UPNP:... |
2.12RC->Trunk: fix for mb objects with nameschemes and no valid blocks | @@ -892,6 +892,10 @@ avtSiloFileFormat::GetTimeVaryingInformation(DBfile *dbfile,
//
// Mark C. Miller, Tue Jul 17 20:05:52 PDT 2012
// Permit file to be an absolute path instead of relative to toc file.
+//
+// Mark C. Miller, Tue Feb 21 17:39:22 PST 2017
+// Added logic to ensure that as other files are opened, the t... |
ARP: Ensure STATIC and DYANMIC ARP flags are mutually exclusive. | @@ -628,9 +628,15 @@ vnet_arp_set_ip4_over_ethernet_internal (vnet_main_t * vnm,
e->time_last_updated = vlib_time_now (vm);
if (is_static)
+ {
+ e->flags &= ~ETHERNET_ARP_IP4_ENTRY_FLAG_DYNAMIC;
e->flags |= ETHERNET_ARP_IP4_ENTRY_FLAG_STATIC;
+ }
else
+ {
+ e->flags &= ~ETHERNET_ARP_IP4_ENTRY_FLAG_STATIC;
e->flags |= E... |
nshlib: nxstyle fixes
fixes for errors reported by the nxstyle tool | /****************************************************************************
- * apps/nshlib/dbg_dbgcmds.c
+ * apps/nshlib/nsh_dbgcmds.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
|
We don't need to write all the zeros explicitly.
This makes initializing large zeros faster. | @@ -340,8 +340,6 @@ writeblob(FILE *fd, Blob *b, size_t off, char *lbl)
n += writeblob(fd, b->seq.sub[i], off+n, lbl);
break;
case Btpad:
- for (i = 0; i < b->npad; i++)
- fprintf(fd, "\tDATA %s+%llu(SB)/1,$0\n", lbl, (uvlong)off+n+i);
n += b->npad;
break;
}
|
Add std/png bench comment for the roll back | // c.poke_u24le!(a: x128.truncate_u32())
// }
// }
+//
+// Note that "more SIMD" doesn't always mean faster compute. See
+// https://github.com/google/wuffs/commit/1660f9268621ed4415b3b363f0a0e1026d4aa83d
+// "Have std/png filter_1_distance_? use more SIMD" for a pessimizing example.
pri func decoder.filter_1_distance_... |
in_tail: fix data types | @@ -363,7 +363,7 @@ static void cb_results(const char *name, const char *value,
return;
}
- flb_hash_add(ht, name, strlen(name), value, vlen);
+ flb_hash_add(ht, name, strlen(name), (void *) value, vlen);
}
#endif
@@ -417,7 +417,7 @@ static int tag_compose(char *tag, char *fname, char *out_buf, size_t *out_size,
end--;... |
i2s: fix driver uninstall issue | @@ -865,8 +865,6 @@ static esp_err_t i2s_param_config(i2s_port_t i2s_num, const i2s_config_t *i2s_co
I2S_CHECK((i2s_config), "param null", ESP_ERR_INVALID_ARG);
I2S_CHECK((i2s_check_cfg_static(i2s_num, i2s_config) == ESP_OK), "param check error", ESP_ERR_INVALID_ARG);
- periph_module_enable(i2s_periph_signal[i2s_num].m... |
cirrus: fix using clang11 for freebsd jobs | @@ -53,13 +53,12 @@ bsd_task:
ninja
yajl
yaml-cpp
- - echo "CC=clang11" >> /etc/make.conf
- - echo "CXX=clang++11" >> /etc/make.conf
- - echo "CPP=clang-cpp11" >> /etc/make.conf
script:
- > # We use `-std=c11`, since the header `math.h` on FreeBSD requires C11 features
set --
+ -DCMAKE_C_COMPILER=clang11
+ -DCMAKE_CXX_... |
fix some bug for led in handbit.py | @@ -11,24 +11,32 @@ class led:
self.val = 1
self.pin = pin
def setbrightness(n,val):
+ global rgb
if n in (0,1,2) and 0 <= val <= 1023:
if val == 0:
rgb[n] = (0,0,0)
+ rgb.write()
else:
val = val // 20 + 1
rgb[n] = (val,val,val)
+ rgb.write()
def setonoff(n,val):
+ global rgb
if n in (0,1,2):
if(val == -1):
- if rgb[n]... |
CMake: add lib and include install path | @@ -153,12 +153,18 @@ endif()
if(NOT CGLM_INSTALL_PATH)
set(CGLM_INSTALL_PATH "")
endif()
+if(NOT CGLM_INSTALL_LIBDIR)
+ set(CGLM_INSTALL_LIBDIR "${CGLM_INSTALL_PATH}lib")
+endif()
+if(NOT CGLM_INSTALL_INCDIR )
+ set(CGLM_INSTALL_INCDIR "${CGLM_INSTALL_PATH}include/clgm")
+endif()
install(
TARGETS cglm
EXPORT cglm
- AR... |
README.md: Github -> Gitlab/lily-lang.org | @@ -96,12 +96,12 @@ Lily is a very young language and the community is still growing.
## Resources
-* [Documentation](https://FascinatedBox.github.io/lily/)
+* [Documentation](http://lily-lang.org)
-* [Builtin module reference](https://Fascinatedbox.github.com/lily/core/module.core.html)
+* [Builtin module reference](h... |
README: add caution of toolchain usages for 64bit OS
Our recommanded toolchain is fully working on 32bits OS.
64bits OS needs to install additional ubuntu package.
This commit describes above. | @@ -22,6 +22,7 @@ Untar the gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2 and export the pat
tar xvjf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
export PATH=<Your Toolchain PATH>:$PATH
```
+Be aware that recommanded toolchain is fully working on 32bits machine. 64bits machine needs additional packages.
#... |
Print help to stdout
The output of -h/--help was printed on stderr, although it is not an
error.
Printing on stdout allows to pipe the result directly:
scrcpy --help | less
Instead of (in bash):
scrcpy --help |& less | @@ -675,12 +675,12 @@ print_option_usage_header(const struct sc_option *opt) {
}
}
- fprintf(stderr, "\n %s\n", buf.s);
+ printf("\n %s\n", buf.s);
free(buf.s);
return;
error:
- fprintf(stderr, "<ERROR>\n");
+ printf("<ERROR>\n");
}
static void
@@ -696,11 +696,11 @@ print_option_usage(const struct sc_option *opt, unsig... |
Allow Kestrl webserver to use synchronous IO | @@ -26,7 +26,10 @@ namespace CommonSchema.Server
public static void Main(string[] args)
{
CreateWebHostBuilder(args)
- .UseKestrel()
+ .UseKestrel(options =>
+ {
+ options.AllowSynchronousIO = true;
+ })
.UseContentRoot(Directory.GetCurrentDirectory())
.UseWebRoot(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot"... |
misc: add documentation element for CACHE_REGION
Some member of CACHE_REGION have no documentation element, this cause
some issue when we generate documentation for user.
This patch add some documentation to fix the above issue. | @@ -330,17 +330,41 @@ the board hardware does not support RDT, enabling this option is ignored.</xs:do
<xs:complexType name="CachePolicyType">
<xs:sequence>
- <xs:element name="VM" type="xs:string" />
- <xs:element name="VCPU" type="xs:integer" />
- <xs:element name="TYPE" type="CacheType" minOccurs="1"/>
- <xs:element... |
Move clock enable to BSP. | @@ -84,7 +84,6 @@ void board_init(void)
usart_async_init(&edbg_com, USART1, edbg_com_buffer, sizeof(edbg_com_buffer), _usart_get_usart_async());
usart_async_set_baud_rate(&edbg_com, CFG_BOARD_UART_BAUDRATE);
usart_async_register_callback(&edbg_com, USART_ASYNC_TXC_CB, tx_cb_EDBG_COM);
-// usart_async_register_callback(... |
Build: Do not remove zip files when building duet | @@ -115,11 +115,13 @@ else
ARCHS=(X64 IA32)
SELFPKG_DIR="OpenCorePkg"
SELFPKG=OpenDuetPkg
+ NO_ARCHIVES=1
export TARGETS
export ARCHS
export SELFPKG_DIR
export SELFPKG
+ export NO_ARCHIVES
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/efibuild.sh) && eval "$src" || exit 1
fi
|
PPPoE's destination MAC was overwritten | @@ -150,10 +150,11 @@ pppoe_fixup (vlib_main_t * vm, ip_adjacency_t * adj, vlib_buffer_t * b0)
{
pppoe_header_t *pppoe0;
- pppoe0 = vlib_buffer_get_current (b0);
+ pppoe0 = vlib_buffer_get_current (b0) + sizeof (ethernet_header_t);
pppoe0->length = clib_host_to_net_u16 (vlib_buffer_length_in_chain (vm, b0)
- sizeof (pp... |
Camera: add remark about control of captured file | @@ -262,6 +262,7 @@ Be sure to review the [Ruby API Usage](/guide/api_ruby) guide for important info
<METHOD name="takePicture" hasCallback="mandatory" runInThread="ui">
<PLATFORM>Android, WM, CE, iOS, WP8</PLATFORM>
<DESC>Start the camera application to take a picture. The user can capture the displayed image by inter... |
py/map: Allow to trace rehashing operations. | #include "py/misc.h"
#include "py/runtime.h"
+#if MICROPY_DEBUG_VERBOSE // print debugging info
+#define DEBUG_PRINT (1)
+#else // don't print debugging info
+#define DEBUG_PRINT (0)
+#define DEBUG_printf(...) (void)0
+#endif
+
// Fixed empty map. Useful when need to call kw-receiving functions
// without any keywords ... |
common/test_util.c: Format with clang-format
BRANCH=none
TEST=none | @@ -29,16 +29,24 @@ struct test_util_tag {
int __test_error_count;
/* Weak reference function as an entry point for unit test */
-test_mockable void run_test(int argc, char **argv) { }
+test_mockable void run_test(int argc, char **argv)
+{
+}
/* Default mock test init */
-test_mockable void test_init(void) { }
+test_mo... |
Prevent unnecessary polling for ZNCZ04LM | "default": "none"
},
{
- "name": "state/on",
- "refresh.interval": 5
+ "name": "state/on"
},
{
"name": "state/reachable"
"eval": "Item.val = Math.round(Attr.val);",
"fn": "xiaomi:special",
"idx": "0x97"
+ },
+ "read": {
+ "fn": "none"
}
},
{
},
{
"name": "state/power",
- "refresh.interval": 300,
+ "refresh.interval": 1... |
invites: redirect multiple member DMs to messages | @@ -61,7 +61,7 @@ export function InviteItem(props: InviteItemProps) {
if (props.groups?.[resource]?.hidden) {
const { metadata } = associations.graph[resource];
- if (name.startsWith("dm--")) {
+ if (metadata?.module === 'chat') {
history.push(`/~landscape/messages/resource/${metadata.module}${resource}`);
} else {
hi... |
switch to postbootscripts | @@ -36,7 +36,7 @@ the {\em ib0} interface:
# Define ib0 netmask
[sms](*\#*) chdef -t network -o ib0 mask=$ipoib_netmask
# Enable secondary NIC configuration
-[sms](*\#*) chdef compute -p postscripts=confignics
+[sms](*\#*) chdef compute -p postbootscripts=confignics
# Register desired IPoIB IPs per compute
[sms](*\#*) ... |
fixes bug that did not enable seccomp for oidc-token | @@ -148,7 +148,7 @@ static inline void initArguments(struct arguments* arguments) {
arguments->min_valid_period = 0;
arguments->args[0] = NULL;
arguments->scopes = NULL;
- arguments->noSeccomp = 1;
+ arguments->noSeccomp = 0;
arguments->expiration_env.str = NULL;
arguments->expiration_env.useIt = 0;
arguments->token_en... |
sysrepo BUGFIX correct operation for get_next_change val variant | @@ -3362,12 +3362,6 @@ sr_get_change_next(sr_session_ctx_t *session, sr_change_iter_t *iter, sr_change_
/* create values */
switch (op) {
- case SR_OP_CREATED:
- *old_value = NULL;
- if ((err_info = sr_lyd_node2sr_val(node, NULL, NULL, new_value))) {
- return sr_api_ret(session, err_info);
- }
- break;
case SR_OP_DELET... |
Typo correction
Merges | #define RTC_I2C_CTRL_REG (DR_REG_RTC_I2C_BASE + 0x004)
/* RTC_I2C_RX_LSB_FIRST : R/W ;bitpos:[7] ;default: 1'b0 ; */
-/*description: Send LSB first */
+/*description: Receive LSB first */
#define RTC_I2C_RX_LSB_FIRST BIT(7)
#define RTC_I2C_RX_LSB_FIRST_M BIT(7)
#define RTC_I2C_RX_LSB_FIRST_V (1)
#define RTC_I2C_RX_LSB_... |
seccomp: Refactor seccompProfileAddLabelsAndAnnotations
This commit tries to simplify the code by avoiding recomputing the pod
name and making the function independent from pubsub. | @@ -165,17 +165,9 @@ func genPubSubKey(name string) pubSubKey {
func seccompProfileAddLabelsAndAnnotations(
r *seccompprofilev1alpha1.SeccompProfile,
trace *gadgetv1alpha1.Trace,
- event *pubsub.PubSubEvent,
+ podName string,
containerName string,
) {
- var podName string
- if event != nil {
- podName = fmt.Sprintf("%s... |
Clobber was taken care of | @@ -288,8 +288,6 @@ if api is None:
print("Importing IDA data ...")
-# TODO: Clobber 0x141697D60! "Common::Lua::LuaState", "Common::Lua::LuaThread"
-
class FfxivClassFactory:
# {name: ea}
_vtbls_ea = [] # type: List[int]
|
out_azure_blob: adjust test formatter callback params | @@ -41,6 +41,7 @@ static int azure_blob_format(struct flb_config *config,
struct flb_input_instance *ins,
void *plugin_context,
void *flush_ctx,
+ int event_type,
const char *tag, int tag_len,
const void *data, size_t bytes,
void **out_data, size_t *out_size)
@@ -111,6 +112,7 @@ static int send_blob(struct flb_config *... |
feat: add a rudimentary pointer check for the operands of json_inject | #include "ntl.h"
#include "json-actor.h"
+static void assert_is_pointer(void * p)
+{
+ if (NULL == p)
+ return;
+
+ /*
+ * This is a poor man's method to check if
+ * p is a legit pointer.
+ */
+ char * x = (char *)p;
+ static char c; // has to be a static variable
+ c = *x;
+}
+
+
extern char *
json_escape_string (siz... |
examples/firhilb-interp: fixing typo with number of samples processed | @@ -43,7 +43,7 @@ int main() {
firhilbf_destroy(q);
printf("firhilb interpolated %u complex samples to %u real samples\n",
- 2*num_samples, num_samples);
+ num_samples, 2*num_samples);
//
// export results to file
|
Fix cert creation in the store
When we create a cert in the store, make sure we do so with the libctx
and propq associated. | @@ -442,8 +442,6 @@ static int try_cert(struct extracted_param_data_st *data, OSSL_STORE_INFO **v,
{
if (data->object_type == OSSL_OBJECT_UNKNOWN
|| data->object_type == OSSL_OBJECT_CERT) {
- X509 *cert;
-
/*
* In most cases, we can try to interpret the serialized
* data as a trusted cert (X509 + X509_AUX) and fall bac... |
OcDeviceMiscLib: Fix typo in BS table size calculation | @@ -78,8 +78,8 @@ OcForgeUefiSupport (
DEBUG_INFO,
"OCDM: Found 0x%X UEFI version (%u bytes, rebuilding to %u)\n",
gST->Hdr.Revision,
- gST->Hdr.HeaderSize,
- (UINT32) sizeof (*gBS)
+ gBS->Hdr.HeaderSize,
+ (UINT32) sizeof (EFI_BOOT_SERVICES)
));
//
@@ -89,20 +89,20 @@ OcForgeUefiSupport (
return EFI_ALREADY_STARTED;
}... |
Add code to save reader pointer | @@ -209,6 +209,7 @@ int LCUI_InitJPEGReader( LCUI_ImageReader reader )
cinfo->src = (struct jpeg_source_mgr*)jpeg_reader;
cinfo->err = jpeg_std_error( &jpeg_reader->err.pub );
jpeg_reader->err.pub.error_exit = JPEGReader_OnErrorExit;
+ jpeg_reader->err.reader = reader;
return 0;
#else
LOG( "warning: not JPEG support!" ... |
Native warnings | CC = gcc
-CFLAGS = -Wall -c -fPIC -O2 -g -Wno-pointer-sign -Wno-unused-function -Wno-strict-aliasing -Wno-discarded-qualifiers
+CFLAGS = -Wall -c -fPIC -O2 -g -Wno-pointer-sign -Wno-unused-function -Wno-strict-aliasing -Wno-discarded-qualifiers -Wno-unused-const-variable
CXXFLAGS = -Wall -fPIC -fpermissive -O2 -g -Wno-... |
removed needless newline. | @@ -236,7 +236,6 @@ static uint8_t s2n_verify_host_information(struct s2n_x509_validator *validator,
verified = conn->verify_host_fn(address_ptr, strlen(address_ptr), conn->data_for_verify_host);
}
}
-
}
GENERAL_NAMES_free(names_list);
|
Fix noconsole.exe
The linker flag "-mwindows" has no effect on my current MinGW.
Instead, passing "-Wl,--subsystem,windows" works.
Fixes <https://github.com/Genymobile/scrcpy/issues/691> | @@ -123,10 +123,8 @@ configure_file(configuration: conf, output: 'config.h')
src_dir = include_directories('src')
if get_option('windows_noconsole')
- c_args = [ '-mwindows' ]
- link_args = [ '-mwindows' ]
+ link_args = [ '-Wl,--subsystem,windows' ]
else
- c_args = []
link_args = []
endif
@@ -134,7 +132,7 @@ executable... |
haskell-debian-stretch: fix bindings dependency handling | @@ -79,12 +79,12 @@ if (NOT BUILD_STATIC)
"${CMAKE_CURRENT_BINARY_DIR}/dist/build/testhaskell_realworld/testhaskell_realworld"
"${CMAKE_CURRENT_BINARY_DIR}/dist/build/testhaskell_realworld_optimized/testhaskell_realworld_optimized"
)
- file (WRITE "${CMAKE_CURRENT_BINARY_DIR}/cabalOptionalDependencies.cmake"
+ file (WR... |
Make titan work with Lua5.4
The Lua stack is now a StackValue[] instead of TValue[]
ttype instead of ttnov | @@ -73,7 +73,7 @@ int luaopen_${MODNAME}(lua_State *L)
CClosure *func = luaF_newCclosure(L, 1);
func->f = init_${MODNAME};
sethvalue(L, &func->upvalue[0], titan_globals);
- setclCvalue(L, L->top, func);
+ setclCvalue(L, &L->top->val, func);
api_incr_top(L);
lua_call(L, 0, 0);
@@ -312,17 +312,17 @@ generate_program = fu... |
Rewrite detectBpfKtimeGetBootNs using sync.Once | @@ -17,6 +17,7 @@ package gadgets
import (
"encoding/binary"
"net/netip"
+ "sync"
"time"
"unsafe"
@@ -146,22 +147,32 @@ func WallTimeFromBootTime(ts uint64) types.Time {
return types.Time(time.Unix(0, int64(ts)).Add(timeDiff).UnixNano())
}
-// detectBpfKtimeGetBootNs returns true if bpf_ktime_get_boot_ns is available
+... |
RISC-V support for the SHA256 | @@ -129,18 +129,63 @@ static const SHA_LONG K256[64] = {
0x90befffaUL, 0xa4506cebUL, 0xbef9a3f7UL, 0xc67178f2UL
};
+# ifndef PEDANTIC
+# if defined(__GNUC__) && __GNUC__>=2 && \
+ !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
+# if __riscv_zknh
+# define Sigma0(x) ({ MD32_REG_T ret; \
+ asm ("sha256sum0 %... |
Updated (C) year on help dialog. | @@ -1795,7 +1795,7 @@ load_sort_win (WINDOW * main_win, GModule module, GSort * sort) {
/* Help menu data (F1/h). */
static const char *help_main[] = {
- "Copyright (C) 2009-2020 by Gerardo Orellana",
+ "Copyright (C) 2009-2021 by Gerardo Orellana",
"https://goaccess.io - <hello@goaccess.io>",
"Released under the MIT L... |
framesync64: returning EVM from qpilotsync | @@ -435,7 +435,7 @@ void framesync64_execute_rxpayload(framesync64 _q,
// invoke callback
if (_q->callback != NULL) {
// set framestats internals
- _q->framestats.evm = 0.0f; //20*log10f(sqrtf(_q->framestats.evm / 600));
+ _q->framestats.evm = qpilotsync_get_evm(_q->pilotsync);
_q->framestats.rssi = 20*log10f(_q->gamma... |
out_td: use new upstream prototype for tls handling | @@ -168,7 +168,7 @@ static int cb_td_init(struct flb_output_instance *ins, struct flb_config *config
upstream = flb_upstream_create(config,
ins->host.name,
ins->host.port,
- FLB_IO_TLS, (void *) &ins->tls);
+ FLB_IO_TLS, ins->tls);
if (!upstream) {
flb_free(ctx);
return -1;
|
native-armv7; stack initialization for tasks was violating ARM call rules.
Task stack init routine departed with $sp pointing to value which was
not aligned to 8 byte boundary. | os_arch_frame_init:
mov r1, sp
mov sp, r0 /* stack for the task starts from sf */
- sub sp, sp, #20
+ sub sp, sp, #24 /* stack must be aligned by 8 */
str r1, [sp, #12]
str lr, [sp, #16] /* Store LR there */
str r0, [sp, #4] /* Store sf pointer to stack */
@@ -40,6 +40,7 @@ os_arch_frame_init:
beq end
mov r1, r0
ldr r0... |
separate down and up losses | @@ -45,7 +45,8 @@ struct connection_t {
struct sockaddr_storage ss;
socklen_t len;
} down_addr;
- uint64_t packet_num;
+ uint64_t packet_num_up;
+ uint64_t packet_num_down;
};
struct queue_t {
@@ -198,13 +199,13 @@ static int read_queue(struct queue_t *q, struct connection_t *conn, int64_t now)
}
assert(conn != NULL);
... |
testcase/ta_tc: Add tc for task_manager_set_termination_cb
If resource deallocation callback is registered, resources will be released when requested to terminate the task. | #include <tinyara/config.h>
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <sys/types.h>
@@ -39,6 +40,8 @@ static bool flag;
static task_info_t *sample_info;
static task_info_list_t *group_list_info;
static task_info_list_t *sample_list_info;
+static int *a... |
in_opentelemetry: add missing header | #include <monkey/mk_http_parser.h>
#include <monkey/mk_utils.h>
+#include "opentelemetry.h"
+
struct http_conn {
struct mk_event event; /* Built-in event data for mk_events */
int fd; /* socket connection */
|
param indication: better without clear | @@ -26,9 +26,6 @@ typedef struct clap_plugin_param_indication {
clap_id param_id,
bool is_mapped,
const clap_color_t *mapping_color);
-
- // Clears all parameters mapping indications
- void(CLAP_ABI *clear)(const clap_plugin_t *plugin);
} clap_plugin_param_indication_t;
#ifdef __cplusplus
|
s3: adding v4 signatures for updated compatibility | @@ -34,7 +34,8 @@ const useStorage = ({ accept = '*' } = { accept: '*' }): IuseStorage => {
}
client.current = new S3Client({
credentials: s3.credentials,
- endpoint: s3.credentials.endpoint
+ endpoint: s3.credentials.endpoint,
+ signatureVersion: 'v4'
});
}
}, [gcp.token, s3.credentials]);
|
Security review code linting | @@ -703,7 +703,6 @@ bool set_struct_field(uint8_t length, const uint8_t *const data) {
// check TypeSize flag in TypeDesc
if (*typedesc_ptr & TYPESIZE_MASK) {
-
// TYPESIZE and TYPE_CUSTOM are mutually exclusive
if ((*typedesc_ptr & TYPE_MASK) == TYPE_CUSTOM) {
apdu_response_code = APDU_RESPONSE_CONDITION_NOT_SATISFIED... |
clay: remove $dork
seems that this structure has been unused since
and confuses
newbies trying to figure out exactly what the commit
structure is (which is how I came across this) | fod=flue :: ford cache
== ::
::
-:: Commit state.
-::
-:: -- `del` is the paths we're deleting.
-:: -- `ink` is the insertions of hoon files (short-circuited for
-:: bootstrapping).
-:: -- `ins` is all the other insertions.
-:: -- `dif` is the diffs in `dig` applied to their files.
-:: -- `mut` is the diffs between `mu... |
lower-bound westwood window reduction to not reduce the window lower than newreno | @@ -94,10 +94,12 @@ static __attribute__((always_inline)) void westwood_enter_recovery(picoquic_cnx_
uint64_t current_time, uint64_t *cwin)
{
+ uint64_t newreno_behaviour = *cwin/2;
westwood_state->ssthresh = 0;
// westwood cwin reduction formula
if (westwood_state->last_rtt_value != -1)
westwood_state->ssthresh = west... |
Add explicit cast to silence a warning
for | @@ -97,7 +97,7 @@ int NAME(blasint *N, FLOAT *a, blasint *LDA, blasint *K1, blasint *K2, blasint *
blas_level1_thread(mode, n, k1, k2, dummyalpha,
a, lda, NULL, 0, ipiv, incx,
- laswp[flag], nthreads);
+ (int(*)())laswp[flag], nthreads);
}
#endif
|
Remove never-hit condition from RCID handler
As we are already checking `frame.sequence < next_path_id` and
we never issue CID with sequence >= MAX_PATH_ID, we will never hit
this condition. | @@ -4844,11 +4844,6 @@ static int handle_retire_connection_id_frame(quicly_conn_t *conn, struct st_quic
if (c->state == QUICLY_ISSUED_CID_STATE_PENDING)
conn->issued_cid.num_pending--;
c->state = QUICLY_ISSUED_CID_STATE_IDLE;
- if (++conn->issued_cid.num_retired >= QUICLY_MAX_PATH_ID - 1) {
- /* we've used up the entir... |
baseboard/octopus/baseboard.c: Format with clang-format
BRANCH=none
TEST=none | @@ -245,20 +245,19 @@ DECLARE_HOOK(HOOK_INIT, baseboard_tcpc_init, HOOK_PRIO_INIT_I2C + 2);
int board_set_active_charge_port(int port)
{
- int is_valid_port = (port >= 0 &&
- port < board_get_usb_pd_port_count());
+ int is_valid_port = (port >= 0 && port < board_get_usb_pd_port_count());
int i;
if (!is_valid_port && po... |
Make it build without INTERRUPT_ENABLE | @@ -132,7 +132,13 @@ static int lgpio_mode( lua_State* L )
NODE_DBG("pin,mode,pullup= %d %d %d\n",pin,mode,pullup);
NODE_DBG("Pin data at mode: %d %08x, %d %d %d, %08x\n",
- pin, pin_mux[pin], pin_num[pin], pin_func[pin], pin_int_type[pin], gpio_cb_ref[pin]);
+ pin, pin_mux[pin], pin_num[pin], pin_func[pin],
+#ifdef GP... |
external/trace: Print timestamps in prlog()'s format
Make the trace tool's output format match that of skiboot's prlog().
Printing a timebase tick count in hex isn't terribly useful and having
a common format makes correlating trace entries to log entries much
easier. | @@ -45,13 +45,18 @@ static void *ezalloc(size_t size)
return p;
}
+#define TB_HZ 512000000ul
+
static void display_header(const struct trace_hdr *h)
{
static u64 prev_ts;
u64 ts = be64_to_cpu(h->timestamp);
- printf("%16lx (+%8lx) [%03x] : ",
- ts, prev_ts ? (ts - prev_ts) : 0, be16_to_cpu(h->cpu));
+ printf("[%5lu.%09... |
npm: add preSig func to npm lib | @@ -141,6 +141,18 @@ export function dateToDa(d: Date, mil: boolean = false): string {
);
}
+export function preSig(ship: string): string {
+ if (!ship) {
+ return '';
+ }
+
+ if (ship.trim().startsWith('~')) {
+ return ship.trim();
+ }
+
+ return '~'.concat(ship.trim());
+}
+
export function deSig(ship: string): strin... |
board/host/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -67,45 +67,31 @@ test_mockable void fps_event(enum gpio_signal signal)
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
#ifdef I2C_PORT_BATTERY
- {
- .name = "battery",
+ { .name = "battery",
.port = I2C_PORT_BATTERY,
.kbps = 100,
.scl = 0,
- .sda = 0
- },
+ .sda = 0 },
#elif defined I2C_PORT_LIGHTBAR
- {
- .... |
mmap(2): essentially ignore hints, and only allow overlapping if MAP_FIXED specified | @@ -549,10 +549,15 @@ static sysreturn mmap(void *target, u64 size, int prot, int flags, int fd, u64 o
if ((prot & PROT_WRITE))
vmflags |= VMAP_FLAG_WRITABLE;
- /* Fixed or hint address */
+ /* Don't really try to honor a hint, only fixed. */
boolean fixed = (flags & MAP_FIXED) != 0;
- u64 where = u64_from_pointer(targ... |
symver: add kdbio symbols | @@ -44,4 +44,22 @@ libelektra_0.8 {
elektraIoTimerSetBindingData;
elektraIoTimerSetEnabled;
elektraIoTimerSetInterval;
+
+ # kdbio/adapters/dbus.h
+ elektraIoAdapterDbusAttach;
+ elektraIoAdapterDbusCleanup;
+
+ # kdbio/adapters/zeromq.h
+ elektraIoAdapterZeroMqAttach;
+ elektraIoAdapterZeroMqSetContext;
+ elektraIoAda... |
if single prior => denom is 1 | @@ -559,9 +559,12 @@ namespace NCatboostCuda {
TCtrConfig defaultConfig;
defaultConfig.Prior = prior;
+ if (defaultConfig.Prior.size() == 1) {
+ defaultConfig.Prior.push_back(1);
+ }
defaultConfig.Type = type;
defaultConfig.CtrBinarizationConfigId = GetOrCreateCtrBinarizationId(ctrDescription.CtrBinarization);
- CB_ENS... |
u3: fixes bug in snapshot image truncation | @@ -621,7 +621,7 @@ _ce_patch_apply(u3_ce_patch* pat_u)
if ( u3P.nor_u.pgs_w > pat_u->con_u->nor_w ) {
c3_w ret_w;
- ret_w = ftruncate(u3P.nor_u.fid_i, u3P.nor_u.pgs_w << (u3a_page + 2));
+ ret_w = ftruncate(u3P.nor_u.fid_i, pat_u->con_u->nor_w << (u3a_page + 2));
if (ret_w){
fprintf(stderr, "loom: patch apply truncate... |
bignum_mod_raw.py: Moved Classes outside of slots
This patch moves `BignumModRawOperation` and `BignumModRawOperationArchSplit`
outside of the scaffolding merge slot.
It also renames `r_sqrt` property to `r2`. | @@ -26,31 +26,6 @@ class BignumModRawTarget(test_data_generation.BaseTarget, metaclass=ABCMeta):
"""Target for bignum mod_raw test case generation."""
target_basename = 'test_suite_bignum_mod_raw.generated'
-# BEGIN MERGE SLOT 1
-
-# END MERGE SLOT 1
-
-# BEGIN MERGE SLOT 2
-
-# END MERGE SLOT 2
-
-# BEGIN MERGE SLOT 3... |
Add DTLS support to the large app data test | @@ -1547,6 +1547,8 @@ static int test_large_app_data(int tst)
int testresult = 0, prot;
unsigned char *msg, *buf = NULL;
size_t written, readbytes;
+ const SSL_METHOD *smeth = TLS_server_method();
+ const SSL_METHOD *cmeth = TLS_client_method();
switch (tst >> 2) {
case 0:
@@ -1589,12 +1591,32 @@ static int test_large_... |
Passing parameters was a mess so I removed that feature | @@ -482,16 +482,6 @@ import TrueTime
return RunScriptIntentHandler()
} else if intent is RunCodeIntent {
return RunCodeIntentHandler()
- } else if intent is ImportModuleIntent {
- return ImportModuleIntentHandler()
- } else if intent is GetPropertyIntent {
- return GetPropertyIntentHandler()
- } else if intent is CallF... |
removed depricated entry | @@ -4,9 +4,6 @@ added new option filter mode 3:
--filterlist=<file> : mac filter list
format: 112233445566 + comment
maximum line lenght 255, maximum entries 64
- important note:
- only used in the transmission branch
- the receiving branch remains untouched
--filtermode=<digit> : mode for filter list
1: use filter lis... |
API Example: Python using ordered dict | @@ -12,6 +12,7 @@ import sys
from eccodes import *
from datetime import date
+from collections import OrderedDict
INPUT = '../../data/regular_latlon_surface_constant.grib1'
OUTPUT = 'out.set.grib'
@@ -39,15 +40,23 @@ def example():
print 'get date as a string - date = %s' % dateStrVal[0]
# Now do the same but using set... |
[ab32] rt_rtc_control->ab32_rtc_control | @@ -182,7 +182,7 @@ static void rt_rtc_init(void)
hal_rtc_init();
}
-static rt_err_t rt_rtc_control(rt_device_t dev, int cmd, void *args)
+static rt_err_t ab32_rtc_control(rt_device_t dev, int cmd, void *args)
{
rt_err_t result = RT_EOK;
RT_ASSERT(dev != RT_NULL);
@@ -224,7 +224,7 @@ const static struct rt_device_ops r... |
Convert < to isless comparison for quiet NaN handling | @@ -625,15 +625,16 @@ static void print_footer(const ScsData *d, const ScsCone *k, ScsSolution *sol,
static scs_int has_converged(ScsWork *w, ScsResiduals *r, scs_int iter) {
scs_float eps = w->stgs->eps;
- if (r->res_pri < eps && r->res_dual < eps && r->rel_gap < eps) {
+ if (isless(r->res_pri, eps) && isless(r->res_d... |
Continue with fixed seed-length changes, don't append pass | [inp (to-byts 'urbitkeygen')]
::
++ child-node-from-seed
- |= [seed=byts met=meta pass=(unit @t)]
+ |= [seed=@ met=meta pass=(unit @t)]
^- node
=+ dr=~(. sd pass)
=+ child-seed=(seed:dr seed met)
- :+ met dat.child-seed
+ :+ met child-seed
(wallet:dr child-seed)
::
++ full-wallet-from-ticket
++ full-wallet-from-seed
|=... |
Do not show output of PostgreSQL upgrade status check in user guide.
On some platforms the output may contain characters that the latex code is not prepared to handle.
Showing the command is much more important than showing the output, so no big loss. | <execute-list host="{[host-pg1]}">
<title>Check configuration</title>
- <execute user="postgres" output="y" filter="n">
+ <execute user="postgres" output="n" filter="n">
<exe-cmd>{[pg-cluster-check-upgrade]}</exe-cmd>
</execute>
|
{AH} update gitignore | @@ -14,6 +14,7 @@ tests/*.sam
tests/*.fai
tests/pysam_data
tests/cbcf_data
+tests/tabix_data
samtools/config.h
htslib/config.status
@@ -52,6 +53,7 @@ var/
*.egg-info/
.installed.cfg
*.egg
+doc/_build
# Installer logs
pip-log.txt
|
rm extra reference to AudioStream; | @@ -28,7 +28,6 @@ LOVR_EXPORT int luaopen_lovr_timer(lua_State* L);
extern const luaL_Reg lovrModules[];
// Objects
-extern const luaL_Reg lovrAudioStream[];
extern const luaL_Reg lovrBallJoint[];
extern const luaL_Reg lovrBlob[];
extern const luaL_Reg lovrBoxShape[];
|
Mark additional helper function as inline | @@ -147,7 +147,7 @@ static u32 (*bpf_get_prandom_u32)(void) =
static int (*bpf_trace_printk_)(const char *fmt, u64 fmt_size, ...) =
(void *) BPF_FUNC_trace_printk;
int bpf_trace_printk(const char *fmt, ...) asm("llvm.bpf.extra");
-static void bpf_tail_call_(u64 map_fd, void *ctx, int index) {
+static inline void bpf_ta... |
sys/coredump; fix case where core does not fit to allocated area.
Fix the size computation when region has to be split into
multiple areas. | @@ -109,10 +109,16 @@ coredump_dump(void *regs, int regs_sz)
area_end = area_off + cur->hbmd_size;
while (area_off < area_end) {
tlv.ct_type = COREDUMP_TLV_MEM;
- if (cur->hbmd_size > USHRT_MAX) {
- tlv.ct_len = SHRT_MAX + 1;
+ if (area_end - area_off > USHRT_MAX) {
+ tlv.ct_len = USHRT_MAX - 3; /* 0xfffc */
} else {
-... |
fix go 11 http2 tlsServer | @@ -259,21 +259,13 @@ adjustGoStructOffsetsForVersion()
g_go_schema->struct_offsets.cc_to_fr=0xd0;
}
- if (g_go_minor_ver == 11) {
- g_go_schema->arg_offsets.c_http2_client_read_cc=0x78;
- g_go_schema->arg_offsets.c_http2_server_read_sc=0x128;
- g_go_schema->arg_offsets.c_http2_server_preface_sc=0x110;
- g_go_schema->a... |
vwebp: disable double buffering on windows & mac
this results in flickering with animated webp + alpha. disabling the
option is a workaround to restore the behavior to the previous release. | @@ -378,13 +378,23 @@ static void HandleDisplay(void) {
}
}
glPopMatrix();
+#if defined(__APPLE__) || defined(_WIN32)
+ glFlush();
+#else
glutSwapBuffers();
+#endif
}
static void StartDisplay(void) {
const int width = kParams.canvas_width;
const int height = kParams.canvas_height;
+ // TODO(webp:365) GLUT_DOUBLE result... |
Avoid a crash when an Avahi or mDNS printer has neither device-uri nor printer-uri-supported set. | @@ -1142,7 +1142,7 @@ _cupsGetDestResource(
DEBUG_printf(("1_cupsGetDestResource: device-uri=\"%s\", printer-uri-supported=\"%s\".", device_uri, printer_uri));
#ifdef HAVE_DNSSD
- if (((flags & CUPS_DEST_FLAGS_DEVICE) || !printer_uri) && strstr(device_uri, "._tcp"))
+ if (((flags & CUPS_DEST_FLAGS_DEVICE) || !printer_u... |
check the size of the payload, rather than the buffer size | @@ -1148,7 +1148,7 @@ static void stream_emit_pending_data(struct st_h2o_http2client_stream_t *stream)
if (payload_size == 0 && !end_stream)
return;
char *dst = h2o_buffer_reserve(&stream->conn->output.buf, H2O_HTTP2_FRAME_HEADER_SIZE + payload_size).base;
- h2o_http2_encode_frame_header((void *)dst, stream->output.buf... |
Don't set a name for new procedures
Don't set a name for new procedures otherwise the placeholder name is never used | @@ -505,7 +505,6 @@ const addProcedure = (state, action) => {
const newProcedure = Object.assign(
{
id: action.id,
- name: 'Procedure Name',
variables: {},
actors: {},
script: {}
|
rpm: let rpm find shared library dependencies | @@ -23,19 +23,19 @@ Obsoletes: ixpdimm-cli < 01.00.00.3000
%description
Utility for managing Intel Optane DC persistent memory modules
Supports functionality to:
-Discover PMMs on the platform.
+Discover DCPMMs on the platform.
Provision the platform memory configuration.
-View and update the firmware on PMMs.
-Configu... |
platform/mowgli: modify VPD to export correct data to system VPD EEPROM
Hostboot doesn't export the correct data for the system VPD EEPROM for this system.
So add vpd_dt_fixup().
Cc: | @@ -31,6 +31,24 @@ static const struct slot_table_entry mowgli_phb_table[] = {
{ .etype = st_end },
};
+/*
+ * HACK: Hostboot doesn't export the correct data for the system VPD EEPROM
+ * for this system. So we need to work around it here.
+ */
+static void vpd_dt_fixup(void)
+{
+ struct dt_node *n = dt_find_by_path(dt... |
Make source_compare consistent: also compare src_plen. | @@ -56,6 +56,11 @@ source_compare(const unsigned char *id,
if(rc != 0)
return rc;
+ if(src_plen < src->src_plen)
+ return -1;
+ if(src_plen > src->src_plen)
+ return 1;
+
rc = memcmp(src_prefix, src->src_prefix, 16);
if(rc != 0)
return rc;
|
[build] PGSQL_CFLAGS with pkg-config for postgres
x-ref:
"pg_config is deprecated to build postgres client applications" | @@ -298,7 +298,7 @@ AC_ARG_WITH([pgsql],
)
AC_MSG_RESULT([$WITH_PGSQL])
-PGSQL_INCLUDE=
+PGSQL_CFLAGS=
PGSQL_LIBS=
if test "$WITH_PGSQL" != no; then
@@ -320,12 +320,12 @@ if test "$WITH_PGSQL" != no; then
AC_MSG_ERROR([pg_config not exists or not executable, use --with-pgsql=path-to-pg_config])
fi
- PGSQL_INCLUDE="-I`"... |
sn5s330: Test I2C fail in sn5s330_discharge_vbus()
Ensure we return an error code when an I2C read error occurs in
sn5s330_discharge_vbus()
BRANCH=None
TEST=zmake -D configure --test test-drivers | @@ -557,6 +557,18 @@ ZTEST(ppc_sn5s330, test_set_vbus_source_current_limit_fail)
ret);
}
+ZTEST(ppc_sn5s330, test_sn5s330_discharge_vbus_fail)
+{
+ struct i2c_emul *i2c_emul = sn5s330_emul_to_i2c_emul(EMUL);
+ int ret;
+
+ i2c_common_emul_set_read_fail_reg(i2c_emul, SN5S330_FUNC_SET3);
+
+ ret = sn5s330_drv.discharge_v... |
Add AddonContentsFinderConfirm | @@ -2992,6 +2992,10 @@ classes:
vtbls:
- ea: 0x141880E58
base: Component::GUI::AtkUnitBase
+ Client::UI::AddonContentsFinderConfirm:
+ vtbls:
+ - ea: 0x1418812A8
+ base: Component::GUI::AtkUnitBase
Client::UI::AddonRaidFinder:
vtbls:
- ea: 0x141881930
|
bignum_tests: Added test for `mbedtls_mpi_mod_raw_to_mont_rep()` | @@ -294,7 +294,43 @@ exit:
/* END MERGE SLOT 6 */
/* BEGIN MERGE SLOT 7 */
+/* BEGIN_CASE */
+void mpi_mod_raw_to_mont_rep( char * input_N, char * input_A, char * input_X )
+{
+ mbedtls_mpi N, A, X;
+ mbedtls_mpi_mod_modulus m;
+
+ mbedtls_mpi_init( &N );
+ mbedtls_mpi_init( &A );
+ mbedtls_mpi_init( &X );
+
+ /* Read ... |
file-server: inline docs for actions | /- glob
|%
+$ action
- $% [%serve-dir url-base=path clay-base=path public=? spa=?]
+ $% :: %serve-dir: from clay directory
+ ::
+ :: url-base site path to route from
+ :: clay-base clay path to route to
+ :: public if false, require login
+ :: spa if true, `404` becomes `clay-base/index.html`
+ ::
+ [%serve-dir url-bas... |
update ya tool arc
sort branches by name
put commit message as a description of a PR in case of only one commit in the source branch | },
"arc": {
"formula": {
- "sandbox_id": [421857686],
+ "sandbox_id": [421982617],
"match": "arc"
},
"executable": {
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.