message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
test UPDATE flags fix | @@ -5716,17 +5716,6 @@ cache_diff_change_cb(sr_session_ctx_t *session, uint32_t sub_id, const char *mod
ret = sr_get_change_next(session, iter, &op, &old_val, &new_val);
assert_int_equal(ret, SR_ERR_OK);
- assert_int_equal(op, SR_OP_CREATED);
- assert_null(old_val);
- assert_non_null(new_val);
- assert_string_equal(new... |
improve to generate cmake | @@ -144,6 +144,9 @@ function _add_target_sources(cmakelists, target)
for _, sourcefile in ipairs(target:sourcefiles()) do
cmakelists:print(" " .. _get_unix_path(sourcefile))
end
+ for _, headerfile in ipairs(target:headerfiles()) do
+ cmakelists:print(" " .. _get_unix_path(headerfile))
+ end
cmakelists:print(")")
end
|
btc: copy truncated address | @@ -19,13 +19,14 @@ export default class Balance extends Component {
this.state = {
sending: false,
- copied: false,
+ copiedButton: false,
+ copiedString: false,
}
this.copyAddress = this.copyAddress.bind(this);
}
- copyAddress() {
+ copyAddress(arg) {
let address = this.props.state.address;
function listener(e) {
e.c... |
docs - when to set *_collapse_limit gucs to a smaller value | @@ -249,6 +249,14 @@ Gather Motion 2:1 (slice1; segments: 2) (cost=0.00..20.88 rows=1 width=13)
adjust <codeph>enable_<operator> </codeph>parameters to see if you can force the
Postgres Planner to choose a different plan by disabling a particular
query plan operator for that query.</li>
+ <li id="in1825305"><b>Do... |
Let example/convert-to-nia handle I/O redirects | @@ -239,7 +239,11 @@ load_image_type() {
}
TRY(read_more_src());
}
+ return NULL;
+}
+const char* //
+initialize_image_decoder() {
wuffs_base__status status;
switch (g_fourcc) {
case WUFFS_BASE__FOURCC__BMP:
@@ -285,14 +289,63 @@ load_image_type() {
return "main: unsupported file format";
}
+const char* //
+advance_for... |
Fix test/recipes/95-test_external_krb5.t
"skip() needs to know $how_many tests are in the block" | @@ -16,7 +16,7 @@ setup("test_external_krb5");
plan tests => 1;
SKIP: {
- skip "No external tests in this configuration"
+ skip "No external tests in this configuration", 1
if disabled("external-tests");
skip "krb5 not available", 1
if ! -f srctop_file("krb5", "README");
|
refactor(Warning):
resolve "Warning(api_hw_bcs.c) : unused variable 'status' " | @@ -507,7 +507,10 @@ BOAT_RESULT BoatHwbcsTxInit(BoatHwbcsTx *tx_ptr,
mbedtls_x509_crt m_certificate;
mbedtls_x509_crt_init(&m_certificate);
uint32_t status = mbedtls_x509_crt_parse(&m_certificate, (const unsigned char *)tx_ptr->wallet_ptr->account_info.cert.field_ptr, tx_ptr->wallet_ptr->account_info.cert.field_len);
... |
esp_netif tests: Add manual DHCP state transision tests
Extended test cases for DHCP server and DHCP client state transitions to include also manual transitions using esp_netif_dhcps_start/stop() esp_netif_dhcpc_start/stop() | @@ -84,8 +84,20 @@ TEST_CASE("esp_netif: test dhcp client state transitions for wifi station", "[es
TEST_ASSERT_EQUAL(ESP_NETIF_DHCP_INIT, state);
esp_netif_action_connected(sta, NULL, 0, NULL);
TEST_ASSERT_EQUAL(ESP_OK, esp_netif_dhcpc_get_status(sta, &state));
+ TEST_ASSERT_EQUAL(ESP_NETIF_DHCP_STARTED, state);
+ // ... |
BugID:17420256:set PK DN DS to adapt new MQTT APIs | @@ -61,6 +61,9 @@ static void handle_ota_cmd(char *buf, int blen, int argc, char **argv)
strncpy(ctx.dn, argv[2], sizeof(ctx.dn)-1);
strncpy(ctx.ds, argv[3], sizeof(ctx.ds)-1);
strncpy(ctx.ps, argv[4], sizeof(ctx.ps)-1);
+ HAL_SetProductKey(ctx.pk);
+ HAL_SetDeviceName(ctx.dn);
+ HAL_SetDeviceSecret(ctx.ds);
HAL_SetPro... |
sve/add: switch some _x implementations to use _x instead of _z | @@ -38,7 +38,7 @@ SIMDE_FUNCTION_ATTRIBUTES
simde_svint8_t
simde_svadd_s8_x(simde_svbool_t pg, simde_svint8_t op1, simde_svint8_t op2) {
#if defined(SIMDE_ARM_SVE_NATIVE)
- return svadd_s8_z(pg, op1, op2);
+ return svadd_s8_x(pg, op1, op2);
#else
simde_svint8_t r;
HEDLEY_STATIC_CAST(void, pg);
@@ -112,7 +112,7 @@ SIMDE... |
Poll not manufacturer name (yet, todo own resource item) | @@ -301,7 +301,7 @@ void PollManager::pollTimerFired()
if (item && (item->toString().isEmpty() || item->toString() == QLatin1String("unknown")))
{
clusterId = BASIC_CLUSTER_ID;
- attributes.push_back(0x0004); // manufacturer
+ //attributes.push_back(0x0004); // manufacturer
attributes.push_back(0x0005); // model id
}
}... |
Fix compiler error in Ota update demo in winsim | @@ -162,9 +162,10 @@ static BaseType_t prxCreateNetworkConnection( void )
configPRINTF(( "Waiting for a network connection.\r\n" ));
( void ) xSemaphoreTake( xNetworkAvailableLock, portMAX_DELAY );
}
-
+#if defined(CONFIG_OTA_UPDATE_DEMO_ENABLED)
/* Connect to one of the network type.*/
xRet = xMqttDemoCreateNetworkCon... |
crypto: Crypto SW Scheduler Coverity Warnings
Type: fix | @@ -543,7 +543,7 @@ sw_scheduler_show_workers (vlib_main_t * vm, unformat_input_t * input,
u32 i;
vlib_cli_output (vm, "%-7s%-20s%-8s", "ID", "Name", "Crypto");
- for (i = vlib_num_workers () >= 0; i < vlib_thread_main.n_vlib_mains; i++)
+ for (i = 1; i < vlib_thread_main.n_vlib_mains; i++)
{
vlib_cli_output (vm, "%-7d... |
CHANGELOG: Add z14 hardware counter support | @@ -5,6 +5,9 @@ Release history for s390-tools (MIT version)
For Linux kernel version: 4.15
+ Changes of existing tools:
+ - lscpumf: add support for IBM z14 hardware counters
+
Bug Fixes:
- zgetdump: Fix handling of DASD multi-volume dump for partitions above 4 GB
|
add soft support for C++14 | @@ -21,7 +21,7 @@ Based on above guidelines, below are the C++ version support guidelines and futu
2. **C++11 features usability** : The 1DS SDK is written using C++11 features, and developers are encouraged to use these features as and when needed.
3. **C++14 features usability** : One of the omissisions from C++11 st... |
fix typo (taupo?) | @@ -182,7 +182,7 @@ If you were to try and draw a single "grey" pixel it will end up either black or
##### Inky Frame
-Inky Frame is a special case- the display itself supports only 7 (8 if you include its cleaning "clear" colour, which we call Tapue) colours.
+Inky Frame is a special case- the display itself supports ... |
plugins: in_tcp: removed lagging references to flb_base_conn | @@ -169,10 +169,10 @@ int tcp_conn_event(void *data)
char *tmp;
struct mk_event *event;
struct tcp_conn *conn;
- struct flb_base_conn *connection;
+ struct flb_connection *connection;
struct flb_in_tcp_config *ctx;
- connection = (struct flb_base_conn *) data;
+ connection = (struct flb_connection *) data;
conn = conne... |
Remove WDK Install Workaround | @@ -12,24 +12,6 @@ jobs:
- checkout: self
submodules: recursive
- # Temporary work around until AZP is fixed (ETA 2/28/2020).
- - task: PowerShell@1
- displayName: Install WDK for VS
- inputs:
- scriptType: inlineScript
- inlineScript: |
- try {
- $process = Start-Process `
- -FilePath "C:\Program Files (x86)\Microsoft... |
remove debug/commented out code from src/main.c | @@ -541,19 +541,6 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
}
if (options->iss) {
- // PlutoConstraints *dom = pluto_constraints_read(stdin);
- // printf("Input set\n");
- // pluto_constraints_compact_print(stdout, dom);
- // PlutoConstraints **doms = malloc(1*sizeof(PlutoConst... |
output: register flb_output_name() | @@ -515,7 +515,7 @@ static inline int flb_output_config_map_set(struct flb_output_instance *ins,
struct flb_output_instance *flb_output_new(struct flb_config *config,
const char *output, void *data);
-
+const char *flb_output_name(struct flb_output_instance *in);
int flb_output_set_property(struct flb_output_instance *... |
CI: change icmp example test address
Use a server that is inside the great firewall of china for CI test.
This avoid issues due to proxies, network configs etc. | from __future__ import unicode_literals
import re
import ttfw_idf
+import os
@ttfw_idf.idf_example_test(env_tag='Example_WIFI')
@@ -11,7 +12,10 @@ def test_examples_icmp_echo(env, extra_data):
dut.expect('example_connect: Connected to')
dut.expect('esp>')
- dut.write('ping www.espressif.com')
+
+ ping_dest = os.getenv(... |
extmod/modwebrepl: Fix logic to handle a put of file of size 0.
Fixes issue | @@ -108,6 +108,15 @@ STATIC mp_obj_t webrepl_make_new(const mp_obj_type_t *type, size_t n_args, size_
return o;
}
+STATIC void check_file_op_finished(mp_obj_webrepl_t *self) {
+ if (self->data_to_recv == 0) {
+ mp_stream_close(self->cur_file);
+ self->hdr_to_recv = sizeof(struct webrepl_file);
+ DEBUG_printf("webrepl: ... |
router_add_cluster: add post checks/fixups | @@ -695,15 +695,51 @@ router_add_server(
char *
router_add_cluster(router *r, cluster *cl)
{
- cluster *w;
+ cluster *cw;
cluster *last = NULL;
+ servers *w;
- for (w = r->clusters; w != NULL; last = w, w = w->next)
- if (strcmp(w->name, cl->name) == 0)
+ for (cw = r->clusters; cw != NULL; last = cw, cw = cw->next)
+ i... |
usdt.py: print errors to stderr in enable_probe_or_bail() | # See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import print_function
import ctypes as ct
import os, sys
from .libbcc import lib, _USDT_CB, _USDT_PROBE_CB, \
@@ -160,7 +161,7 @@ To check which probes are present in the process, use the tplist tool.... |
Reorder Configure output
"Configuring..." was displayed with './Configure LIST'. This reorders
the display of that line to happen after the "targets" LIST, TABLE and
HASH have been checked. | @@ -293,9 +293,6 @@ if (defined $ENV{$local_config_envname}) {
}
}
-
-print "Configuring OpenSSL version $config{version} ($config{version_num})\n";
-
$config{prefix}="";
$config{openssldir}="";
$config{processor}="";
@@ -853,6 +850,9 @@ if ($target eq "HASH") {
exit 0;
}
+print "Configuring OpenSSL version $config{ver... |
is31fl3743b: Move register reset code to is31fl3743b_init
This patch moves register reset code from is31fl3743b_reset to
is31fl3743b_init.
BRANCH=None
TEST=Vell | @@ -79,11 +79,6 @@ static int is31fl3743b_write(struct rgbkbd *ctx, uint8_t addr, uint8_t value)
return spi_transaction(SPI(ctx->cfg->spi), buf, frame_len, NULL, 0);
}
-static int is31fl3743b_reset(struct rgbkbd *ctx)
-{
- return is31fl3743b_write(ctx, IS31FL3743B_REG_RSTN, 0xae);
-}
-
static int is31fl3743b_enable(str... |
Working around in UIImageSetLayerContents.
Fixes | @@ -69,7 +69,9 @@ void UIImageSetLayerContents(CALayer* layer, UIImage* image) {
if ([layer contentsOrientation] != [image imageOrientation]) {
[layer setContentsOrientation:[image imageOrientation]];
}
- CGRect stretch = [image _imageStretch];
+
+ // Working around #1965; only call '_imageStretch' if 'image' is non-ni... |
test/runtest: Null-terminate segments of log entry
Overly long segments (test case name, suite name, and message) were not
being null-terminated. This caused malformed JSON to be included in the
log. | @@ -165,8 +165,10 @@ runtest_log_result(const char *msg, bool passed)
int m_len;
int len;
- /* str length of {"k":"","n":"","s":"","m":"","r":1}<token> */
- len = 35 + strlen(runtest_token);
+ /* str length of {"k":"","n":"","s":"","m":"","r":1}<token> plus three
+ * null-terminators.
+ */
+ len = 38 + strlen(runtest_t... |
Add argument to janet_panicf call | @@ -1493,7 +1493,9 @@ JanetSignal janet_pcall(
Janet janet_mcall(const char *name, int32_t argc, Janet *argv) {
/* At least 1 argument */
- if (argc < 1) janet_panicf("method :%s expected at least 1 argument");
+ if (argc < 1) {
+ janet_panicf("method :%s expected at least 1 argument", name);
+ }
/* Find method */
Jane... |
Moved init logic upstream. | ::> populate state on first boot.
::> creates our default mailbox and journal.
::
- ::TODO but now init it spread out over two arms? ugly!
- =< (ta-delta %init ~) :: side-effects
+ =< %- ta-deltas :: side-effects
+ =+ sen=(above our.bol)
+ ?: ?| !=(%czar (clan sen))
+ =(sen our.bol)
+ =(%pawn (clan our.bol))
+ ==
+ ~
+... |
board/moli/pwm.c: Format with clang-format
BRANCH=none
TEST=none | #include "pwm_chip.h"
const struct pwm_t pwm_channels[] = {
- [PWM_CH_LED_AMBER] = {
- .channel = 0,
- .flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP,
- .freq = 2000
- },
- [PWM_CH_FAN] = {
- .channel = 5,
+ [PWM_CH_LED_AMBER] = { .channel = 0,
+ .flags = PWM_CONFIG_ACTIVE_LOW |
+ PWM_CONFIG_DSLEEP,
+ .freq = 2000 ... |
Update arm_depthwise_conv_u8_basic_ver1.c | @@ -224,7 +224,7 @@ static void depthwise_conv_u8_generic(const uint8_t *input,
* @param[in] dilation_x Dilation along width. Not used and intended for future enhancement.
* @param[in] dilation_y Dilation along height. Not used and intended for future enhancement.
* @param[in] bias Pointer to optional bias values. If n... |
FIX: clear azk_count during zookeeper rejoin process | @@ -340,6 +340,13 @@ static void inc_count(int delta)
pthread_mutex_unlock(&azk_mtx);
}
+static void clear_count(void)
+{
+ pthread_mutex_lock(&azk_mtx);
+ azk_count = 0;
+ pthread_mutex_unlock(&azk_mtx);
+}
+
static int wait_count(int timeout)
{
struct timeval tv;
@@ -1674,6 +1681,8 @@ int arcus_zk_rejoin_ensemble()
{... |
fix (encrypt-async): Fix output port in example test data corresponding to the P4 change | #define encrypt4 op(encrypt, "656c6c6f776f726c6461736400000000", "5d8f891abb54cbfe8ef3a330f0853bd5")
fake_cmd_t t4p4s_testcase_common[][RTE_MAX_LCORE] = SINGLE_LCORE(
- FAST(0, 1, hETH4(ETH04, ETH1A), hIP4("00", cIP4_0, cIP4_0), PAYLOAD(encrypt1)),
- FAST(0, 1, hETH4(ETH04, ETH1A), hIP4("00", cIP4_0, cIP4_0), PAYLOAD(e... |
esp32c2/clk_cali: fix rtc slow clk cali logic | @@ -57,16 +57,21 @@ uint32_t rtc_clk_cal_internal(rtc_cal_sel_t cal_clk, uint32_t slowclk_cycles)
rtc_clk_8m_enable(true, true);
clk_ll_rc_fast_d256_digi_enable();
}
- /* Prepare calibration */
- REG_SET_FIELD(TIMG_RTCCALICFG_REG(0), TIMG_RTC_CALI_CLK_SEL, cal_clk);
/* There may be another calibration process already r... |
forgot one comment | @@ -106,7 +106,7 @@ CTEST2(p2d,sanity) {
ASSERT_TRUE(status==0);
ASSERT_DBL_NEAR(1,pk/pk_model_analytical(exp(lktest),atest));
- //Evaluate at very low z and see if it checks out
+ //Evaluate at very high z and see if it checks out
double alo=0.02;
pk=ccl_p2d_t_eval(psp,lktest,alo,NULL,&status);
ASSERT_TRUE(status==0);... |
add break statement to prevent implicit fallthrough | @@ -392,6 +392,7 @@ Token scanToken(Scanner *scanner) {
if (match(scanner, '.')) {
return makeToken(scanner, TOKEN_DOT_DOT_DOT);
}
+ break;
} else {
return makeToken(scanner, TOKEN_DOT);
}
|
xfpga: fix potential memory leaks in sysfs.c | @@ -879,7 +879,7 @@ fpga_result opae_glob_path(char *path)
default:
res = FPGA_EXCEPTION;
}
- if (pglob.gl_pathc && pglob.gl_pathv) {
+ if (pglob.gl_pathv) {
globfree(&pglob);
}
}
@@ -992,10 +992,6 @@ fpga_result make_sysfs_object(char *sysfspath, const char *name,
if (flags & FPGA_OBJECT_GLOB) {
res = opae_glob_path(s... |
[snitch] Correctly calculate line count in I$ | @@ -21,9 +21,9 @@ module mempool_tile #(
// Boot address
parameter logic [31:0] BootAddr = 32'h0000_1000 ,
// Instruction cache
- parameter int unsigned ICacheSizeByte = 1024 * NumCoresPerTile , // Total Size of instruction cache in bytes
- parameter int unsigned ICacheSets = NumCoresPerTile ,
- parameter int unsigned ... |
Fix `SOURCE_DIRS` for barstools [ci skip] | @@ -71,7 +71,7 @@ else
lookup_srcs = $(shell fd -L ".*\.$(2)" $(1))
endif
-SOURCE_DIRS = $(addprefix $(base_dir)/,generators sims/firesim/sim tools/barstools/iocell fpga/fpga-shells fpga/src)
+SOURCE_DIRS = $(addprefix $(base_dir)/,generators sims/firesim/sim tools/barstools fpga/fpga-shells fpga/src)
SCALA_SOURCES = $... |
u3: %evil leaves no trace | @@ -1348,6 +1348,11 @@ u3m_soft(c3_w mil_w,
pro = u3nc(u3k(cod), u3_nul);
}
+ // %evil leaves no trace
+ //
+ else if ( c3__evil == cod ) {
+ pro = u3nc(u3k(cod), u3_nul);
+ }
else {
u3_noun mok = u3dc("mook", 2, u3k(tax));
pro = u3nc(u3k(cod), u3k(u3t(mok)));
|
artik053/openocd: fix URLs of the libusbX
This commit fix URLs of libusb0 and libusb1. | @@ -9,10 +9,11 @@ OPENOCD_SRC_URL=http://excellmedia.dl.sourceforge.net/project/openocd/openocd/0.
OPENOCD_SRC_MD5SUM=8971d16aee5c2642b33ee55fc6c86239
LIBFTDI_SRC_URL=http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.3.tar.bz2
LIBFTDI_SRC_MD5SUM=156cdf40cece9f8a3ce1582db59a502a
-LIBUSB0_SRC_URL=http://s... |
da1469x: use uint16 TLV tag
mcuboot:
updates the tag type to uint16_t. Use the same. | @@ -86,7 +86,7 @@ boot_custom_start(uintptr_t flash_base, struct boot_rsp *rsp)
const struct flash_area *fap;
uint32_t off;
uint16_t len;
- uint8_t type;
+ uint16_t type;
uint8_t buf[8];
uint8_t key;
uint32_t nonce[2];
|
options/posix: Add endianness #defs in sys/param.h | #ifndef _SYS_PARAM_H
#define _SYS_PARAM_H
+#ifdef __GNUC__
+# define BYTE_ORDER __BYTE_ORDER__
+# define LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
+# define BIG_ENDIAN __ORDER_BIG_ENDIAN__
+# define PDP_ENDIAN __ORDER_PDP_ENDIAN__
+#else
+# error "Unsupported compiler"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
|
test: Add test_008Contract_0001CallNoneInputContractFuction | * limitations under the License.
*****************************************************************************/
#include "tcase_ethereum.h"
+#include "TestABIContract.h"
#define TEST_EIP155_COMPATIBILITY BOAT_FALSE
#define TEST_ETHEREUM_CHAIN_ID 5777
#define TEST_GAS_PRICE "0x4A817C800"
#define TEST_IS_SYNC_TX BOAT_TRU... |
check status before go to next. | @@ -176,7 +176,7 @@ void radio_setFrequency(uint16_t channel) {
void radio_rfOn(void) {
//put the radio in the TRXPREP state
at86rf215_spiStrobe(CMD_RF_TRXOFF);
- //while(radio_vars.state != RADIOSTATE_TX_ENABLED);
+ while(at86rf215_status() != RF_STATE_TRXOFF);
}
void radio_rfOff(void) {
@@ -185,6 +185,7 @@ void radio... |
* Upgraded flutter pubspec.yaml | @@ -5,6 +5,7 @@ homepage: https://ejdb.org
environment:
sdk: '>=2.5.0 <3.0.0'
+ flutter: ">=1.10.0 <2.0.0"
dependencies:
flutter:
@@ -27,8 +28,13 @@ flutter:
# be modified. They are used by the tooling to maintain consistency when
# adding or updating assets for this project.
plugin:
- androidPackage: com.softmotions.e... |
sysdeps/managarm: Implement sys_getcwd() | @@ -459,6 +459,51 @@ int sys_ttyname(int fd, char *buf, size_t size) {
}
}
+int sys_getcwd(char *buffer, size_t size) {
+ SignalGuard sguard;
+ HelAction actions[4];
+ globalQueue.trim();
+
+ managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
+ req.set_request_type(managarm::posix::CntReqType::GET... |
Fix init scroll overflow warning | @@ -217,8 +217,8 @@ void RefreshScroll() {
void InitScroll() {
pending_w_i = 0;
pending_h_i = 0;
- scroll_x = 0xF000;
- scroll_y = 0xF000;
+ scroll_x = 0x7FFF;
+ scroll_y = 0x7FFF;
}
void RenderScreen() {
|
add scp upload step | @@ -46,10 +46,41 @@ jobs:
key: ${{ runner.os }}-platformio
- name: build ${{ matrix.target }}
- run: bash script/build-tester.sh ${{ matrix.target }}
+ run: bash script/build-tester.sh build ${{ matrix.target }}
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}
path: output/quic... |
Fix title issues with `pyto_ui` | @@ -119,7 +119,11 @@ import WebKit
private var _title: String? {
didSet {
- (self.viewController as? UINavigationController)?.title = _title
+ for vc in (self.viewController as? UINavigationController)?.viewControllers ?? [] {
+ if vc.view == view {
+ vc.title = _title
+ }
+ }
}
}
@@ -1000,6 +1004,7 @@ import WebKit
le... |
release: disable building of documentation for initial installation | @@ -15,7 +15,15 @@ install_elektra() {
rm -rf $BUILD_DIR
mkdir $BUILD_DIR
cd $BUILD_DIR
- cmake -DBUILD_SHARED=ON -DBUILD_FULL=ON -DBUILD_STATIC=ON -DKDB_DB_SYSTEM="${WORKSPACE}/config/kdb/system" -DKDB_DB_SPEC="${WORKSPACE}/config/kdb/spec" -DKDB_DB_HOME="${WORKSPACE}/config/kdb/home" -DCMAKE_INSTALL_PREFIX="${WORKSPA... |
Document the recursive option | @@ -13,6 +13,7 @@ B<openssl> B<storeutl>
[B<-passin arg>]
[B<-text arg>]
[B<-engine id>]
+[B<-r>]
B<uri> ...
=head1 DESCRIPTION
@@ -54,6 +55,10 @@ to attempt to obtain a functional reference to the specified engine,
thus initialising it if needed.
The engine will then be set as the default for all available algorithms.... |
Add initialization of hyperbolic secant pulses to sim.c | @@ -58,6 +58,7 @@ int main_sim(int argc, char* argv[argc])
data.seq = simdata_seq_defaults;
data.voxel = simdata_voxel_defaults;
data.pulse = simdata_pulse_defaults;
+ data.pulse.hs = hs_pulse_defaults;
data.grad = simdata_grad_defaults;
data.tmp = simdata_tmp_defaults;
|
Remove unsued parameter from c0sk_queue_ingest | @@ -1107,8 +1107,9 @@ c0sk_ingest_tune(struct c0sk_impl *self, struct c0_usage *usage)
/* GCOV_EXCL_START */
merr_t
-c0sk_queue_ingest(struct c0sk_impl *self, struct c0_kvmultiset *old, struct c0_kvmultiset *new)
+c0sk_queue_ingest(struct c0sk_impl *self, struct c0_kvmultiset *old)
{
+ struct c0_kvmultiset *new = NULL;... |
tests/run-tests: Enable bool1.py test with native emitter.
It should work reliably now. | @@ -359,7 +359,6 @@ def run_tests(pyb, tests, args, base_path="."):
skip_tests.update({'basics/%s.py' % t for t in 'try_reraise try_reraise2'.split()}) # require raise_varargs
skip_tests.update({'basics/%s.py' % t for t in 'with_break with_continue with_return'.split()}) # require complete with support
skip_tests.add('... |
Disallow ocf_cache_mode_max in io_class config | @@ -235,12 +235,8 @@ static int _ocf_mngt_io_class_validate_cfg(ocf_cache_t cache,
if (!cfg->name)
return 0;
- /* TODO(r.baldyga): ocf_cache_mode_max is allowed for compatibility
- * with OCF 3.1 kernel adapter (upgrade in flight) and casadm.
- * Forbid ocf_cache_mode_max after fixing these problems.
- */
if (cfg->cach... |
Fix leaked String in cfgParseSize(). | @@ -106,6 +106,8 @@ cfgParseSize(const String *const value)
if (valueInt > INT64_MAX / multiplier)
THROW_FMT(FormatError, "value '%s' is out of range", strZ(value));
+ strFree(valueLower);
+
FUNCTION_TEST_RETURN(INT64, valueInt * multiplier);
}
|
Update cpp wrapper tests with linear hash
Given the linear hash's current functionality, these tests are tailored to avoid open/close until memory errors are fixed. | @@ -2736,6 +2736,7 @@ test_master_table_dictionary_open_close_all(
PLANCK_UNIT_ASSERT_INT_ARE_EQUAL(tc, ion_dictionary_status_ok, dictionary->dict.status);
test_master_table_dictionary_open_close(tc, dictionary, 7, dictionary_type_skip_list_t);
+ /* Uncomment when LinearHash dictionary open memory issue fixed. */
/* di... |
Missing logging of error details. | @@ -3697,6 +3697,9 @@ load_source_finally:
process_group, application_group, filename);
}
Py_END_ALLOW_THREADS
+
+ wsgi_log_python_error(r, NULL, filename, 0);
+
return NULL;
}
|
Fix syntax error in metasprite canvas worker | @@ -48,7 +48,7 @@ workerCtx.onmessage = async (evt) => {
img.width,
img.height
);
- chromaKeyData(tileImageData.data););
+ chromaKeyData(tileImageData.data);
tilesCanvases = {
OBP0: new OffscreenCanvas(img.width, img.height),
|
uart.c: Have a separate callback for each UART. | @@ -537,7 +537,7 @@ esp_err_t uart_intr_config(uart_port_t uart_num, const uart_intr_config_t *intr_
return ESP_OK;
}
-static uart_rx_callback_t uart_rx_callback = NULL;
+static uart_rx_callback_t uart_rx_callback[3] = { NULL };
//internal isr handler for default driver code.
static void uart_rx_intr_handler_default(vo... |
VmaAllocator_T::CalcPreferredBlockSize: Minor improvement - treating HOST_CACHED memory type as small heap. | @@ -6862,8 +6862,10 @@ VkDeviceSize VmaAllocator_T::CalcPreferredBlockSize(uint32_t memTypeIndex)
{
const uint32_t heapIndex = MemoryTypeIndexToHeapIndex(memTypeIndex);
const VkDeviceSize heapSize = m_MemProps.memoryHeaps[heapIndex].size;
- return (heapSize <= VMA_SMALL_HEAP_MAX_SIZE) ?
- m_PreferredSmallHeapBlockSize ... |
Fix sample code
Fix memory leak in sample encryption code and check return value of
fopen.
CLA: trivial | @@ -552,6 +552,7 @@ Encrypt a string using IDEA:
if (!EVP_EncryptUpdate(ctx, outbuf, &outlen, intext, strlen(intext))) {
/* Error */
+ EVP_CIPHER_CTX_free(ctx);
return 0;
}
/*
@@ -560,6 +561,7 @@ Encrypt a string using IDEA:
*/
if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) {
/* Error */
+ EVP_CIPHER_CTX_free... |
Add a test for 0RTT replay protection | @@ -1858,6 +1858,58 @@ static int test_early_data_read_write(int idx)
return testresult;
}
+static int test_early_data_replay(int idx)
+{
+ SSL_CTX *cctx = NULL, *sctx = NULL;
+ SSL *clientssl = NULL, *serverssl = NULL;
+ int testresult = 0;
+ SSL_SESSION *sess = NULL;
+
+ if (!TEST_true(setupearly_data_test(&cctx, &sc... |
Osiris: Remove const keyword from rgbkbd_type variable
Rgbkbd_type could be set at runtime, remove const.
BRANCH=none
TEST=None
Cq-Depend: chromium:3864982, chromium:3861817, chromium:3866411 | @@ -80,7 +80,7 @@ const uint8_t rgbkbd_count = ARRAY_SIZE(rgbkbds);
const uint8_t rgbkbd_hsize = RGB_GRID0_COL;
const uint8_t rgbkbd_vsize = RGB_GRID0_ROW;
-const enum ec_rgbkbd_type rgbkbd_type = EC_RGBKBD_TYPE_FOUR_ZONES_12_LEDS;
+enum ec_rgbkbd_type rgbkbd_type = EC_RGBKBD_TYPE_FOUR_ZONES_12_LEDS;
#define LED(x, y) ... |
Improve PhStdGetClientIdNameEx/handle enumeration performance | @@ -922,17 +922,50 @@ PPH_STRING PhStdGetClientIdNameEx(
}
// Combine everything
- result = PhFormatString(
- ClientId->UniqueThread ? L"%s%.*s (%lu): %s%.*s (%lu)" : L"%s%.*s (%lu)",
- isProcessTerminated ? L"Terminated " : L"",
- processNameRef.Length / sizeof(WCHAR),
- processNameRef.Buffer,
- HandleToUlong(ClientId... |
refactor(bot-slash-commands.c): simplify input read | #include <string.h>
#include <assert.h>
#include <errno.h>
-#include <inttypes.h> /* PRIu64 */
+#include <inttypes.h> /* SCNu64, PRIu64 */
#include "discord.h"
@@ -115,7 +115,7 @@ void on_interaction_create(struct discord *client,
gender = value;
}
else if (0 == strcmp("favorite", name)) {
- sscanf(value, "%" PRIu64, &... |
disable keywords in /etc/hosts update example for BOS | @@ -12,7 +12,7 @@ your SMS host name is resolvable locally. Depending on the manner in which you
installed the BOS, there may be an adequate entry already defined
in \path{/etc/hosts}. If not, the following addition can be used to identify
your SMS host.
-\begin{lstlisting}[language=bash]
+\begin{lstlisting}[language=b... |
rms/slurm: testing build without pmix | %include %{_sourcedir}/OHPC_macros
%global _with_mysql 1
-%global _with_pmix --with-pmix=%{OHPC_ADMIN}/pmix
+#global _with_pmix --with-pmix=%{OHPC_ADMIN}/pmix
%global _with_hwloc 1
%global _with_numa 1
|
Change meaning of nanoseconds field in UTC Time msg (no change in msg_id). | @@ -122,12 +122,12 @@ definitions:
- seconds:
type: u8
units: seconds
- desc: seconds of minute (range 0-60)
+ desc: seconds of minute (range 0-60) rounded down
- ns:
- type: s32
+ type: u32
units: nanoseconds
- desc: Nanosecond residual of millisecond-rounded TOW (ranges
- from -500000 to 500000)
+ desc: nanosecond in... |
Fixed mac os x env | @@ -9,14 +9,14 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
py27)
# Install some custom Python 2.7 requirements on OS X
echo "No specific requirements on osx for now"
- easy_install pip
+ easy_install --user pip
pip install --user nose
;;
py36)
# Install some custom Python 3.6 requirements on OS X
echo "No specific requi... |
move rounded-ending from lv_arc.c to lv_draw.arc.c | *********************/
#include "lv_draw_arc.h"
#include "lv_draw_mask.h"
+#include "../lv_misc/lv_math.h" // LV_TRIGO_SHIFT
/*********************
* DEFINES
@@ -69,7 +70,6 @@ void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, cons
lv_draw_mask_remove_id(mask_angle_id);
- // draw rounded-ending... |
fix(sdio_slave): fix the intr_recv issue that trigger receiving too fast cause assertion failed.
also fix a race risk issue when recycle receiving buffers. | @@ -187,7 +187,7 @@ typedef struct {
/*------- receiving ---------------*/
buf_stailq_t recv_link_list; // now ready to/already hold data
buf_tailq_t recv_reg_list; // removed from the link list, registered but not used now
- buf_desc_t* recv_cur_ret;
+ volatile buf_desc_t* recv_cur_ret; // next desc to return, NULL if... |
Follow meson guidlines for static/shared libs
Use only one library definition for faster builds. | @@ -124,12 +124,7 @@ core_image = custom_target('core_image',
output : 'core_image.gen.c',
command : [janet_boot, '@OUTPUT@', 'JANET_PATH', janet_path, 'JANET_HEADERPATH', header_path])
-libjanet = shared_library('janet', core_src, core_image,
- include_directories : incdir,
- dependencies : [m_dep, dl_dep],
- install ... |
mesh/net.c: replace dup_cache size magic value | @@ -86,7 +86,7 @@ struct bt_mesh_net bt_mesh = {
#endif
};
-static u32_t dup_cache[4];
+static u32_t dup_cache[MYNEWT_VAL(BLE_MESH_MSG_CACHE_SIZE)];
static int dup_cache_next;
static bool check_dup(struct os_mbuf *data)
|
ocvalidate: Forgotten codestyle cleanup | @@ -60,7 +60,12 @@ CheckConfig (
return ErrorCount;
}
-int ENTRY_POINT(int argc, const char *argv[]) {
+INT32
+ENTRY_POINT (
+ IN INT32 Argc,
+ IN CONST CHAR8 *Argv[]
+ )
+{
UINT8 *ConfigFileBuffer;
UINT32 ConfigFileSize;
CONST CHAR8 *ConfigFileName;
@@ -83,15 +88,15 @@ int ENTRY_POINT(int argc, const char *argv[]) {
/... |
out_stackdriver: fix gce metadata header length (CID 185754) | @@ -54,7 +54,7 @@ static int fetch_metadata(struct flb_upstream *ctx, char *uri,
flb_http_buffer_size(c, 4096);
flb_http_add_header(c, "User-Agent", 10, "Fluent-Bit", 10);
- flb_http_add_header(c, "Content-Type", 12, "application/text", 20);
+ flb_http_add_header(c, "Content-Type", 12, "application/text", 16);
flb_http... |
Add python macros to allow OHPC-style builds of multiple python flavored packages from a single spec | @@ -59,6 +59,7 @@ BuildRequires: ohpc-buildroot
%{!?compiler_family: %global compiler_family gnu7}
%{!?mpi_family: %global mpi_family openmpi3}
+%{!?python_family: %global python_family python3}
# Compiler dependencies
%if 0%{?ohpc_compiler_dependent} == 1
@@ -115,9 +116,32 @@ Requires: openmpi3-%{compiler_family}%{PRO... |
Fix detection of ktls support in cross-compile environment on Linux
Fixes | @@ -1709,20 +1709,13 @@ unless ($disabled{devcryptoeng}) {
unless ($disabled{ktls}) {
$config{ktls}="";
+ my $cc = $config{CROSS_COMPILE}.$config{CC};
if ($target =~ m/^linux/) {
- my $usr = "/usr/$config{cross_compile_prefix}";
- chop($usr);
- if ($config{cross_compile_prefix} eq "") {
- $usr = "/usr";
- }
- my $minve... |
added `make ${TEST}-exec` target for integ tests
New target to exec in an existing test container. | @@ -69,13 +69,14 @@ all:
fi
$(TESTS):
- @$(MAKE) -s $(@)-build
+ @[ -n "$(NOBUILD)" ] || $(MAKE) -s $(@)-build
@echo
@echo "==================================================================="
@echo " $(shell date)"
@echo " Running \"$@\" Test"
@echo "==================================================================="... |
fix build error for shadowing a global declaration
warning: declaration of 'index' shadows a global declaration | @@ -406,10 +406,10 @@ struct s2n_ticket_key *s2n_get_ticket_encrypt_decrypt_key(struct s2n_config *con
return s2n_set_get(config->ticket_keys, encrypt_decrypt_keys_index[0]);
}
- int8_t index;
- GUARD_PTR(index = s2n_compute_weight_of_encrypt_decrypt_keys(config, encrypt_decrypt_keys_index, num_encrypt_decrypt_keys, no... |
Add missing assertion in lstFind(). | @@ -185,6 +185,7 @@ lstFind(const List *this, const void *item)
FUNCTION_TEST_END();
ASSERT(this != NULL);
+ ASSERT(this->comparator != NULL);
ASSERT(item != NULL);
if (this->sortOrder == sortOrderAsc)
|
gitlab/ci: reverting libfec CI integration for the time being | @@ -19,8 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: Setup libfec
- run: git clone https://github.com/jgaeddert/libfec.git && cd libfec && ./configure && make && sudo make install
+ #- name: Setup libfec
+ # run: git clone https://github.com/jgaeddert/libfec.git && cd libfec && ./configure && make && su... |
add deep sleep tracking for CC26xx | @@ -185,7 +185,7 @@ wake_up(void)
{
lpm_registered_module_t *module;
- ENERGEST_SWITCH(ENERGEST_TYPE_LPM, ENERGEST_TYPE_CPU);
+ ENERGEST_SWITCH(ENERGEST_TYPE_DEEP_LPM, ENERGEST_TYPE_CPU);
/* Sync so that we get the latest values before adjusting recharge settings */
ti_lib_sys_ctrl_aon_sync();
@@ -485,7 +485,7 @@ deep_... |
Update grammer issues a bit | @@ -69,12 +69,12 @@ The following steps describe how to build and run buildroot Linux on the prototy
Building Linux with FireMarshal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Since the prototype does not have a block device we build Linux with the rootfs built into the binary (otherwise known as "initramfs" or "nodisk" version ... |
[docs] [ci skip] Alon's comments | @@ -11,7 +11,8 @@ The following pages introduce the generators integrated with the Chipyard framew
Chipyard bundles the source code for the generators, under the ``generators`` directory.
It builds them from source each time (although the build system will cache results if they have not changed),
-so changes to the gen... |
[awm2] Add dependency on preferences messages crate | @@ -16,6 +16,7 @@ awm_messages = {path = "../awm_messages" }
libgui = { path = "../libgui", default-features = false }
mouse_driver_messages = {path = "../mouse_driver_messages" }
kb_driver_messages = {path = "../kb_driver_messages" }
+preferences_messages = {path = "../preferences_messages" }
file_manager_messages = {... |
Plugins Framework: Use fence for code snippet | @@ -113,8 +113,10 @@ Plugins can also export arbitrary additional functions.
To export it, simply add another `exports` symbol to
the contract:
+```c
keyNew ("system/elektra/modules/dump/exports/checkconf", KEY_FUNC,
- elektraCcodeCheckConf, KEY_END),
+ elektraCcodeCheckConf, KEY_END);
+```
`checkconf` is the most impo... |
msresamp/autotest: adjusting rate in copy() test to exercise stages | @@ -135,11 +135,11 @@ void autotest_msresamp_crcf_num_output_7(){ testbench_msresamp_crcf_num_output(e
void autotest_msresamp_crcf_copy()
{
// create initial object
- float rate = 0.71239213987520f;
+ float rate = 0.071239213987520f;
msresamp_crcf q0 = msresamp_crcf_create(rate, 60.0f);
// run samples through filter
- ... |
performance fix for | @@ -150,10 +150,11 @@ void MaskFastaFromBed::PrettyPrintChrom(ofstream &out, string chrom, const strin
CHRPOS seqLength = sequence.size();
- out << ">" << chrom << endl;
+ out << ">" << chrom << '\n';
for(CHRPOS i = 0; i < seqLength; i += (CHRPOS)width) {
- if (i + width < seqLength) out << sequence.substr(i, width) <<... |
Use STRDEF() instead of STR() in command/help module.
STRDEF() is more efficient since this is a constant string. | @@ -330,7 +330,7 @@ helpRender(const Buffer *const helpData)
optionData[optionId] = (HelpOptionData)
{
.internal = pckReadBoolP(pckHelp),
- .section = pckReadStrP(pckHelp, .defaultValue = STR("general")),
+ .section = pckReadStrP(pckHelp, .defaultValue = STRDEF("general")),
.summary = pckReadStrP(pckHelp),
.description... |
Fix uninitialized lock in hostepoll.c | @@ -147,6 +147,7 @@ static oe_fd_t* _epoll_create1(oe_device_t* device_, int32_t flags)
epoll_t* epoll = NULL;
device_t* device = _cast_device(device_);
oe_host_fd_t retval;
+ oe_mutexattr_t attr;
oe_errno = 0;
@@ -167,6 +168,15 @@ static oe_fd_t* _epoll_create1(oe_device_t* device_, int32_t flags)
epoll->magic = EPOLL... |
scripts: change logic how to find source dir | -# Usage: cd build && source run_dev_shell
+if [ ! -f CMakeCache.txt ]
+then
+ echo "You must be within the build folder before you source this script"
+ echo
+ echo "Usage: cd build && source run_dev_env"
+ return
+fi
+
# common configure script
-SCRIPTS_DIR=$(dirname "$0")
+ELEKTRA_DIR=`grep "^Elektra_SOURCE_DIR" CMa... |
removes old event-log declarations | uv_mutex_t mex_u; // mutex for non-daemon term state
} u3_utat;
- /* u3_uled: event log header.
- */
- typedef struct {
- c3_l mag_l; // mug of log format, 'a', 'b'...
- c3_w kno_w; // kernel number validated with
- c3_l sal_l; // salt for passcode
- c3_l key_l; // mug of crypto key, or 0
- c3_l sev_l; // host process ... |
file-server: since %glob hash changes per commit, cache for 1wk instead of 1da | [not-found:gen %.n]
:_ public.u.content
=/ mime-type=@t (rsh 3 (crip <p.u.data>))
- :: Should maybe inspect to see how long cache should hold
- ::
=/ headers
:~ content-type+mime-type
- max-1-da:gen
+ max-1-wk:gen
'service-worker-allowed'^'/'
==
[[200 headers] `q.u.data]
|
pretty-print spacing for PTScotch | @@ -700,9 +700,9 @@ echo Libraries:
fi
if test "x$enable_ptscotch" = "xyes"; then
- echo ' 'PTScotch.................... : enabled
+ echo ' 'PTScotch.................. : enabled
else
- echo ' 'PTScotch.................... : disabled
+ echo ' 'PTScotch.................. : disabled
fi
if test "x$enable_R" = "xyes"; then
|
Apply CODATA/IAU constants | @@ -31,22 +31,23 @@ extern "C" {
#define K_PIVOT 0.05
/**
- * Lightspeed / H0 in units of Mpc/h
+ * Lightspeed / H0 in units of Mpc/h (from CODATA 2014)
*/
#define CLIGHT_HMPC 2997.92458 //H0^-1 in Mpc/h
/**
* Newton's gravitational constant in units of m^3/Kg/s^2
*/
-//#define GNEWT 6.6738e-11 //(from PDG 2013) in m^3... |
idf.py: Detect symlinks on Windows during fullclean
Closes | @@ -327,6 +327,26 @@ def reconfigure(action, args):
_ensure_build_directory(args, True)
+def _delete_windows_symlinks(directory):
+ """
+ It deletes symlinks recursively on Windows. It is useful for Python 2 which doesn't detect symlinks on Windows.
+ """
+ deleted_paths = []
+ if os.name == 'nt':
+ import ctypes
+ for... |
klog: Fix warnings
JIRA: | #define KLOG_BUFSZ (2 * SIZE_PAGE)
#endif
-
#define TCGETS 0x405c7401
@@ -59,6 +58,7 @@ static struct {
klog_reader_t *readers;
} klog_common;
+#if KLOG_ENABLE
static int _fifo_empty(void)
{
@@ -93,13 +93,6 @@ static char _fifo_get(offs_t off)
}
-void _klog_init(void)
-{
- hal_memset(&klog_common, 0, sizeof(klog_common... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.