message
stringlengths
6
474
diff
stringlengths
8
5.22k
out_lib: fix time formatting for JSON output
#include <fluent-bit/flb_output.h> #include <fluent-bit/flb_utils.h> #include <fluent-bit/flb_pack.h> +#include <fluent-bit/flb_time.h> #include <msgpack.h> #include "out_lib.h" @@ -71,7 +72,7 @@ static int out_lib_init(struct flb_output_instance *ins, ctx = flb_calloc(1, sizeof(struct flb_out_lib_config)); if (ctx == ...
Fix AndroidManifest.xml path; The file has to literally be named AndroidManifest.xml so it has to be copied to that name.
@@ -636,7 +636,7 @@ elseif(ANDROID) if(LOVR_BUILD_EXE) get_filename_component(ANDROID_SDK "${ANDROID_NDK}" DIRECTORY) # SDK root is parent of NDK dir - set(ANDROID_JAR "${ANDROID_SDK}/platforms/android-${ANDROID_NATIVE_API_LEVEL}/android.jar") + set(ANDROID_JAR "${ANDROID_SDK}/platforms/${ANDROID_PLATFORM}/android.jar"...
Add translation for linker script generation
@@ -35,7 +35,7 @@ For this guide, suppose we have the following:: - a component named ``my_component`` that is archived as library ``libmy_component.a`` during build - three source files archived under the library, ``my_src1.c``, ``my_src2.c`` and ``my_src3.c`` which are compiled as ``my_src1.o``, ``my_src2.o`` and ``m...
Removed unused struct from gkhash.h.
@@ -94,11 +94,6 @@ typedef struct GKHashMetric_ { const char *filename; } GKHashMetric; -/* Raw Data store per module */ -typedef struct RawDataHash_ { - GKHashMetric metrics[GSMTRC_TOTAL]; -} RawDataHash; - /* Data store per module */ typedef struct GKHashModule_ { GModule module;
feat(fabric test): add fabric test case "TxQueryFail_Method_ERR"
@@ -640,6 +640,35 @@ START_TEST(test_002Transaction_0025TxQueryFail_Args_NULL) } END_TEST +START_TEST(test_002Transaction_0026TxQueryFail_Method_ERR) +{ + BSINT32 rtnVal; + BoatHlfabricTx tx_ptr; + BoatHlfabricWallet *g_fabric_wallet_ptr = NULL; + BoatHlfabricWalletConfig wallet_config = get_fabric_wallet_settings(); +...
genvif: made default missing PID/TID 0xFFFF BRANCH=none TEST=verify XML output Tested-by: Denis Brockus
#define VIF_APP_VERSION_VALUE "3.0.0.5" #define VENDOR_NAME_VALUE "Google" +#define DEFAULT_MISSING_TID 0xFFFF +#define DEFAULT_MISSING_PID 0xFFFF const uint32_t *src_pdo; uint32_t src_pdo_cnt; @@ -1055,10 +1057,10 @@ static int gen_vif(const char *name, NULL, CONFIG_USB_PD_TID); #else - set_vif_field(&vif_fields[TID],...
Correct comment indent and make null pointer check consistent
@@ -801,7 +801,7 @@ espi_parse_received(esp_recv_t* rcv) { */ if (is_ok || is_error || is_ready) { espr_t res = espOK; - if (esp.msg) { /* Do we have active message? */ + if (esp.msg != NULL) { /* Do we have active message? */ res = espi_process_sub_cmd(esp.msg, is_ok, is_error, is_ready); if (res != espCONT) { /* Shal...
define "unlikely" on non-cygwin too
#include <stdlib.h> #include "common.h" -#if defined(OS_CYGWIN_NT) && !defined(unlikely) +#if !defined(unlikely) #ifdef __GNUC__ #define unlikely(x) __builtin_expect(!!(x), 0) #else
os/board/rtl8721csm: modify error flag for AP mac filter case Modify error flag in wifi_disconn_hdl for AP mac filter case from RTW_UNKNOWN to RTW_CONNECT_FAIL
@@ -381,7 +381,7 @@ static void wifi_disconn_hdl( char* buf, int buf_len, int flags, void* userdata) if(rtw_join_status & JOIN_NO_NETWORKS) error_flag = RTW_NONE_NETWORK; - else if(rtw_join_status == 0) + else if(rtw_join_status == JOIN_CONNECTING) error_flag = RTW_CONNECT_FAIL; }else if(join_user_data->network_info.se...
Testing: Check descriptor code: FXY must be 6 digits
#include "grib_api_internal.h" static const size_t MIN_NUM_COLUMNS = 8; +static const size_t NUM_DESCRIPTOR_DIGITS = 6; /* FXY */ #define NUMBER(a) (sizeof(a) / sizeof(a[0])) static const char* allowed_types[] = { "long", "double", "table", "flag", "string" }; @@ -73,6 +74,11 @@ int main(int argc, char** argv) line_num...
Fix Shutdown->Restart to Firmware option failing in nightly builds for users without environment privileges reported by mikewolf
@@ -773,6 +773,18 @@ BOOLEAN PhUiRestartComputer( break; } + if (!NT_SUCCESS(PhAdjustPrivilege(NULL, SE_SYSTEM_ENVIRONMENT_PRIVILEGE, TRUE))) + { + PhShowMessage2( + WindowHandle, + TDCBF_OK_BUTTON, + TD_ERROR_ICON, + L"Unable to restart to firmware options.", + L"Make sure Process Hacker is running with administrative...
SOVERSION bump to version 6.4.8
@@ -68,7 +68,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 6) set(SYSREPO_MINOR_SOVERSION 4) -set(SYSREPO_MICRO_SOVERSION 7) +set(SYSREPO_MICRO_SO...
Add Touchscreen mod
@@ -33,7 +33,7 @@ def difficulty_multiplier(diff): def getmultiplier(mods): multiplier = {Mod.Easy: 0.5, Mod.NoFail: 0.5, Mod.HalfTime: 0.3, - Mod.HardRock: 1.06, Mod.SuddenDeath: 1, Mod.Perfect: 1, Mod.DoubleTime: 1.12, Mod.Nightcore: 1.12, Mod.Hidden: 1.06, Mod.Flashlight: 1.12, + Mod.HardRock: 1.06, Mod.NoVideo: 1, ...
Make sure address and size are each aligned with a page
@@ -2957,11 +2957,26 @@ int stlink_erase_flash_section(stlink_t *sl, stm32_addr_t base_addr, size_t size return (-1); } - stm32_addr_t addr = (stm32_addr_t)base_addr; + stm32_addr_t addr = sl->flash_base; + + // Make sure the requested address is aligned with the beginning of a page + while (addr < base_addr) { + addr ...
vlib: fix startup-config-process stack overflow Type: fix Startup config setting an i40e/ice interface up in Debug VPP consumes more than the currently available stack space.
@@ -372,6 +372,7 @@ VLIB_REGISTER_NODE (startup_config_node,static) = { .function = startup_config_process, .type = VLIB_NODE_TYPE_PROCESS, .name = "startup-config-process", + .process_log2_n_stack_bytes = 18, }; /* *INDENT-ON* */
change to non-working but better version
@@ -7,7 +7,7 @@ RUN apt-get install -y libgsl-dev libfftw3-dev RUN pip install numpy scipy matplotlib jupyter # Installing CCL C library -RUN git clone https://github.com/LSSTDESC/CCL && cd CCL && git checkout changelog && \ +RUN git clone https://github.com/LSSTDESC/CCL && cd CCL && git checkout releases/1.0 && \ mkdi...
Fix bad error message for FOR UPDATE on non-existent table
@@ -1017,23 +1017,21 @@ addRangeTableEntry(ParseState *pstate, locking = getLockedRefname(pstate, refname); if (locking) { - lockmode = (locking->strength >= LCS_FORNOKEYUPDATE) ? RowExclusiveLock : RowShareLock; if (locking->strength >= LCS_FORNOKEYUPDATE) { Oid relid; - relid = RangeVarGetRelid(relation, lockmode, tr...
openvr hand -> device;
@@ -357,7 +357,7 @@ static bool openvr_getPose(Device device, vec3 position, quat orientation) { if (device == DEVICE_HAND_LEFT || device == DEVICE_HAND_RIGHT) { InputPoseActionData_t actionData; - state.input->GetPoseActionData(state.poseActions[hand], state.compositor->GetTrackingSpace(), 0.f, &actionData, sizeof(act...
Implement API for setting seq cutoff threshold
@@ -287,6 +287,18 @@ class Cache: if status: raise OcfError("Error setting cache seq cut off policy", status) + def set_seq_cut_off_threshold(self, threshold: int): + self.write_lock() + + status = self.owner.lib.ocf_mngt_core_set_seq_cutoff_threshold_all( + self.cache_handle, threshold + ) + + self.write_unlock() + + ...
Fix clear alpha;
@@ -2841,7 +2841,7 @@ Pass* lovrGraphicsGetPass(PassInfo* info) { target.color[i].clear[0] = lovrMathGammaToLinear(canvas->clears[i][0]); target.color[i].clear[1] = lovrMathGammaToLinear(canvas->clears[i][1]); target.color[i].clear[2] = lovrMathGammaToLinear(canvas->clears[i][2]); - target.color[i].clear[3] = canvas->c...
ignore upcall program variants
@@ -56,15 +56,21 @@ Makefile.in # binaries programs/client +programs/client_upcall programs/daytime_server +programs/daytime_server_upcall programs/discard_server +programs/discard_server_upcall programs/echo_server +programs/echo_server_upcall programs/ekr_client programs/ekr_loop programs/ekr_loop_offload +programs/e...
CommonAPI>>Barcode RhoElements mention has been removed
@@ -18,10 +18,6 @@ In order to use this API you must include the following extension in your `build :::ruby extensions: ["barcode"] -The `barcode` extension is also included automatically if you specify the following in your `build.yml` - :::ruby - app_type: "rhoelements" - NOTE: If you are building a Windows Mobile or...
Add logic for manual animation and frame binds. Tested legacy (default) behavior, and it is working as always. Have not yet tested new settings.
@@ -21378,6 +21378,7 @@ void damage_recursive(entity *target) void adjust_bind(entity *e) { #define ADJUST_BIND_SET_ANIM_RESETABLE 1 + #define ADJUST_BIND_NO_FRAME_MATCH -1 // If there is no binding // target, just get out. @@ -21395,13 +21396,28 @@ void adjust_bind(entity *e) // Animation match flag in use? if(e->bind...
WIP Steal Ctrl or Ctrl shift Z in world from the accelerator, win undo issue Chromium bug with DOM objects using undo buffer first, even if cleared from view. Not hooked up to the react undo buffer yet! (not sure how)
@@ -136,6 +136,15 @@ class World extends Component { if (e.target.nodeName !== "BODY") { return; } + if (e.code === "KeyZ" && e.ctrlKey) { + if (e.shiftKey) { + event.preventDefault(); + console.log("caught Shift Z" + event); + } else { + event.preventDefault(); + console.log("caught Z" + event); + } + } if (e.ctrlKey ...
BugID:17816263:fix mal sdk compile error
@@ -101,8 +101,8 @@ static char mal_mc_is_topic_matched(char *topicFilter, const char *topicName) return 0; } char *curf = topicFilter; - char *curn = topicName; - char *curn_end = curn + strlen(topicName); + const char *curn = topicName; + const char *curn_end = curn + strlen(topicName); while (*curf && curn < curn_en...
Fix wxgui CLKGEN values issue
@@ -274,10 +274,10 @@ void lms7002_pnlCLKGEN_view::UpdateGUI() LMS_ReadParam(lmsControl,LMS7param(FRAC_SDM_CGEN_MSB),&value); int fracValue = value << 16; LMS_ReadParam(lmsControl,LMS7param(FRAC_SDM_CGEN_LSB),&value); - fracValue |= 0; + fracValue |= value; lblFRAC_SDM_CGEN->SetLabel(wxString::Format("%i", fracValue));...
Update the request status in create_reply_
@@ -2100,6 +2100,7 @@ htp__create_reply_(evhtp_request_t * request, evhtp_res code) { && request->conn && request->rc_parser); + request->status = code; content_type = evhtp_header_find(request->headers_out, "Content-Type"); out_len = evbuffer_get_length(request->buffer_out);
Added -q option to execsnoop to quote individual arguments. This helps when working with arguments that contain spaces.
@@ -42,6 +42,9 @@ parser.add_argument("-t", "--timestamp", action="store_true", help="include timestamp on output") parser.add_argument("-x", "--fails", action="store_true", help="include failed exec()s") +parser.add_argument("-q", "--quote", action="store_true", + help="Add quotemarks (\") around arguments." + ) parse...
chip/mt_scp/mt818x/ipi_table.c: Format with clang-format BRANCH=none TEST=none
@@ -17,20 +17,23 @@ typedef void (*ipi_handler_t)(int32_t id, void *data, uint32_t len); #define ipi_arguments int32_t id, void *data, uint32_t len #if PASS == 1 -void ipi_handler_undefined(ipi_arguments) { } +void ipi_handler_undefined(ipi_arguments) +{ +} const int ipi_wakeup_undefined; #define table(type, name, x) x...
BugID:16846667:fix task_misc_test compile
@@ -335,13 +335,6 @@ void task_misc_entry(void *arg) test_case_fail++; } - tmp.blk_state = BLK_ABORT; - pend_state_end_proc(&tmp); - - tmp.blk_state = BLK_TIMEOUT; - - pend_state_end_proc(&tmp); - #if (RHINO_CONFIG_HW_COUNT > 0) krhino_overhead_measure(); #endif
publish: spinner on post comment, proper disabling
@@ -5,7 +5,8 @@ export class Comments extends Component { constructor(props){ super(props); this.state = { - commentBody: '' + commentBody: '', + disabled: false } this.commentSubmit = this.commentSubmit.bind(this); this.commentChange = this.commentChange.bind(this); @@ -21,8 +22,13 @@ export class Comments extends Com...
test python crash fix
@@ -96,6 +96,10 @@ def add(img, background, x_offset, y_offset, alpha=1, channel=3, topleft=False): elif channel == 4: + if Settings.usecv2: + print("HI") + return add(img, background, x_offset, y_offset, alpha=alpha, channel=3, topleft=True) + b = background.crop((x_offset, y_offset, x_offset + img.size[0], y_offset +...
docs: tweak page breaks
\input{common/time} +\vspace*{.25cm} \subsection{Add resource management services on {\em master} node} \label{sec:add_rm} \input{common/install_pbspro} %% \subsection{Optionally add \InfiniBand{} support services on {\em master} node} \label{sec:add_ofed} %% \input{common/ibsupport_sms_sles} -\vspace*{-0.3cm} +\vspace...
update document abourt maximum ticket_age_tolerance
//#define MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE /** - * \def MBEDTLS_SSL_TLS1_3_TICKET_NONCE_LENGTH - * - * Time in seconds of max ticket lifetime. This is not used in TLS 1.2. + * \def MBEDTLS_SSL_TLS1_3_TICKET_AGE_TOLERANCE + * + * Maximum time difference in milliseconds tolerated between the age of a + * ticket from...
SOVERSION bump to version 1.1.4
@@ -48,7 +48,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 1) set(LIBNETCONF2_MINOR_SOVERSION 1) -set(LIBNETCONF2_MICRO_SOVERSION 3) +set(LIBN...
Fix incorrect param log types.
@@ -122,7 +122,7 @@ archiveDbList(const String *stanza, const InfoPgData *pgData, VariantList *archi FUNCTION_TEST_BEGIN(); FUNCTION_TEST_PARAM(STRING, stanza); FUNCTION_TEST_PARAM_P(INFO_PG_DATA, pgData); - FUNCTION_TEST_PARAM(VARIANT, archiveSection); + FUNCTION_TEST_PARAM(VARIANT_LIST, archiveSection); FUNCTION_TEST...
ur: optimizes bitstream bytes-reader implementation
@@ -411,25 +411,21 @@ ur_bsr_bytes_any(ur_bsr_t *bsr, uint64_t len, uint8_t *out) // else { uint8_t rest = 8 - off; - uint8_t mask = (1 << off) - 1; - uint8_t byt, l, m = *b >> off; uint64_t last = left - 1; + uint64_t max = ur_min(last, len_byt); + uint8_t m, l; // loop over all the bytes we need (or all that remain) ...
Set default values on parser unions. Suppresses compiler warnings.
@@ -171,6 +171,7 @@ TCOD_value_type_t TCOD_struct_get_type(TCOD_parser_struct_t def, const char* pro TCOD_value_t TCOD_parse_bool_value(void) { TCOD_value_t ret; + ret.b = false; if (strcmp(lex->tok, "true") == 0) ret.b = true; else if (strcmp(lex->tok, "false") == 0) @@ -240,6 +241,7 @@ TCOD_value_t TCOD_parse_string_...
Fix build error on non SSE 4.2 environment This will fix following error. ``` compiling ../../../../ext/oj/parse.c ../../../../ext/oj/parse.c:366:28: error: too many arguments to function call, expected single argument 'pi', have 2 arguments scan_string_noSIMD(pi, str); ~~~~~~~~~~~~~~~~~~ ^~~ ../../../../ext/oj/par...
@@ -363,7 +363,7 @@ static void read_str(ParseInfo pi) { #if defined(OJ_USE_SSE4_2) scan_string_SIMD(pi); #else - scan_string_noSIMD(pi, str); + scan_string_noSIMD(pi); #endif if (RB_UNLIKELY(pi->end <= pi->cur)) { oj_set_error_at(pi,
Set index buffer at the right time; Just a small ordering issue with previous commit.
@@ -702,15 +702,15 @@ void lovrGraphicsFlush() { if (batch->type == BATCH_MESH) { lovrMeshSetAttributeEnabled(batch->draw.mesh, "lovrDrawID", batch->params.mesh.instances <= 1); } else { + if (batch->draw.mesh == state.instancedMesh && batch->draw.instances <= 1) { + batch->draw.mesh = state.mesh; + } + if (batch->inde...
evp/e_aes_cbc_hmac_sha256.c: give SHAEXT right priority.
@@ -453,10 +453,12 @@ static int aesni_cbc_hmac_sha256_cipher(EVP_CIPHER_CTX *ctx, * to identify it and avoid stitch invocation. So that after we * establish that current CPU supports AVX, we even see if it's * either even XOP-capable Bulldozer-based or GenuineIntel one. + * But SHAEXT-capable go ahead... */ - if (OPEN...
Fix bug written at the end of buffer
@@ -405,7 +405,7 @@ flash_write(uint8_t flash_id, uint32_t addr, const void *buf, size_t len) /** * Write back extra stuff at the ending of page. */ - if (len < PAGE_SIZE) { + if (bfa + len < PAGE_SIZE) { for (n = len; n < PAGE_SIZE; n++) { hal_spi_tx_val(dev->spi_num, g_page_buffer[n]); }
Add new names to check-namespace.
@@ -88,6 +88,8 @@ filter_misc () { } check_local_unw_abi () { + match _UL${plat}_apply_reg_state + match _UL${plat}_reg_states_iterate match _UL${plat}_create_addr_space match _UL${plat}_destroy_addr_space match _UL${plat}_get_fpreg @@ -190,6 +192,8 @@ check_local_unw_abi () { } check_generic_unw_abi () { + match _U${p...
Update ya tool arc Note: mandatory check (NEED_CHECK) was skipped
}, "arc": { "formula": { - "sandbox_id": [490815481], + "sandbox_id": [499468551], "match": "arc" }, "executable": {
ts: Fix awkward sentences in the documentation and the default digest
@@ -170,7 +170,7 @@ in use. (Optional) The message digest to apply to the data file. Any digest supported by the OpenSSL B<dgst> command can be used. -The default is SHA-1. (Optional) +The default is SHA-256. (Optional) =item B<-tspolicy> object_id @@ -530,8 +530,9 @@ openssl/apps/openssl.cnf will do. =head2 Time Stamp...
Runtime detect FIPS RNG usage in test
@@ -132,15 +132,23 @@ static time_t reseed_time(EVP_RAND_CTX *drbg) /* * When building the FIPS module, it isn't possible to disable the continuous - * RNG tests. Tests that require this are skipped. + * RNG tests. Tests that require this are skipped and this means a detection + * mechanism for the FIPS provider being ...
armv7: Enabled watchdog
@@ -17,9 +17,9 @@ MKDEPFLAGS = $(CFLAGS) CC = $(CROSS)gcc CFLAGS += -Wall -Wstrict-prototypes -I$(SRCDIR) -nostartfiles -nostdlib\ - -mcpu=cortex-m3 -mthumb -ffixed-r9 \ - -fomit-frame-pointer -ffreestanding -Wno-bool-operation \ - -DVERSION=\"$(VERSION)\" -DCORE_VERSION=\"$(CORE_VERSION)\" -DAPP_VERSION=\"$(APP_VERSIO...
example/mediaplayer: Add resume input Start call prepare and start. Resume call start
@@ -65,6 +65,7 @@ class MediaPlayerTest : public MediaPlayerObserverInterface, public enable_share APP_OFF, PLAYER_START, PLAYER_PAUSE, + PLAYER_RESUME, PLAYER_STOP, VOLUME_UP, VOLUME_DOWN @@ -143,6 +144,12 @@ void MediaPlayerTest::start(void) cout << "Mediaplayer::pause failed" << endl; } break; + case PLAYER_RESUME: ...
check getpwnam_r()/getspnam_r()'s return code Unlike getpwnam(), the reentrant variant is not documented to manipulate errno, but instead it is supposed to return the error code directly. Same for getspnam_r(). Make sure the code handles ERANGE correctly.
@@ -715,16 +715,16 @@ auth_password_getpwnam(const char *username, struct passwd *pwd_buf, char **buf, { struct passwd *pwd = NULL; char *mem; + int r = 0; do { - errno = 0; - getpwnam_r(username, pwd_buf, *buf, *buf_size, &pwd); + r = getpwnam_r(username, pwd_buf, *buf, *buf_size, &pwd); if (pwd) { /* entry found */ b...
tls: fifo size is u32 unformat_memory_size() writes to a uword * Limit cli input to u32 Type: fix
@@ -892,6 +892,7 @@ static clib_error_t * tls_config_fn (vlib_main_t * vm, unformat_input_t * input) { tls_main_t *tm = &tls_main; + uword tmp; while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { if (unformat (input, "use-test-cert-in-ca")) @@ -901,9 +902,15 @@ tls_config_fn (vlib_main_t * vm, unformat_inpu...
Use job-fetchable state-reason for 'fetchable' value of which-jobs.
@@ -3928,6 +3928,7 @@ ipp_get_jobs(server_client_t *client) /* I - Client */ /* which-jobs values */ int job_comparison; /* Job comparison */ ipp_jstate_t job_state; /* job-state value */ + server_jreason_t job_reasons; /* job-state-reasons values */ int first_job_id, /* First job ID */ limit, /* Maximum number of jobs...
Mitigated deadlock of node in combination with python.
@@ -136,17 +136,11 @@ int type_py_interface_create(type t, type_impl impl) void type_py_interface_destroy(type t, type_impl impl) { - PyGILState_STATE gstate; - PyObject * builtin = (PyObject *)impl; (void)t; - gstate = PyGILState_Ensure(); - Py_DECREF(builtin); - - PyGILState_Release(gstate); } type_interface type_py_...
driver/temp_sensor/tmp468.c: Format with clang-format BRANCH=none TEST=none
#include "tmp468.h" - -static int fake_temp[TMP468_CHANNEL_COUNT] = {-1, -1, -1, -1, -1, -1, -1 , -1, -1}; +static int fake_temp[TMP468_CHANNEL_COUNT] = { -1, -1, -1, -1, -1, + -1, -1, -1, -1 }; static int temp_val[TMP468_CHANNEL_COUNT] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; static uint8_t is_sensor_shutdown; @@ -27,14 +27,1...
misc: acrnd: fix a minor build Werror The comparison ((argv + 1)) will always evaluate as 'true' for the pointer operand in 'argv + 8' must not be NULL.
@@ -657,7 +657,7 @@ static int valid_start_args(struct acrnctl_cmd *cmd, int argc, char *argv[]) { char df_opt[16] = "VM_NAME"; - if (argc != 2 || ((argv + 1) && !strcmp(argv[1], "help"))) { + if (argc != 2 || !strcmp(argv[1], "help")) { printf("acrnctl %s %s\n", cmd->cmd, df_opt); return -1; }
close socket for unsused candidates
@@ -415,8 +415,8 @@ uint8_t neat_remove_event_cb(struct neat_ctx *nc, uint8_t event_type, return RETVAL_SUCCESS; } -void neat_run_event_cb(struct neat_ctx *nc, uint8_t event_type, - void *data) +void +neat_run_event_cb(struct neat_ctx *nc, uint8_t event_type, void *data) { struct neat_event_cbs *cb_list_head = NULL; st...
stm32l4/irq: Fixed typo
@@ -63,7 +63,7 @@ enum { wwdq_irq = 16, pvd_pvm_irq, rtc_tamper_stamp_irq, rtc_wkup_irq, flash_irq can1_tx_irq, can1_rx0_irq, can1_rx1_irq, can1_sce_irq, exti9_5_irq, tim1_brk_irq, tim1_up_irq, tim1_trg_com_irq, tim1_cc_irq, tim2_irq, tim3_irq, tim4_irq, i2c1_ev_irq, i2c1_er_irq, i2c2_ev_irq, i2c2_er_irq, spi1_irq, spi...
Tests: Fix warning about catching polymorphic type
@@ -362,7 +362,7 @@ TEST (key, exceptions) { test.setName ("no"); } - catch (kdb::KeyInvalidName) + catch (kdb::KeyInvalidName &) { succeed_if (test.getName () == "", "not set to noname"); } @@ -374,7 +374,7 @@ TEST (key, exceptions) { test.setName ("no"); } - catch (kdb::KeyInvalidName) + catch (kdb::KeyInvalidName &)...
[chainmaker]add get time function in boatplatform.c
//! self header include #include <stdlib.h> +#include <time.h> #include "boatplatform.h" #include "boattypes.h" #include "boatutility.h" @@ -113,3 +114,10 @@ void BoatSleep(BUINT32 second) { sleep(second); } + +BUINT64 BoatGetTimes() +{ + BUINT64 timesec = 0; + time(&timesec); + return timesec; +} \ No newline at end o...
docs: tinyusb: fix typo
@@ -44,7 +44,7 @@ On top of it the driver implements: - Customization of USB descriptors - Serial device support - Redirecting of standard streams through the Serial device -- Encapsulated driver's task servicing the TinyuSB +- Encapsulated driver's task servicing the TinyUSB
DDF add variant to Tuya TS0202 presence sensor (_TZ3040_6ygjfyll) * Update ts0202_presence_sensor.json Added manufacturer name of another clone ("_TZ3040_6ygjfyll") * Update ts0202_presence_sensor.json
{ "schema":"devcap1.schema.json", - "manufacturername": ["_TZ3000_msl6wxk9", "_TZ3000_otvn3lne"], - "modelid":["TS0202", "TS0202"], + "manufacturername": ["_TZ3000_msl6wxk9", "_TZ3000_otvn3lne", "_TZ3040_6ygjfyll"], + "modelid":["TS0202", "TS0202", "TS0202"], "product":"TS0202 Presence sensor", "sleeper":true, "status"...
anahera: add menu button to keyboard Adding the "hamburger" button to support non-EPS non KB_BL SKU BRANCH=none TEST=none Tested-by: Devin Lu
@@ -55,12 +55,12 @@ static const struct ec_response_keybd_config keybd_wo_privacy_wo_kblight = { TK_SNAPSHOT, /* T5 */ TK_BRIGHTNESS_DOWN, /* T6 */ TK_BRIGHTNESS_UP, /* T7 */ - TK_PREV_TRACK, /* T8 */ - TK_PLAY_PAUSE, /* T9 */ - TK_MICMUTE, /* T10 */ - TK_VOL_MUTE, /* T11 */ - TK_VOL_DOWN, /* T12 */ - TK_VOL_UP, /* T13...
Add processor group combobox to affinity dialog
@@ -502,7 +502,7 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "OK",IDOK,169,206,50,14 PUSHBUTTON "Cancel",IDCANCEL,222,206,50,14 - LTEXT "Affinity controls which CPUs threads are allowed to execute on.",IDC_STATIC,7,7,265,11 + LTEXT "Affinity controls which CPUs threads are allowed to execute on.",IDC_STA...
schema mount UPDATE validate only present data Do not add default nodes from all the modules in the context.
@@ -954,8 +954,8 @@ schema_mount_validate(struct lysc_ext_instance *ext, struct lyd_node *sibling, c old_log_opts = ly_log_options(LY_LOSTORE_LAST); if (data_type == LYD_TYPE_DATA_YANG) { - /* validate all the data */ - ret = lyd_validate_all(&sibling, NULL, val_opts, diff ? &ext_diff : NULL); + /* validate all the mod...
Fix NULL ptr issue.
@@ -496,7 +496,7 @@ static int macroexpand1( return 0; /* Evaluate macro */ - JanetFiber *fiberp; + JanetFiber *fiberp = NULL; JanetFunction *macro = janet_unwrap_function(macroval); int lock = janet_gclock(); JanetSignal status = janet_pcall(
Fix issue introduced in Variadic functions can't return from within a `va_start` ... `va_end block.
@@ -989,20 +989,20 @@ int yr_object_set_integer( va_start(args, field); if (field != NULL) - { integer_obj = _yr_object_lookup(object, OBJECT_CREATE, field, args); + else + integer_obj = object; + + va_end(args); if (integer_obj == NULL) + { + if (field != NULL) return ERROR_INSUFFICIENT_MEMORY; - } else - { - integer_...
pybricks.common.ColorLight.blink: Duration > 0 Zero duration breaks the way the event loop works. Since 0 is no use for blinking, just disallow it. This also makes the error explicit for negative numbers.
@@ -76,6 +76,10 @@ STATIC mp_obj_t common_ColorLight_internal_blink(size_t n_args, const mp_obj_t * mp_obj_t durations_iter = mp_getiter(durations_in, &iter_buf); for (int i = 0; i < durations_len; i++) { cells[i] = pb_obj_get_positive_int(mp_iternext(durations_iter)); + // Duration less than event loop is not allowed ...
Pass through bin_gpdb_centos7 for mpp_resource_group_centos7 Previously, mpp_resource_group_centos7 use bin_gpdb_centos7 directly which may cause the inconsistence of bin_gpdb_centos7 and gpdb_src. This commit pass through bin_gpdb_centos7 from gate_mm_misc_start to avoid this even though it's not used by mm_misc jobs.
@@ -2546,6 +2546,9 @@ jobs: - MM_gppkg - MM_gprecoverseg # Not used by icw group, but is passed through + - get: bin_gpdb_centos7 + passed: + - gate_mm_misc_start - get: gpdb_src_tinc_tarball passed: - gate_mm_misc_start @@ -2940,6 +2943,9 @@ jobs: - get: bin_gpdb_centos6 passed: - gate_mm_misc_end + - get: bin_gpdb_ce...
rpi-config: remove explicit device tree selection for raspberrypi3-64 The current firmware doesn't need this.
@@ -188,10 +188,6 @@ do_deploy_append_raspberrypi3-64() { echo "# Enable audio (loads snd_bcm2835)" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt echo "dtparam=audio=on" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - - # Device Tree support - echo "# Load correct Device Tree for Aarch64" >>${DEPLOYDIR}/bcm2835-bootfiles...
remove make as install dependency
@@ -10,7 +10,7 @@ Standards-Version: 4.0.0 Package: oidc-agent Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, make (>= 4), +Depends: ${shlibs:Depends}, ${misc:Depends}, libsodium18 (>= 1.0.11), libcurl13 (>= 7.52) Description: Commandline tool for obtaining OpenID Connect Access tokens on the commandli...
Added <interrupt> element to <zone> element in the *.fzone file
@@ -87,7 +87,7 @@ This information can be used for example, to create a linker script that defines <td>\subpage fm_interrupt ".interrupt"</td> <td>A sequence of all interrupt sources available.</td> <td>sequence</td> - </tr>` + </tr> <tr> <td>\subpage fm_mpc_setup ".mpc_setup"</td> <td>Contains the device specific conf...
Copy ns time stat
#include "../common/constants.h" #include "../common/version.h" -#if !defined(_WIN32) -#include <unistd.h> -#include <utime.h> -#define MAKE_BINARY(FILENO) (FILENO) -#else +#if defined(_WIN32) #include <io.h> #include <share.h> #include <sys/utime.h> @@ -72,7 +68,23 @@ static int ms_open(const char* filename, int oflag...
nothing now compiles on freebsd
#include <stdlib.h> #include <errno.h> #include "system/nth_alloc.h" -#ifdef __linux__ +#if defined(__linux__) || defined(__FreeBSD__) #include <sys/stat.h> #include <sys/types.h> #elif defined(_WIN32) @@ -20,7 +20,7 @@ int last_modified(const char *filepath, time_t *time) trace_assert(filepath); trace_assert(time); -#...
Update data_dir default to in-src-build location, as used in nightly regresssion testing.
@@ -450,9 +450,13 @@ def log_test_result(result_dir,result): # Changed the definition of tests_dir_def to the new location of the # test directory. # +# Kathleen Biagas, Thu Dec 13 10:51:54 PST 2018 +# Changed definition of data_dir to new location. Assumes in-src build, +# which is used for nightly regression tests. +...
Fix error introduced during cleanup
@@ -347,7 +347,7 @@ int CNAME(BLASLONG m, FLOAT *a, BLASLONG lda, FLOAT *x, BLASLONG incx, FLOAT *bu range_m[MAX_CPU_NUMBER - num_cpu - 1] = range_m[MAX_CPU_NUMBER - num_cpu] - width; range_n[num_cpu] = num_cpu * (((m + 15) & ~15) + 16); if (range_n[num_cpu] > m * num_cpu) range_n[num_cpu] = m * num_cpu; - } + queue[nu...
chat fe: don't embed webms as images
@@ -72,7 +72,7 @@ export class Message extends Component { ); } else if ('url' in letter) { let imgMatch = - /(jpg|img|png|gif|tiff|jpeg|JPG|IMG|PNG|TIFF|GIF|webp|WEBP|webm|WEBM|svg|SVG)$/ + /(jpg|img|png|gif|tiff|jpeg|JPG|IMG|PNG|TIFF|GIF|webp|WEBP|svg|SVG)$/ .exec(letter.url); const youTubeRegex = new RegExp(String(/...
honggfuzz.h: increase the number of maximum positional args to execve that honggfuzz supports
#define _HF_INPUT_FILE_PATH "/dev/fd/" HF_XSTR(_HF_INPUT_FD) /* Maximum number of supported execve() args */ -#define _HF_ARGS_MAX 512 +#define _HF_ARGS_MAX 2048 /* Message indicating that the fuzzed process is ready for new data */ static const uint8_t HFReadyTag = 'R';
Fixed compiler warnings in dd.
@@ -188,9 +188,12 @@ static int dd_verify(FAR const char *infile, FAR const char *outfile, FAR struct dd_s *dd) { FAR uint8_t *buffer; - int sector = 0; + unsigned sector = 0; int ret = OK; + UNUSED(infile); + UNUSED(outfile); + ret = lseek(dd->infd, dd->skip ? dd->skip * dd->sectsize : 0, SEEK_SET); if (ret < 0) {
When compiling zlib after not found, always favor static under os/x / win32
@@ -206,7 +206,7 @@ if(OPENEXR_FORCE_INTERNAL_ZLIB OR NOT ZLIB_FOUND) file(MAKE_DIRECTORY "${zlib_INTERNAL_DIR}/include") file(MAKE_DIRECTORY "${zlib_INTERNAL_DIR}/lib") - if(BUILD_SHARED_LIBS AND NOT OPENEXR_FORCE_INTERNAL_ZLIB) + if(NOT (APPLE OR WIN32) AND BUILD_SHARED_LIBS AND NOT OPENEXR_FORCE_INTERNAL_ZLIB) add_l...
Fix incorrect assumptions about the size of size_t
@@ -82,7 +82,7 @@ static void mbedtls_base64_cond_assign(unsigned char * dest, const unsigned char */ static unsigned char mbedtls_base64_eq(size_t in_a, size_t in_b) { - uint32_t difference = in_a ^ in_b; + size_t difference = in_a ^ in_b; /* MSVC has a warning about unary minus on unsigned integer types, * but this i...
doc: fixes as suggested by
@@ -44,15 +44,13 @@ comment `# STDERR:`. ## Add a test -To add a Markdown Shell Recorder test for a certain Markdown file, you use: +To add a Markdown Shell Recorder test for a certain Markdown file, use the CMake function `add_msr_test`: ``` add_msr_test (name file) ``` -in a CMakeLists.txt. - -> Note that test cases ...
docs: add defaults for local rpm repos (xcat only)
@@ -37,6 +37,10 @@ domain_name="${domain_name:-local}" # Path to copy of OS ISO image (xCAT recipe only) iso_path="${iso_path:-}" +# Path to local repository web roots (xCAT recipe only) +ohpc_repo_dir="${ohpc_repo_dir:-/install/ohpc}" +epel_repo_dir="${epel_repo_dir:-/install/epel}" + # Provisioning interface used by ...
remove this line. it will block pipelines without unit test
@@ -171,7 +171,6 @@ class UnitTestAssignTest(CIAssignTest.AssignTest): test_cases.extend(get_test_cases_from_yml(self.test_case_path)) else: print("Test case path is invalid. Should only happen when use @bot to skip unit test.") - raise SystemExit(1) # filter keys are lower case. Do map lower case keys with original ke...
use "iat" for "timestamp" in session info hook
@@ -2808,7 +2808,7 @@ static int oidc_handle_remove_at_cache(request_rec *r, oidc_cfg *c) { #define OIDC_HOOK_INFO_REQUEST "info" #define OIDC_HOOK_INFO_FORMAT_JSON "json" -#define OIDC_HOOK_INFO_TIMESTAMP "timestamp" +#define OIDC_HOOK_INFO_TIMESTAMP "iat" #define OIDC_HOOK_INFO_ACCES_TOKEN "access_token" #define OIDC...
Have test/c/std/gif use frame background colors
@@ -875,15 +875,15 @@ const char* test_wuffs_gif_decode_background_color() { wuffs_gif__decoder__set_quirk_enabled( &dec, wuffs_gif__quirk_honor_background_color, q); - wuffs_base__image_config ic = ((wuffs_base__image_config){}); + wuffs_base__frame_config fc = ((wuffs_base__frame_config){}); wuffs_base__io_reader src...
declare rx_rate and tx_rate as uint16_t in sdr-transceiver.c
#include <arpa/inet.h> volatile uint64_t *rx_data, *tx_data; -volatile uint32_t *rx_freq, *rx_rate, *tx_freq, *tx_rate; -volatile uint16_t *gpio, *rx_cntr, *tx_cntr; +volatile uint32_t *rx_freq, *tx_freq; +volatile uint16_t *gpio, *rx_rate, *rx_cntr, *tx_rate, *tx_cntr; volatile uint8_t *rx_rst, *tx_rst; int sock_threa...
baseboard/goroh/usbc_config.c: Format with clang-format BRANCH=none TEST=none
@@ -62,7 +62,6 @@ static int goroh_usb_c0_set_mux(const struct usb_mux *me, mux_state_t mux_state, mux_state = mux_state ^ USB_PD_MUX_POLARITY_INVERTED; return virtual_usb_mux_driver.set(me, mux_state, ack_required); - } static int goroh_usb_c0_get_mux(const struct usb_mux *me, @@ -128,7 +127,6 @@ void ppc_interrupt(en...
Fix read-out-of-bounds bug.
@@ -92,7 +92,7 @@ arm_status arm_svdf_s8(const cmsis_nn_context *input_ctx, memmove((q15_t *)state_data, (q15_t *)state_data + 1, - (size_t)(input_batches * feature_batches * time_batches * (int32_t)sizeof(int16_t))); + (size_t)((input_batches * feature_batches * time_batches - 1) * (int32_t)sizeof(int16_t))); for (int...
azure pipeline: try to add centos.
@@ -3,8 +3,10 @@ jobs: timeoutInMinutes: 120 strategy: matrix: - linux: - imageName: 'ubuntu-16.04' + ubuntu: + imageName: 'ubuntu-18.04' + centos: + imageName: 'OpenLogic:CentOS:7.5:latest' mac: imageName: 'macos-10.14' # windows_2017:
add keyword EXTERNAL in JAVA_SRCS
@@ -103,6 +103,7 @@ def onjava_module(unit, *args): 'IDEA_EXCLUDE': extract_macro_calls(unit, 'IDEA_EXCLUDE_DIRS_VALUE', args_delim), 'GENERATE_SCRIPT': extract_macro_calls2(unit, 'GENERATE_SCRIPT_VALUE'), } + if unit.get('JAVA_ADD_DLLS_VALUE') == 'yes': data['ADD_DLLS_FROM_DEPENDS'] = extract_macro_calls(unit, 'JAVA_A...
FIB: do debug before remvoing last source
@@ -1111,10 +1111,10 @@ fib_entry_special_remove (fib_node_index_t fib_entry_index, best_source = fib_entry_src_get_source(bsrc); bflags = fib_entry_src_get_flags(bsrc); - sflag = fib_entry_src_action_remove_or_update_inherit(fib_entry, source); - FIB_ENTRY_DBG(fib_entry, "special remove:%U", format_fib_source, source)...
Disable EXPRECISION and add -lm on OSX (same as the BSDs and Linux)
@@ -8,7 +8,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") set(NO_EXPRECISION 1) endif () -if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|OpenBSD|NetBSD|DragonFly") +if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|OpenBSD|NetBSD|DragonFly|Darwin") set(EXTRALIB "${EXTRALIB} -lm") set(NO_EXPRECISION 1) endif ()
Remove build warning about ftime being deprecated.
#include <stddef.h> #include <stdlib.h> #include <string.h> -#include <sys/timeb.h> #include <time.h> #include "dbg.h" @@ -319,9 +318,9 @@ rateLimitMessage(proc_id_t *proc, watch_t src) { event_format_t event; - struct timeb tb; - ftime(&tb); - event.timestamp = tb.time + tb.millitm/1000; + struct timespec ts; + clock_...
Refactoring common.c Added forgotten defines
#define STM32_F3_OPTION_BYTES_BASE ((uint32_t)0x1FFFF800) #define STM32_G4_OPTION_BYTES_BASE ((uint32_t)0x1FFFF800) +#define STM32F0_DBGMCU_CR 0xE0042004 +#define STM32F0_DBGMCU_CR_IWDG_STOP 8 +#define STM32F0_DBGMCU_CR_WWDG_STOP 9 + +#define STM32F4_DBGMCU_APB1FZR1 0xE0042008 +#define STM32F4_DBGMCU_APB1FZR1_WWDG_STOP...
interface: fix group feed unread count Fixes urbit/landscape#1258
@@ -54,7 +54,7 @@ export function SidebarListHeader(props: { const feedPath = groupPath ? getFeedPath(associations.groups[groupPath]) : undefined; const unreadCount = useHarkState( - s => s.unreads?.graph?.[feedPath ?? '']?.['/']?.unreads as number ?? 0 + s => s.unreads?.[`/graph/${feedPath.slice(6)}` ?? '']?.count as ...
cirrus: undo gradle upgrade due to
@@ -59,7 +59,7 @@ RUN mkdir -p ${GTEST_ROOT} \ && rm gtest.tar.gz # download and install gradle -RUN cd /tmp && wget https://services.gradle.org/distributions/gradle-7.2-bin.zip && unzip gradle-7.2-bin.zip && rm gradle-7.2-bin.zip && mv gradle-7.2 /opt/gradle +RUN cd /tmp && wget https://services.gradle.org/distributio...
CODINGSTYLE: Add link to libutil Format reference to libutil in code style and add link to its subdirectory. Acked-by: Michael Holzheu
Coding guidelines for s390-tools ================================ -For s390-tools the preferred language is C. We provide libraries, e.g. libutil -that should be used by all tools if possible. +For s390-tools the preferred language is C. We provide libraries, e.g. +[`libutil`](libutil) that should be used by all tools ...
Fix Work CD-CI Fix build vars overide for PRs.
@@ -19,6 +19,7 @@ steps: - task: PowerShell@2 inputs: targetType: 'inline' - script: Write-Host "$("##vso[task.setvariable variable=NBGV_AssemblyFileVersion]")0.0.0.$env:System_PullRequest_PullRequestNumber" + script: Write-Host "$("##vso[task.setvariable variable=NBGV_Version]")0.0.0" + script: Write-Host "$("##vso[ta...
app/examples: Add a dup function to a procfs test case. To increase procfs code coverages, dup() is added to a procfs TC.
@@ -211,6 +211,7 @@ static int procfs_rewind_tc(const char *dirpath) return OK; } + #if defined(CONFIG_FS_SMARTFS) && !defined(CONFIG_SMARTFS_MULTI_ROOT_DIRS) && !defined(CONFIG_BUILD_PROTECTED) void tc_fs_smartfs_mksmartfs(void) { @@ -236,6 +237,9 @@ void tc_fs_smartfs_procfs_main(void) fd = open(PROC_SMARTFS_PATH, O_...
[core] remove cygwin O_NOFOLLOW workaround cygwin O_NOFOLLOW fixed in cygwin 3.4.5-1 x-ref: [ANNOUNCEMENT] cygwin 3.4.5-1 Fix an uninitialized variable having weird side-effects in path handling.
@@ -171,10 +171,6 @@ int fdevent_dup_cloexec (int fd) { #endif int fdevent_open_cloexec(const char *pathname, int symlinks, int flags, mode_t mode) { -#ifdef __CYGWIN__ /* broken in current cygwin; fixed in cygwin test */ -#undef O_NOFOLLOW -#define O_NOFOLLOW 0 -#endif if (!symlinks) flags |= O_NOFOLLOW; #ifdef O_CLOE...
messages: PR fixes fixes urbit/landscape#497
-import React, { ReactElement, ReactNode, useRef, useEffect, useState } from 'react'; +import React, { ReactElement, ReactNode, useState, useCallback } from 'react'; import { Icon, Box, Col, Text } from '@tlon/indigo-react'; import styled from 'styled-components'; import { Link, useHistory } from 'react-router-dom'; @@...