message
stringlengths
6
474
diff
stringlengths
8
5.22k
use new oidc-add --loaded option
@@ -142,10 +142,10 @@ fi cat $INITSCRIPT # Add given accounts if they're not already loaded. +LOADED="`oidc-add --loaded 2>/dev/null`" +LOADED=" `echo $LOADED` " for ACCOUNT; do - # Would prefer an option to oidc-agent or oidc-add to find out if an - # account is loaded, but for now find out by trying to get a token. -...
Fix iotivity-lite-jni project build Missed renaming IoTivity-Constrained to IoTivity-lite when the rename was merged in from master branch to swig branch.
<Link> <SubSystem>Windows</SubSystem> <GenerateDebugInformation>true</GenerateDebugInformation> - <AdditionalDependencies>ws2_32.lib;Iphlpapi.lib;IoTivity-Constrained.lib</AdditionalDependencies> + <AdditionalDependencies>ws2_32.lib;Iphlpapi.lib;IoTivity-lite.lib</AdditionalDependencies> <AdditionalLibraryDirectories>$...
Check for definition of NT_FILE Conditionally check for NT_FILE note coredump handling.
@@ -67,6 +67,7 @@ static int _handle_file_note(uint32_t n_namesz, uint32_t n_descsz, uint32_t n_type, char *name, uint8_t *desc, void *arg) { struct UCD_info *ui = (struct UCD_info *)arg; +#ifdef NT_FILE if (n_type == NT_FILE) { Debug(0, "found a PT_FILE note\n"); @@ -96,6 +97,7 @@ _handle_file_note(uint32_t n_namesz, ...
Add referenced_message loading to channel:message::json_load
@@ -140,6 +140,8 @@ json_load(char *str, size_t len, void *p_message) message->nonce = NULL; } + message->referenced_message = init(); + json_scanf(str, len, "[id]%F" "[channel_id]%F" @@ -156,8 +158,8 @@ json_load(char *str, size_t len, void *p_message) "[pinned]%b" "[webhook_id]%F" "[type]%d" - "[flags]%d", - //"[refe...
usb.c: indent, make error use ELOG, and add trace
@@ -1130,9 +1130,9 @@ static size_t stlink_probe_usb_devs(libusb_device **devs, stlink_t **sldevs[]) { ret = libusb_open(dev, &handle); if (ret < 0) { if (ret == LIBUSB_ERROR_ACCESS) { - WLOG("failed to open USB device (LIBUSB_ERROR_ACCESS), try running as root?\n"); + ELOG("Could not open USB device %#06x:%#06x, acces...
sandbox/fskcorr: adding power spectral density estimate
@@ -27,7 +27,7 @@ int main(int argc, char*argv[]) unsigned int j; // derived values - float nstd = 0; + float nstd = 1.0f; float gain = 1.0f; unsigned int i1 = (unsigned int)round(fc*M); unsigned int i0 = M - (i1 - 1); @@ -69,6 +69,10 @@ int main(int argc, char*argv[]) for (i=0; i<M; i++) windowcf_push(buf_rx, nstd*(ra...
sys/shell: print info when no help available
@@ -193,16 +193,17 @@ show_cmd_help(char *argv[]) console_printf("%s:\n", shell_module->commands[i].sc_cmd); if (!shell_module->commands[i].help) { - console_printf("\n"); + console_printf("(no help available)\n"); return 0; } if (shell_module->commands[i].help->usage) { + console_printf("%s:\n", shell_module->commands...
[mechanics] typo in CMakeLists.txt
@@ -118,7 +118,7 @@ if(SICONOS_HAS_BULLET) # Update compile flags for component if(BULLET_USE_DOUBLE_PRECISION) # Do we need this as public or private? Check if mechanics io needs this option? - target_compile_options(${COMPONENTS} PUBLIC "-DBT_USE_DOUBLE_PRECISION") + target_compile_options(${COMPONENT} PUBLIC "-DBT_U...
Fix elog info of ExecModifyTable function is not suitable issue. This patch addresses NFC.
@@ -2517,7 +2517,7 @@ ExecModifyTable(PlanState *pstate) &isNull); /* shouldn't ever get a null result... */ if (isNull) - elog(ERROR, "action is NULL"); + elog(ERROR, "gp_segment_id is NULL"); segid = DatumGetInt32(datum); } @@ -2528,7 +2528,7 @@ ExecModifyTable(PlanState *pstate) &isNull); /* shouldn't ever get a nul...
wireless: Add ioctl cmd to setting PTA prio info: Is the PTA priority enumeration type sufficient?
#define SIOCSIWCOUNTRY _WLIOC(0x0037) /* Set country code */ #define SIOCGIWCOUNTRY _WLIOC(0x0038) /* Get country code */ +/* WIFI / BT coexist type */ + +#define SIOCSIWPTAPRIO _WLIOC(0x0039) /* Set PTA priority type */ +#define SIOCGIWPTAPRIO _WLIOC(0x003a) /* Get PTA priority type */ + #define WL_IS80211POINTERCMD(c...
pyapi BUGFIX double free The data managed by libyang python API were freed directly by libnetconf's python binding code.
@@ -269,7 +269,8 @@ ncRPCEditConfig(ncSessionObject *self, PyObject *args, PyObject *keywords) node = lyd_new_leaf(data, ietfnc, "url", content_str); } } else if (content_tree) { - node = lyd_new_anydata(data, ietfnc, "config", content_tree, LYD_ANYDATA_DATATREE); + /* the content_tree is managed by libyang, make copy ...
Use SNI on outgoing TLS connections When establishing an outgoing TLS connection using a hostname as a target, use TLS SNI extensions to include the hostname in use.
#include <openssl/decoder.h> #endif #include <sys/uio.h> +#include <arpa/inet.h> #define REDIS_TLS_PROTO_TLSv1 (1<<0) #define REDIS_TLS_PROTO_TLSv1_1 (1<<1) @@ -857,10 +858,16 @@ static int connTLSAccept(connection *_conn, ConnectionCallbackFunc accept_handle static int connTLSConnect(connection *conn_, const char *add...
u3: fixes road leap/fall debug printfs
@@ -744,9 +744,9 @@ u3m_leap(c3_w pad_w) rod_u = _pave_south(u3a_into(bot_p), c3_wiseof(u3a_road), len_w); #if 0 - u3l_log("leap: from north %p (cap %x), to south %p\r\n", + fprintf(stderr, "leap: from north %p (cap 0x%x), to south %p\r\n", u3R, - u3R->cap_p + len_p, + u3R->cap_p + len_w, rod_u); #endif } @@ -756,9 +75...
Added details on round-robin thread switching
@@ -727,9 +727,13 @@ several threads. Threads are not really executed concurrently, but are timed whe into time slices and RTX5 assigns a time slice to each thread. Because the time slice is typically short (only a few milliseconds), it appears as though threads execute simultaneously. -Threads execute for the duration...
mmapstorage: check file size when mapping, munmap on error
@@ -934,6 +934,7 @@ int elektraMmapstorageGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Ke } FILE * fp; + char * mappedRegion = MAP_FAILED; if ((fp = openFile (parentKey, "r+")) == 0) { @@ -963,8 +964,14 @@ int elektraMmapstorageGet (Plugin * handle ELEKTRA_UNUSED, KeySet * returned, Ke goto error; } - char *...
fix number/float checks
@@ -26,8 +26,8 @@ const INTEGER_TYPES = [ const FLOAT_TYPES = [ 'float', 'double' ] -const isNumber = (value) => !isNaN(parseFloat(value)) && isFinite(value) -const isInt = (value) => /(-|\+)?[0-9]+/.test(value) +const isNumber = (value) => !isNaN(value) +const isInt = (value) => /^(-|\+)?[0-9]+$/.test(value) const ele...
picture_csp_enc.c,CheckNonOpaque: rm unneeded local the ternary used with alpha_offset was removed in: Import,RGBA: fix for BigEndian import use the ALPHA_OFFSET directly
@@ -69,9 +69,8 @@ static int CheckNonOpaque(const uint8_t* alpha, int width, int height, int WebPPictureHasTransparency(const WebPPicture* picture) { if (picture == NULL) return 0; if (picture->use_argb) { - const int alpha_offset = ALPHA_OFFSET; if (picture->argb != NULL) { - return CheckNonOpaque((const uint8_t*)pict...
add comment on wait strategy in region allocation
@@ -139,7 +139,13 @@ static bool mi_region_commit_blocks(mem_region_t* region, size_t idx, size_t bit start = ALLOCATING; // try to start allocating } else if (start == ALLOCATING) { - mi_atomic_yield(); // another thead is already allocating.. wait it out + // another thead is already allocating.. wait it out + // not...
Update Mutual Auth Unit Test to verify Handshake Type includes Client Auth
@@ -255,6 +255,8 @@ int main(int argc, char **argv) /* Verify that both connections are waiting for Application Data */ EXPECT_TRUE(APPLICATION_DATA == s2n_conn_get_current_message_type(client_conn)); EXPECT_TRUE(APPLICATION_DATA == s2n_conn_get_current_message_type(server_conn)); + EXPECT_TRUE(server_conn->handshake.h...
core: fix cache memleak
@@ -975,9 +975,9 @@ static int kdbCheckSplitState (Split * split, KeySet * global) elektraFree (name); name = 0; + keyDel (key); } - keyDel (key); return 0; error: @@ -1089,6 +1089,7 @@ static int kdbLoadSplitState (Split * split, KeySet * global) elektraFree (name); name = 0; + keyDel (key); }
10 tries, not 100
@@ -35,15 +35,17 @@ def _connect_wifi(dongle_id, pw): os.system("networksetup -setairportnetwork en0 %s %s" % (ssid, pw)) else: cnt = 0 - while 1: + MAX_TRIES = 10 + while cnt < MAX_TRIES: + print "WIFI: scanning %d" % cnt os.system("nmcli device wifi rescan") wifi_scan = filter(lambda x: ssid in x, subprocess.check_ou...
crypto: skip empty key IDs as recipients I discovered this bug during my work on . If an empty recipient is defined, GnuPG reports an error because it receives invalid command line arguments.
@@ -617,7 +617,7 @@ int ELEKTRA_PLUGIN_FUNCTION (gpgEncryptMasterPassword) (KeySet * conf, Key * err ksRewind (conf); while ((k = ksNext (conf)) != 0) { - if (keyIsBelow (k, root)) + if (keyIsBelow (k, root) && strlen (keyString (k)) > 0) { recipientCount++; } @@ -655,11 +655,12 @@ int ELEKTRA_PLUGIN_FUNCTION (gpgEncry...
libc: Partial implement fcntl()
@@ -545,22 +545,30 @@ int dup2(int src_fd, int dest_fd) { auto offer = parseSimple(element); auto send_req = parseSimple(element); auto recv_resp = parseInline(element); - auto pull_lane = parseHandle(element); HEL_CHECK(offer->error); HEL_CHECK(send_req->error); HEL_CHECK(recv_resp->error); - HEL_CHECK(pull_lane->erro...
sh/merge-with-custom-msg: 'origin' handling fix [ci skip] The KERNEL_CHANGED and PILLS_CHANGED variables used the revision with 'origin' stripped from it (intended for using in messages only), which caused them to miss remote revisions. Also tweaks the conditional so that the kernel diff only displays when pills haven'...
@@ -41,17 +41,18 @@ fi REV=$1 PR=$2 -TARGET=$(echo $REV | sed s_origin/__) +KERNEL_CHANGED=`git diff --name-status $REV -- pkg/arvo/sys` +PILLS_CHANGED=`git diff --name-status $REV -- bin` -MERGE_MSG="Merge branch '$TARGET' (#$PR)" - -KERNEL_CHANGED=`git diff --name-status $TARGET -- pkg/arvo/sys` -PILLS_CHANGED=`git d...
[build] Update Makefile
@@ -45,11 +45,18 @@ liball: done @echo "Done building libs." +liball-clean: + @for dir in $(LIBTOOLS); do \ + $(MAKE) PREFIX=$(LIBPATH) -C $(LIBPATH)/src/$$dir clean; \ + if [ $$? != 0 ]; then exit 1; fi; \ + done + @echo "Clean libs." + test: @go test -timeout 60s ./... -clean: +clean: liball-clean go clean rm -f $(BI...
Improve compilation speed: compiler only writes files with changed content
@@ -332,10 +332,25 @@ def beautify(filename): pass +def does_file_contain_text(filename, text): + """Returns True iff the file exists and it already contains the given text.""" + if os.path.isfile(filename): + with open(filename, "r") as infile: + intext = infile.read() + return text == intext + + return False + + def ...
One more change to get auto-detection to work
-Copyright (c) 2018, the LSSTDESC CCL contributors. +Copyright (c) 2018, the LSSTDESC CCL contributors (https://github.com/LSSTDESC/CCL/graphs/contributors). All rights reserved. -The LSSTDESC CCL contributors are listed in the documentation -("research note") provided with this software. The repository can be -found a...
chat: prevent timestamp from overflowing
@@ -243,7 +243,7 @@ export class MessageWithSigil extends PureComponent<MessageProps> { }} title={`~${msg.author}`} >{name}</Text> - <Text gray mono className="v-mid">{timestamp}</Text> + <Text flexShrink='0' gray mono className="v-mid">{timestamp}</Text> <Text gray mono ml={2} className="v-mid child dn-s">{datestamp}<...
[numerics] set the best choice for rho by defaults in NSN one contact solvers
@@ -1033,8 +1033,8 @@ int fc3d_onecontact_nonsmooth_Newton_gp_setDefaultSolverOptions(SolverOptions* o /* Value of rho parameter */ /* options->iparam[SICONOS_FRICTION_3D_NSN_RHO_STRATEGY] = SICONOS_FRICTION_3D_NSN_FORMULATION_RHO_STRATEGY_CONSTANT; */ /* options->iparam[SICONOS_FRICTION_3D_NSN_RHO_STRATEGY] = SICONOS_...
fix core issue when metadatacache disabled
@@ -1442,8 +1442,8 @@ fetch_hdfs_data_block_location(char *filepath, int64 len, int *block_num, *hit_ratio = 0.0; return NULL; } - BlockLocation *locations; - HdfsFileInfo *file_info; + BlockLocation *locations = NULL; + HdfsFileInfo *file_info = NULL; //double hit_ratio; uint64_t beginTime; beginTime = gettime_microse...
Fix additional mis-spelling
@@ -4241,7 +4241,7 @@ int mbedtls_ssl_context_save( mbedtls_ssl_context *ssl, MBEDTLS_SSL_DEBUG_MSG( 1, ( "There is pending outgoing data" ) ); return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA ); } - /* Protocol must be DLTS, not TLS */ + /* Protocol must be DTLS, not TLS */ if( ssl->conf->transport != MBEDTLS_SSL_TRANSPORT_DATA...
crypto: tutorial - download and install the Elektra key
@@ -35,6 +35,16 @@ If you have no GPG private key available, you can generate one by entering the f The `fcrypt` plugin and the `crypto` plugin support both versions (version 1 and version 2) of GPG. +In order to set up our tutorial we import the Elektra test key. +We **DO NOT RECOMMEND** to use our key on your local m...
zephyr: zmake: add platform/ec/zephyr to DTS_ROOT This allows us to put a dts directory and include directory in platform/ec/zephyr for DTS preprocessing. BRANCH=none TEST=follow-up CLs
@@ -75,7 +75,12 @@ class Zmake: base_config = zmake.build_config.BuildConfig( environ_defs={'ZEPHYR_BASE': str(zephyr_base), 'PATH': '/usr/bin'}, - cmake_defs={'DTS_ROOT': module_paths['zephyr-chrome']}) + cmake_defs={'DTS_ROOT': '{};{}'.format( + # TODO(b/177003034): remove zephyr-chrome from here + # once all dts fil...
Short range fix to test code only: corrected test cleanup. Corrected cleanup in shortRangeSetBaudrate and shortRangeResetToDefaultSettings, to avoid double calls two uShortRangeClose and thus unexpected behaviour.
@@ -226,7 +226,6 @@ U_PORT_TEST_FUNCTION("[shortRange]", "shortRangeUartSetBaudrate") U_PORT_TEST_ASSERT(uShortRangeSetBaudrate(&gHandles.devHandle, &uart) == 0); U_PORT_TEST_ASSERT(uShortRangeAttention(gHandles.devHandle) == 0); } - uShortRangeClose(gHandles.devHandle); uShortRangeTestPrivateCleanup(&gHandles); uPortL...
Docs: Minor update SyncRuntimePermissions text
@@ -1802,9 +1802,9 @@ To view their current state, use the \texttt{pmset -g} command in Terminal. This quirk attempts to update the memory map and memory attributes table to correct this. - \emph{Note}: The need for this quirk is indicated by early boot failures (e.g. halts at - black screen), particularly in early boo...
removed neff
@@ -554,17 +554,6 @@ static double ccl_dlninvsig_dlogm(ccl_cosmology *cosmo, double halomass, int*sta return val; } -/*----- ROUTINE: neff ------ - INPUT: - TASK: - */ -double neff(ccl_cosmology *cosmo, double halomass, int *status){ - - return 6.*ccl_dlninvsig_dlogm(cosmo, halomass, status)/log(10.)-3. - -} - - /*----...
fix test s exit code & fmt
@@ -32,7 +32,7 @@ build_asan: run_test: rm -fr $(BUILD_TEST_DIR) && mkdir $(BUILD_TEST_DIR) && cd $(BUILD_TEST_DIR) && cmake -DCMAKE_BUILD_TYPE=Release "$(CMAKE_FLAGS)" .. && make -j2 && cd test # && ./odyssey_test - docker-compose -f docker-compose-test.yml up --force-recreate --build + docker-compose -f docker-compos...
perf-tools/extrae: looks latest impi has moved location of libmpi.so; add additional flag to let extrae find it
@@ -45,7 +45,6 @@ This is the %{compiler_family}-%{mpi_family} version. %prep %setup -q -n %{pname}-%{version} -%patch1 -p0 %build # OpenHPC compiler/mpi designation @@ -61,7 +60,13 @@ export compiler_vars="CC=icc CXX=icpc MPICC=mpicc MPIF90=mpiifort" %endif ./bootstrap -./configure $compiler_vars --with-xml-prefix=/us...
docs: update WW customization to optionally export /opt/intel; needed for oneapi
@@ -29,6 +29,22 @@ example configuration. # Export /home and OpenHPC public packages from master server [sms](*\#*) echo "/home *(rw,no_subtree_check,fsid=10,no_root_squash)" >> /etc/exports [sms](*\#*) echo "/opt/ohpc/pub *(ro,no_subtree_check,fsid=11)" >> /etc/exports +\end{lstlisting} + +\noindent If planning to ins...
update json grab arm
~| a =+ ^- [wat=kind des=cord ses=(set @p)] %. a - (ot kind+(cu (hard kind) so) desc+so mems+(su (cook sy (more ace fed:ag))) ~) + :: ses expects an ace-delimited string of ship names + :: TODO change to an array of strings AA + (ot wat+(cu (hard kind) so) des+so ses+(su (cook sy (more ace fed:ag))) ~) ?> ?=([%o *] a) ...
doc: Added enum and typedef conventions
@@ -16,6 +16,17 @@ When doing modifications to third-party code used in ESP-IDF, follow the way tha C Code Formatting ----------------- +.. _style-guide-naming: + +Naming +^^^^^^ + +* Any variable or function which is only used in a single source file should be declared ``static``. +* Public names (non-static variables...
Fix camera clamping issues
#define BUBBLE_TOTAL_FRAMES 60 void ScriptHelper_CalcDest(); +void ScriptHelper_ClampCamDest(); UBYTE *RAMPtr; // UINT16 actor_move_dest_x = 0; @@ -503,17 +504,7 @@ void Script_CameraMoveTo_b() { camera_settings = (UBYTE)script_cmd_args[2] & ~CAMERA_LOCK_FLAG; camera_speed = (UBYTE)script_cmd_args[2] & CAMERA_SPEED_MAS...
Changed private to public
@@ -9,7 +9,7 @@ namespace pimoroni { //-------------------------------------------------- // Constants //-------------------------------------------------- - private: + public: static const uint8_t DEFAULT_CS_PIN = 17; static const uint8_t DEFAULT_DC_PIN = 16; static const uint8_t DEFAULT_SCK_PIN = 18;
Update README.md Just want it to build
# ESP32 WROOM-32 -The current image is built with mbedTLS v2.16.2. +The current image is built with mbedTLS included in IDF v3.3.5 (v2.16.7). This reference target _fits_ all EPS32 boards carrying an ESP32-WROOM-32 module.
SOVERSION bump to version 2.4.3
@@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 4) -set(LIBYANG_MICRO_SOVERSION 2) +set(LIBYANG_MICRO_SOVERSION 3) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI...
extmod/modussl_mbedtls: Use mbedtls_entropy_func for CTR-DRBG entropy. If mbedtls_ctr_drbg_seed() is available in the mbedtls bulid then so should be mbedtls_entropy_func(). Then it's up to the port to configure a valid entropy source, eg via MBEDTLS_ENTROPY_HARDWARE_ALT.
@@ -73,15 +73,6 @@ STATIC void mbedtls_debug(void *ctx, int level, const char *file, int line, cons } #endif -// TODO: FIXME! -STATIC int null_entropy_func(void *data, unsigned char *output, size_t len) { - (void)data; - (void)output; - (void)len; - // enjoy random bytes - return 0; -} - STATIC int _mbedtls_ssl_send(vo...
Fix CLOEXEC to be mac-compatible.
@@ -19,7 +19,7 @@ struct _transport_t cfg_transport_t type; ssize_t (*send)(int, const void *, size_t, int); int (*open)(const char *, int, ...); - int (*dup3)(int, int, int); + int (*dup2)(int, int); int (*close)(int); int (*fcntl)(int, int, ...); size_t (*fwrite)(const void *, size_t, size_t, FILE *); @@ -69,7 +69,7 ...
resolve defects: reverse_inull; row[DB_exp_date] referenced before checking
@@ -1924,8 +1924,8 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, row[DB_exp_date][tm->length] = '\0'; row[DB_rev_date] = NULL; row[DB_file] = OPENSSL_strdup("unknown"); - if ((row[DB_type] == NULL) || (row[DB_exp_date] == NULL) || - (row[DB_file] == NULL) || (row[DB_name] == NULL)) { + if ((row[DB_type...
list: fix placements
@@ -33,6 +33,8 @@ typedef enum getEnd } GetPlacements; +static const char * getStrings[] = { "pregetstorage", "procgetstorage", "postgetstorage", "postgetcleanup" }; + typedef enum { preSetStorage = 0, @@ -42,6 +44,8 @@ typedef enum setEnd } SetPlacements; +static const char * setStrings[] = { "presetstorage", "presetc...
libtock: don't use nested functions Clang doesn't support nested functions. For compatibility with Clang, remove their use.
@@ -166,28 +166,28 @@ void timer_cancel(tock_timer_t* timer) { alarm_cancel(&timer->alarm); } -void delay_ms(uint32_t ms) { - void delay_upcall(__attribute__ ((unused)) int unused0, +static void delay_upcall(__attribute__ ((unused)) int unused0, __attribute__ ((unused)) int unused1, __attribute__ ((unused)) int unused2...
fwcfg64: preparation for ARM64 build The project prepared for ARM64 build, but the build of this configuration is disabled. It can be enabled after mandatory definitions added for ARM64.
<Configuration>Win10 Release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> + <ProjectConfiguration Include="Win10 Release|ARM64"> + <Configuration>Win10 Release</Configuration> + <Platform>ARM64</Platform> + </ProjectConfiguration> <ProjectConfiguration Include="Win8.1 Release|x64"> <Configuration>Wi...
added vtk libraries to assure they are added
@@ -155,6 +155,7 @@ ${SIMV2_PLUGIN_DIR} LINK_DIRECTORIES( ${LIBRARY_OUTPUT_DIRECTORY} +${VTK_LIBRARY_DIRS} ${ICET_LIBRARY_DIR} ) @@ -173,7 +174,7 @@ VISIT_INSTALL_TARGETS(simV2runtime_ser) IF(VISIT_PARALLEL) ADD_PARALLEL_LIBRARY(simV2runtime_par ${LIBSIM_RUNTIME_SOURCES} ${LIBSIM_STATIC_SOURCES}) - TARGET_LINK_LIBRARIE...
Fixes a wrong function signature
@@ -114,7 +114,7 @@ static bool extractBundleEmbedded(celix_framework_t *fw, const char* embeddedBun return status == CELIX_SUCCESS; } -bool celix_framework_utils_extractBundle(celix_framework_t *fw, const char *bundleURL, const char* extractPath) { +celix_status_t celix_framework_utils_extractBundle(celix_framework_t ...
hv: Not to destroy ept of trusty memory if it's not initialized. If guest reboot is issued before trusty init hypercall is issued, we shouldn't destroy ept fo trusty memory because the ept is not created yet. Acked-by: Anthony Xu
@@ -125,8 +125,15 @@ void destroy_ept(struct vm *vm) { free_ept_mem(HPA2HVA(vm->arch_vm.nworld_eptp)); free_ept_mem(HPA2HVA(vm->arch_vm.m2p)); - /* Destroy Secure world ept */ - if (vm->sworld_control.sworld_enabled) + + /* + * If secure world is initialized, destroy Secure world ept. + * There are two cases secure wor...
Required: Use fence for code block
@@ -35,11 +35,13 @@ If you used [simplespeclang](/src/plugins/simplespeclang) and want to only allow keys that are present in the specification, you can add `required` to the `spec-mount` command: - % kdb mount test.spec spec/test simplespeclang - % cat << HERE > `kdb file spec/test` +```sh +kdb mount test.spec spec/te...
api: add DSCP definitions to ip_types.api also adds ecn definitions. Type: feature
@@ -22,11 +22,57 @@ enum address_family { ADDRESS_IP6, }; +/* ECN code points - RFC 3168 + https://tools.ietf.org/html/rfc3168 +*/ +enum ip_ecn : u8 { + IP_API_ECN_NONE = 0, + IP_API_ECN_ECT0 = 1, + IP_API_ECN_ECT1 = 2, + IP_API_ECN_CE = 3, +}; + +/* DSCP code points - RFC 2474 + https://tools.ietf.org/html/rfc2474 +*/...
[io vview] fix visibility of actors with len(contactors)>1
@@ -917,6 +917,7 @@ with Hdf5(io_filename=io_filename, mode='r') as io: contactors[instance] = [] transforms[instance] = [] offsets[instance] = [] + actors[instance] = [] for contactor_instance_name in io.instances()[instance_name]: contactor_name = io.instances()[instance_name][ contactor_instance_name].attrs['name'] ...
arch/sim: fix compile break when using mallinfo_task with custom mm manager /usr/bin/ld: nuttx.rel: in function `mallinfo_task': nuttx/mm/umm_heap/umm_mallinfo.c:67: undefined reference to `mm_mallinfo_task'
@@ -388,6 +388,21 @@ int mm_mallinfo(struct mm_heap_s *heap, struct mallinfo *info) return 0; } +/**************************************************************************** + * Name: mm_mallinfo_task + * + * Description: + * mallinfo_task returns a copy of updated current task's heap information. + * + **************...
correct discussion reference
- set minimum number of default memcache threads to 0 to retain backwards compatibility see #916 - support OIDCSessionInactivityTimeout values greater than 30 days when using Memcache - see #935, thanks @takesson + see #936, thanks @takesson - bump to 2.4.11.4rc6 10/03/2022
Disable controls while SPI is switched to MCU
@@ -46,6 +46,18 @@ lms7002_mainPanel::~lms7002_mainPanel() void lms7002_mainPanel::UpdateVisiblePanel() { + wxWindow* currentPage = tabsNotebook->GetCurrentPage(); + uint16_t spisw_ctrl = 0; + LMS_ReadLMSReg(lmsControl, 0x0006, &spisw_ctrl); + if(spisw_ctrl & 1) // transceiver controlled by MCU + { + if(currentPage != ...
VERSION bump to version 1.4.101
@@ -46,7 +46,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 1) set(SYSREPO_MINOR_VERSION 4) -set(SYSREPO_MICRO_VERSION 100) +set(SYSREPO_MICRO_VERSION 101) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_...
tests: Actually fix relation check
@@ -220,11 +220,11 @@ static void test_examples (void) keySetName (key, "user/key/folder"); keySetName (check, "user/notsame/folder"); - succeed_if (!(keyCmp (key, check) == 1 && keyIsDirectBelow (key, check) == 0 && keyIsBelow (key, check) == 0), "key is not below"); + succeed_if (keyCmp (key, check) != 0 && keyIsDire...
Disable EXPRECISION for DYNAMIC_ARCH in combination with TARGET=GENERIC NO_EXPRECISION is disabled for the GENERIC_TARGET already, so prevent mixing with code parts that use a different float size by default
@@ -93,6 +93,11 @@ endif ifdef TARGET GETARCH_FLAGS := -DFORCE_$(TARGET) GETARCH_FLAGS += -DUSER_TARGET +ifeq ($(TARGET), GENERIC) +ifeq ($(DYNAMIC_ARCH), 1) +override NO_EXPRECISION=1 +endif +endif endif # Force fallbacks for 32bit
README.md: Update Ubuntu 18.04 build: Add sound Sound missing when following build instructions in Ubuntu 18.04. See
@@ -96,7 +96,7 @@ sudo sh cmake-3.12.0-Linux-x86_64.sh --skip-license --prefix=/usr run the following commands in the Terminal ``` -sudo apt-get install g++ git cmake libgtk-3-dev libglvnd-dev libglu1-mesa-dev freeglut3-dev -y +sudo apt-get install g++ git cmake libgtk-3-dev libglvnd-dev libglu1-mesa-dev freeglut3-dev ...
system/hexed: fix error: 'memset' used with length equal to number of elements without multiplication by element size
* Copyright (c) 2011, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: + * modification, are permitted provided that the following conditions are + * met: * * Redistributions of source code...
virtual_battery: support reading SpecificationInfo TEST=check sbs-battery from host side BRANCH=None
@@ -318,6 +318,11 @@ int virtual_battery_operation(const uint8_t *batt_cmd_head, case SB_MANUFACTURER_ACCESS: /* No manuf. access reg access allowed over VB interface */ return EC_ERROR_INVAL; + case SB_SPECIFICATION_INFO: + /* v1.1 without PEC, no scale factor to voltage and current */ + val = 0x0011; + memcpy(dest, &...
Fix compilation error introduced by previous commit.
@@ -30,7 +30,7 @@ extern "C" { #define CELIX_EI_GET_CALLER(addr, level) \ do { \ Dl_info dlinfo; \ - assert(dladdr(__builtin_return_address((level), &dlinfo)); \ + dladdr(__builtin_return_address(level), &dlinfo); \ (addr) = dlinfo.dli_saddr; \ } while(0)
tools: RAS fix device id read logic for Integrated and Discrete fpga Changes: - Ras tool support for Integrated and Discrete fpga
@@ -1072,7 +1072,7 @@ fpga_result mmio_error(struct RASCommandLine *rasCmdLine) return result; } - if( (value != FPGA_INTEGRATED_DEVICEID) || + if( (value != FPGA_INTEGRATED_DEVICEID) && (value != FPGA_DISCRETE_DEVICEID) ) { FPGA_ERR("Failed to read Device id"); return FPGA_NOT_SUPPORTED;
tools: try to fix ABI break
@@ -31,9 +31,11 @@ namespace tools class PluginSpec { public: + /* TODO: add with ABI break? PluginSpec () { } + */ explicit PluginSpec (std::string pluginName, KeySet pluginConfig = KeySet ());
Use the secondary background color for the sidebar but when it's not actually on the side
@@ -373,15 +373,11 @@ public struct SidebarNavigation: View { self.viewControllerStore.vc?.present(navVC, animated: true, completion: nil) }, label: { Image(systemName: "gear") - })) + }).padding(5).hover()) .onAppear { - if stack { - UITableView.appearance().backgroundColor = .systemBackground - } else { UITableView.a...
Reorder function prototypes for consistency.
#include "utils/snapmgr.h" static BTMetaPageData *_bt_getmeta(Relation rel, Buffer metabuf); +static void _bt_log_reuse_page(Relation rel, BlockNumber blkno, + TransactionId latestRemovedXid); +static TransactionId _bt_xid_horizon(Relation rel, Relation heapRel, Page page, + OffsetNumber *deletable, int ndeletable); +s...
kukui: scp: Make comment for EC_FEATURE_SCP better. Since SCP is not a feature that EC can "support", change the wording of the comment to explain better. BRANCH=None TEST=None Commit-Ready: ChromeOS CL Exonerator Bot
@@ -1340,7 +1340,7 @@ enum ec_feature_code { EC_FEATURE_REFINED_TABLET_MODE_HYSTERESIS = 37, /* EC supports audio codec. */ EC_FEATURE_AUDIO_CODEC = 38, - /* EC Supports SCP. */ + /* The MCU is a System Companion Processor (SCP). */ EC_FEATURE_SCP = 39, /* The MCU is an Integrated Sensor Hub */ EC_FEATURE_ISH = 40,
Fix ecparam -genkey with point compression or DER outform
@@ -384,6 +384,9 @@ int ecparam_main(int argc, char **argv) "}\n"); } + if (outformat == FORMAT_ASN1 && genkey) + noout = 1; + if (!noout) { if (outformat == FORMAT_ASN1) i = i2d_ECPKParameters_bio(out, group); @@ -410,6 +413,9 @@ int ecparam_main(int argc, char **argv) goto end; } + if (new_form) + EC_KEY_set_conv_for...
testing/helpers: Use testing.TB instead of testing.T Those helpers are also useful for Benchmarks, then use the common interface of testing.{T,B,F}
@@ -29,7 +29,7 @@ import ( // CreateMntNsFilterMap creates and fills an eBPF map that can be used // to filter by mount namespace in the different tracers. -func CreateMntNsFilterMap(t *testing.T, mountNsIDs ...uint64) *ebpf.Map { +func CreateMntNsFilterMap(t testing.TB, mountNsIDs ...uint64) *ebpf.Map { t.Helper() con...
fix: Fixed that creat wallet failed and also occupied wallet limits issue A temporary repair
@@ -299,6 +299,7 @@ BSINT32 BoatWalletCreate(BoatProtocolType protocol_type, const BCHAR *wallet_nam { BoatLog(BOAT_LOG_NORMAL, "persistent wallet load failed."); BoatFree(boatwalletStore_ptr); + g_boat_iot_sdk_context.wallet_list[i].is_used = BOAT_FALSE; return BOAT_ERROR_PERSISTER_READ_FAIL; } //
Refactoring: remove repeated code
@@ -82,7 +82,7 @@ int grib_datetime_to_julian_d( long year, long month, long day, long hour, long minute, double second, double* jd) { - double a, b, dday; + double a, b = 0, dday; long y, m; dday = (double)(hour * 3600 + minute * 60 + second) / 86400.0 + day; @@ -97,22 +97,10 @@ int grib_datetime_to_julian_d( } a = (l...
vere: clean up refcounts, debug printf
@@ -496,7 +496,6 @@ _pier_on_scry_done(void* ptr_v, u3_noun nun) u3_atom out; c3_c* ext_c; { - u3l_log("xxx\n"); u3_atom puf = u3i_string(u3_Host.ops_u.puf_c); if ( c3y == u3r_sing(c3__jam, puf) ) { out = u3qe_jam(res); @@ -506,6 +505,7 @@ _pier_on_scry_done(void* ptr_v, u3_noun nun) out = u3dc("scot", puf, u3k(res)); ...
Coding: Extend Clang-Format install instructions
@@ -166,7 +166,13 @@ or by installing the whole [LLVM](http://llvm.org) infrastructure: brew install llvm ``` -. Please note, that both of these commands will install current versions of `clang-format` that might format code a little bit differently than Clang-Format `6.0` in certain edge cases. +. Please note, that bo...
Add __declspec(noreturn) to terminate_non_graceful() on Windows Informs the compiler that the function never returns, which fixes a -Wsometimes-uninitialized warning.
@@ -92,7 +92,7 @@ extern u_short ip_id; #include <stdlib.h> #if defined(_WIN32) -static inline void +static inline void __declspec(noreturn) #else static inline void __attribute__((__noreturn__)) #endif
serf: fix incorrect conditional (integer precision) in event tracing
@@ -572,7 +572,7 @@ _serf_work(u3_serf* sef_u, c3_w mil_w, u3_noun job) u3_noun u3_serf_work(u3_serf* sef_u, c3_w mil_w, u3_noun job) { - c3_t tac_t = ( u3C.wag_w & u3o_trace ); + c3_t tac_t = !!( u3C.wag_w & u3o_trace ); c3_c lab_c[2056]; u3_noun pro;
always disable networking for fake ships
@@ -849,6 +849,12 @@ _pier_disk_load_commit(u3_pier* pir_u, pir_u->lif_d = u3r_word(0, len); u3r_chubs(0, 2, pir_u->who_d, who); + // Disable networking for fake ships + // + if ( c3y == pir_u->fak_o ) { + u3_Host.ops_u.net = c3n; + } + u3z(mat); u3z(ovo); break; @@ -1455,8 +1461,8 @@ _pier_work_poke(void* vod_p, pir_u...
GA: Add python 2.7.
@@ -83,7 +83,7 @@ jobs: runs-on: windows-latest strategy: matrix: - python: [3.5, 3.6, 3.7, 3.8, 3.9] + python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2
syv682x: Set SYV682X HV_ILIM depend on sink path. Set syv682x HV_ILIM when source path enable. BRANCH=master TEST=Use ppc_dump <port> to check the setting correct.
@@ -297,6 +297,8 @@ static int syv682x_vbus_sink_enable(int port, int enable) /* Select Sink mode and turn on the channel */ regval &= ~(SYV682X_CONTROL_1_HV_DR | SYV682X_CONTROL_1_PWR_ENB); + /* Set sink current limit to the configured value */ + regval |= CONFIG_SYV682X_HV_ILIM << SYV682X_HV_ILIM_BIT_SHIFT; flags[por...
disallow regular allocation from the huge reserved area
@@ -456,6 +456,7 @@ static void* mi_os_mem_alloc(size_t size, size_t try_alignment, bool commit, boo if (!commit) allow_large = false; void* p = NULL; + /* if (commit && allow_large) { p = _mi_os_try_alloc_from_huge_reserved(size, try_alignment); if (p != NULL) { @@ -463,6 +464,7 @@ static void* mi_os_mem_alloc(size_t ...
"matrix" -> "jobs".
@@ -6,7 +6,7 @@ language: c script: ./configure --enable-debug --enable-sanitizer && make && make test -matrix: +jobs: include: # Linux-specific build stuff - os: linux @@ -23,6 +23,5 @@ matrix: notifications: email: - # TODO: Need mailing list for OpenPrinting CI builds recipients: - msweet@msweet.org
reduce slider size a bit
@@ -23,7 +23,7 @@ class GenerateSlider: self.slideroverride = tuple(self.slideroverride) self.radius = radius - self.scale = scale + self.scale = scale * 0.95 self.extended = 2 * self.radius * self.scale def convert_string(self, slider_code):
pbio/platform/essential_hub: Drop unused symbols. This sets two unused fields to NULL, and clarifies the name of the id_string.
// Special symbols for firmware compatibility with official apps typedef struct { const char *fw_ver; - const uint32_t *reserved1; - const uint8_t *reserved2; - const char *hub_type_id; + const uint32_t *checksum; + const uint8_t *reserved; + const char *id_string; } boot_t; const boot_t __attribute__((section(".boot")...
Add SUBSYSTEM_INFORMATION_TYPE
@@ -987,6 +987,14 @@ typedef struct _THREAD_NAME_INFORMATION UNICODE_STRING ThreadName; } THREAD_NAME_INFORMATION, *PTHREAD_NAME_INFORMATION; +// private +typedef enum _SUBSYSTEM_INFORMATION_TYPE +{ + SubsystemInformationTypeWin32, + SubsystemInformationTypeWSL, + MaxSubsystemInformationType +} SUBSYSTEM_INFORMATION_TY...
out_gelf: use network api to set default host and port
@@ -302,14 +302,8 @@ static int cb_gelf_init(struct flb_output_instance *ins, struct flb_config *conf const char *tmp; struct flb_out_gelf_config *ctx = NULL; - /* Set default network configuration */ - if (!ins->host.name) { - ins->host.name = flb_strdup("127.0.0.1"); - } - if (ins->host.port == 0) { - ins->host.port ...
mmapstorage: add keyflag test
@@ -697,6 +697,27 @@ static void test_mmap_ksLookupByName (const char * tmpFile, option_t options) } /* -- Key operation tests --------------------------------------------------------------------------------------------------------------- */ + +static void test_mmap_keyFlags (const char * tmpFile) +{ + Key * parentKey ...
in_thermal: remove config_destroy function.
@@ -122,18 +122,6 @@ static inline int proc_temperature(struct flb_in_thermal_config *ctx, struct tem return i; } -static void config_destroy(struct flb_in_thermal_config *ctx) { -#ifdef FLB_HAVE_REGEX - if (ctx && ctx->name_regex) { - flb_regex_destroy(ctx->name_regex); - } - if (ctx && ctx->type_regex) { - flb_regex_...
fix exception name Note: mandatory check (NEED_CHECK) was skipped
@@ -865,7 +865,7 @@ def test_predict_class(task_type): def test_zero_learning_rate(task_type): train_pool = Pool(TRAIN_FILE, column_description=CD_FILE) model = CatBoostClassifier(iterations=2, learning_rate=0, task_type=task_type, devices='0') - with pytest.raises(CatboostError): + with pytest.raises(CatBoostError): m...
doc: fix error in custom CSS file Typo caused some styles to be missed
position: static; border-top: none; padding: 0px; -} */ +} +*/ .rst-versions .rst-current-version { padding: 5px; @@ -81,7 +82,7 @@ table.align-center { padding: 1em 0; text-align: center; } -` + /* make .. hlist:: tables fill the page */ table.hlist { width: 95% !important;
CLEANUP: remove useless arcus_check_server_mapping() call when rejoin.
@@ -1576,16 +1576,10 @@ int arcus_zk_rejoin_ensemble() break; } - /* check zk root directory and get the serice code */ - if (zk_root == NULL) { - zk_root = "/arcus"; /* set zk root directory */ - ret = arcus_check_server_mapping(main_zk->zh, zk_root); - if (ret != 0) { - arcus_conf.logger->log(EXTENSION_LOG_WARNING, N...
Fix build with -DNETSYSCALL_DEBUG
@@ -1280,7 +1280,7 @@ sysreturn getsockopt(int sockfd, int level, int optname, void *optval, socklen_t { sock s = resolve_fd(current->p, sockfd); net_debug("sock %d, type %d, thread %ld, level %d, optname %d\n, optlen %d\n", - s->fd, s->type, current->tid, level, optname, optlen ? *optlen : -1) + s->fd, s->type, curren...
build system: print some information about the compiler
@@ -562,27 +562,42 @@ print_flash_cmd: partition_table_get_info blank_ota_data # Check toolchain version using the output of xtensa-esp32-elf-gcc --version command. # The output normally looks as follows -# xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-59-ga194053) 4.8.5 +# xtensa-esp32-elf-gcc (crosstool-NG c...
vere: fix queu short-args parsing
@@ -1485,7 +1485,7 @@ _cw_queu(c3_i argc, c3_c* argv[]) u3_Host.dir_c = _main_pier_run(argv[0]); - while ( -1 != (ch_i=getopt_long(argc, argv, "", lop_u, &lid_i)) ) { + while ( -1 != (ch_i=getopt_long(argc, argv, "r:", lop_u, &lid_i)) ) { switch ( ch_i ) { case 6: { // no-demand u3_Host.ops_u.map = c3n;
disable modern login and pass arguments to client disables the new react ui because the browser isn't available for now and passes the additional command line arguments to the main client
@@ -21,7 +21,7 @@ cd ../ && rm -rf ./tmp/ echo "#!/bin/bash export STEAMOS=1 export STEAM_RUNTIME=1 -~/steam/bin/steam steam://open/minigameslist" > steam +~/steam/bin/steam -noreactlogin steam://open/minigameslist $@" > steam # make script executable and move chmod +x steam
gts_ls memory fault
@@ -903,7 +903,7 @@ static int read_any_gts(reader *r) unsigned long magic = 0; unsigned long start = 0x010d0d0a; unsigned long theEnd = 0x0d0d0a03; - unsigned char tmp[32]={0,}; /* Should be enough */ + unsigned char tmp[128]={0,}; /* See ECC-735 */ size_t message_size=0; size_t already_read=0; int i=0;
Re-add -a alpha error scaling based on block max alpha
@@ -654,7 +654,7 @@ astcenc_error astcenc_config_init( // // ... but we scale these up to keep a better balance between color and alpha. Note // that if the content is using alpha we'd recommend using the -a option to weight - // the color conribution by the alpha transparency. + // the color contribution by the alpha ...