message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Update README
Improved LuaRocks installation instructions for Bash
Added /usr/bin/time instalation instructions for Debian
Fix typos | @@ -27,7 +27,11 @@ $ luarocks install --local --only-deps pallene-dev-1.rockspec
```
If you use the --local flag when installing packages from Luarocks, you may
-also need to configure the appropriate environment variables on your .bashrc.
+also need to configure the appropriate environment variables on your terminal c... |
Used the loader file to load glSampleCoverage | @@ -637,26 +637,10 @@ void gl4es_glGetTexParameteriv(GLenum target, GLenum pname, GLint * params) {
// Samples stuff
+#include "../loader.h"
void gl4es_glSampleCoverage(GLclampf value, GLboolean invert) {
- static glSampleCoverage_PTR gles_glSampleCoverage = NULL;
- {
- static bool first = true;
- if (first) {
- first ... |
Tweak README
[ci skip] | [](https://www.codacy.com/app/jbush001/NyuziProcessor?utm_source=github.com&utm_medium=referral&utm_content=jbush001/NyuziProcessor&utm_campaign=Badge_Grade)
[;
// PyMODINIT_FUNC PyInit__curses_panel(void); // Library not loaded: /usr/lib/libpanel.5.4.dylib
PyMODINIT_FUNC PyInit_binascii(void);
PyMODINIT_FUNC PyInit__bz2(void);
-// PyMODINIT_FUNC PyInit__lzma(void); // not compatible with AppStore
+PyMODINIT_FUNC PyInit... |
tools: acrnlog: Add [-t interval] [-h] to usage
This patch add "[-t interval] [-h]" which support by acrnlog now to usage. | @@ -409,7 +409,7 @@ static const char optString[] = "s:n:t:h";
static void display_usage(void)
{
printf("acrnlog - tool to collect ACRN hypervisor log\n"
- "[Usage] acrnlog [-s] [size] [-n] [number]\n\n"
+ "[Usage] acrnlog [-s size] [-n number] [-t interval] [-h]\n\n"
"[Options]\n"
"\t-h: print this message\n"
"\t-t: p... |
Allow each title bar button to be used twice. | @@ -79,8 +79,9 @@ typedef unsigned char MouseContextType;
#define MC_BORDER_E 0x40 /**< East border. */
#define MC_BORDER_W 0x80 /**< West border. */
-/** Maximimum number of Title bar components. */
-#define TBC_COUNT 6
+/** Maximimum number of title bar components
+ * For now, we allow each component to be used twice... |
runtime: fix udp socket shutdown race condition | @@ -290,8 +290,8 @@ ssize_t udp_read_from(udpconn_t *c, void *buf, size_t len,
spin_lock_np(&c->inq_lock);
}
- /* is the socket drained and shutdown? */
- if (mbufq_empty(&c->inq) && c->shutdown) {
+ /* is the socket shutdown? */
+ if (c->shutdown) {
spin_unlock_np(&c->inq_lock);
return 0;
}
|
Fix minor typo(?)
Probably a typo related to commenting and uncommenting line for gcc/icc selection. | @@ -87,7 +87,7 @@ TRYING A NEW CODE
To run a good number of experiments on a code, it is best to use the setup
created for example codes in the examples/ directory. If you do not have
-ICC (Intel C compiler), uncomment line 7 and comment line
+ICC (Intel C compiler), uncomment line 9 and comment line
8 of examples/comm... |
fixup! os/tools/*.py: Integrate common util functions
1. Fix wrong indentation at line 280 in mkbinheader.py
2. Fix wrong value of common binary version
It should be converted to integer value before value verification.
3. Modify debug messages to know what problem is Exactly | @@ -125,7 +125,8 @@ def make_kernel_binary_header():
sys.exit(1)
bin_ver = int(bin_ver)
if bin_ver < 101 or bin_ver > 991231 :
- print("Error : Invalid value. It has 'YYMMDD' format so it should be in (101, 991231)")
+ print("Error : Invalid Kernel Binary Version, ",bin_ver,".")
+ print(" Please check CONFIG_BOARD_BUIL... |
Correct BME280 IIR filter setting | @@ -249,8 +249,8 @@ static int bme280_lua_init(lua_State* L) {
bme280_ossh = (!lua_isnumber(L, 5))?BME280_OVERSAMP_16X:(luaL_checkinteger(L, 5)&bit3); // 5-th parameter: humidity oversampling
- config = ((!lua_isnumber(L, 7)?BME280_STANDBY_TIME_20_MS:(luaL_checkinteger(L, 7)&bit3))<< 4) // 7-th parameter: inactive dura... |
Dockerfile: clean after first apt-get round
This reduces the size of the image. | @@ -10,7 +10,8 @@ RUN apt-get -qq update && \
apt-get -qq -y --no-install-recommends install \
ca-certificates \
gnupg \
- software-properties-common > /dev/null
+ software-properties-common > /dev/null && \
+ apt-get -qq clean
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA2... |
wireless/bcm43xxx: subscribe only to the events we need | @@ -175,9 +175,6 @@ static int bcmf_driver_download_clm(FAR struct bcmf_dev_s *priv);
/* FIXME only for debug purpose */
-static void bcmf_wl_default_event_handler(FAR struct bcmf_dev_s *priv,
- struct bcmf_event_s *event, unsigned int len);
-
static void bcmf_wl_radio_event_handler(FAR struct bcmf_dev_s *priv,
struct ... |
[X11] add about timidity | @@ -379,6 +379,39 @@ We can use external MIDI sound generator with UM-1.
* Press 'OK'
4. I tried with Touhou 2 (set MIDI option), I can listen MIDI sound.
+[X11] To use software synthesizer timidity as Virtual MIDI
+---
+We can software synthesizer timidity as Virtual MIDI.
+
+It seems that timidity is incompatible wit... |
arch/arm/src/imxrt: Fixing build error on enabling usb debug
Fixed build error with macro usage. | @@ -5085,7 +5085,7 @@ FAR struct usbhost_connection_s *imxrt_ehci_initialize(int controller)
ret = irq_attach(IMXRT_IRQ_USBOTG1, imxrt_ehci_interrupt, NULL);
if (ret != 0) {
- usbhost_trace1(EHCI_TRACE1_IRQATTACH_FAILED, IMXRT_IRQ_USBOTG);
+ usbhost_trace1(EHCI_TRACE1_IRQATTACH_FAILED, IMXRT_IRQ_USBOTG1);
return NULL;
... |
server: scheduler: fix function prototype | @@ -215,7 +215,7 @@ extern pthread_mutex_t mutex_worker_init;
extern pthread_mutex_t mutex_worker_exit;
pthread_mutex_t mutex_port_init;
-struct mk_sched_worker *mk_sched_next_target();
+struct mk_sched_worker *mk_sched_next_target(struct mk_server *server);
int mk_sched_init(struct mk_server *server);
int mk_sched_exi... |
Fix issue fits_in_pe macro when size is an expression such as len + 1. | #define MAX_PE_SECTIONS 96
-
#define IS_64BITS_PE(pe) \
(yr_le16toh(pe->header64->OptionalHeader.Magic) == \
IMAGE_NT_OPTIONAL_HDR64_MAGIC)
-
#define OptionalHeader(pe, field) \
(IS_64BITS_PE(pe) ? pe->header64->OptionalHeader.field \
: pe->header->OptionalHeader.field)
-
//
// Imports are stored in a linked list. Each... |
fuzz: add 1-byte file before changing the state | @@ -168,10 +168,6 @@ static void fuzz_setDynamicMainState(run_t* run) {
util_sleepForMSec(10); /* Check every 10ms */
}
- LOG_I("Entering phase 3/3: Dynamic Main (Feedback Driven Mode)");
- snprintf(run->origFileName, sizeof(run->origFileName), "[DYNAMIC]");
- ATOMIC_SET(run->global->feedback.state, _HF_STATE_DYNAMIC_M... |
Temporarily remove CSV option in simplified db job till MCF 2.25 update | <OPTION value="jtds:sybase://">Sybase</OPTION>
<OPTION value="mysql://">MySQL</OPTION>
<OPTION value="mariadb://">MariaDB</OPTION>
- <OPTION value="xbib:csv:">CSV</OPTION>
+ <!-- This option will only be available with MCF 2.25
+ <OPTION value="xbib:csv:">CSV</OPTION> -->
</select>
</div>
</div>
|
apps/lib/opt.c: Fix error message on unknown option/digest | @@ -370,7 +370,8 @@ int opt_md(const char *name, const EVP_MD **mdp)
*mdp = EVP_get_digestbyname(name);
if (*mdp != NULL)
return 1;
- opt_printf_stderr("%s: Unknown message digest: %s\n", prog, name);
+ opt_printf_stderr("%s: Unknown option or message digest: %s\n", prog,
+ name != NULL ? name : "\"\"");
return 0;
}
|
fmt: fix macOS compatibility | @@ -34,5 +34,5 @@ fi
comment_lines=$((999 - end_line))
head -n "$end_line" 'tests/shell/include_common.sh.in' > a.tmp && mv a.tmp 'tests/shell/include_common.sh.in'
-printf "%${comment_lines}s" | sed 's/ /#\n/g' >> 'tests/shell/include_common.sh.in'
+awk -v LINES="${comment_lines}" 'BEGIN { for (c = 0; c < LINES; c++) ... |
fix dev option | @@ -38,7 +38,7 @@ namespace NCatboostCuda {
}
bool NeedBestTestCursor() const {
- return HasTest && !OutputOptions.CreateEvalFullPath().empty();
+ return false;//TODO(noxoomo): uncomment with evalFileName will be implemetntedHasTest && !OutputOptions.CreateEvalFullPath().empty();
}
size_t GetCurrentIteration() const {
|
OcConfigurationLib: Fix parsing MmioWhitelist | @@ -149,7 +149,15 @@ mAcpiConfigurationSchema[] = {
STATIC
OC_SCHEMA
-mBooterWhitelistEntrySchema = OC_SCHEMA_INTEGER (NULL, UINT64);
+mBooterWhitelistEntrySchema[] = {
+ OC_SCHEMA_INTEGER_IN ("Address", OC_BOOTER_WL_ENTRY, Address),
+ OC_SCHEMA_STRING_IN ("Comment", OC_BOOTER_WL_ENTRY, Comment),
+ OC_SCHEMA_BOOLEAN_IN... |
adding Molly as IoT code owner | /sdk/platform/http_client/ @vhvb1989
/sdk/platform/win32/ @antkmsft @jeffreyrichter
/sdk/storage/ @gilbertw
-/sdk/iot/ @CIPop @danewalton @ericwol-msft @ewertons @hihigupt @jspaith
+/sdk/iot/ @CIPop @danewalton @ericwol-msft @ewertons @hihigupt @jspaith @momuno
###########
# Eng Sys
|
[numerics] correct final test if converged | @@ -526,7 +526,7 @@ void convexQP_ADMM(ConvexQP* problem,
convexQP_compute_error(problem, z, xi, w, u, tolerance, rho, options, norm_q, norm_b, &error);
numerics_printf_verbose(1,"---- ConvexQP - ADMM - Iteration %i rho = %14.7e \t error = %14.7e", iter, rho, error);
- if(error < tolerance) hasNotConverged = 0;
+ if(er... |
Remove IPP_ prefixes from examples | @@ -147,13 +147,13 @@ so that it is not necessary. C source files use the C99 comment format
// Clear the state array before we begin...
for (i = 0; i < (sizeof(array) / sizeof(sizeof(array[0])); i ++)
- array[i] = IPP_STATE_IDLE;
+ array[i] = PAPPL_STATE_IDLE;
// Wait for state changes on another thread...
do
{
for (i... |
qemu-arm: Enable more config options.
This port's purpose is to run testsute in QEMU, so the more options
enabled, the better. | #define MICROPY_PY_BUILTINS_FROZENSET (1)
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
#define MICROPY_PY_BUILTINS_POW3 (1)
+#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
+#define MICROPY_PY_BUILTINS_STR_CENTER (1)
+#define MICROPY_PY_BUILTINS_STR_COUNT (1)
+#define MICROPY_PY_BUILTINS_STR_PARTITION (1)
+#define MICROPY_PY... |
feat: use uintmax_t to use portable format string | @@ -134,7 +134,7 @@ struct discord_voice {
char digest[CEE_SHA1_STR_LEN];
char unique_key[128];
int audio_udp_pid;
- time_t start_time;
+ uintmax_t start_time;
} udp_service;
struct discord_voice_cbs *p_voice_cbs;
|
tls: avoid possible async handler duplication
One handler is good enough when engine sends out a retry status
Thus this patch will just go one branch | @@ -220,7 +220,7 @@ openssl_ctx_handshake_rx (tls_ctx_t * ctx, stream_session_t * tls_session)
{
vpp_ssl_async_retry_func (ctx, myself);
}
- if (err == SSL_ERROR_WANT_ASYNC)
+ else if (err == SSL_ERROR_WANT_ASYNC)
{
vpp_ssl_async_process_event (ctx, myself);
}
|
Fix includes windows-specific source
The header strutil.h is two levels above sys/win/command.c, and
SDL_log.h was missing. | #include "../../command.h"
-#include <stdio.h>
-#include "../strutil.h"
+#include <SDL2/SDL_log.h>
+#include "../../strutil.h"
HANDLE cmd_execute(const char *path, const char *const argv[]) {
STARTUPINFO si;
|
Fixed scale error in sim | @@ -48,6 +48,7 @@ struct SurviveDriverSimulator {
FLT sensor_droprate;
FLT init_time;
+ FLT scale_error;
FLT timestart;
FLT current_timestamp;
int acode;
@@ -124,7 +125,15 @@ FLT lighthouse_angle(SurviveDriverSimulator *driver, int lh, FLT timestamp) {
}
static bool lighthouse_sensor_angle(SurviveDriverSimulator *drive... |
[catboost] Remove unnecessary code | @@ -3546,7 +3546,6 @@ namespace {
int begin,
int end,
NPar::TLocalExecutor& executor) const override;
- TString GetDescription() const override;
void GetBestValue(EMetricBestValue* valueType, float* bestValue) const override;
private:
@@ -3691,10 +3690,6 @@ TMetricHolder TPRAUCMetric::Eval(
return error;
}
-TString TPR... |
doc MAINTENANCE update transition manual according to recent changes
yang-library related functions are implemented now | * ly_ctx_get_disabled_module() and the associated ly_ctx_get_disabled_module_iter() | - | ^
* ly_ctx_info() | ::ly_ctx_get_yanglib_data() | Clarification of what to expect as the output of the function and possibility to specify custom content ID.
* ly_ctx_get_module_set_id() | ::ly_ctx_get_change_count() | The functio... |
Do not link mruby against winsock on WinNT | @@ -295,9 +295,6 @@ set_property(TARGET mruby APPEND
set_property(TARGET mruby APPEND
PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${MRUBY_DIR}/include
)
-if(WIN32)
- target_link_libraries(mruby INTERFACE ws2_32.lib wsock32.lib)
-endif()
add_dependencies(mruby mruby_vendor)
################################
|
external/libcxx: Replace errno with set/get_errno
errno can be rvalue, and it makes build error. | @@ -91,13 +91,13 @@ string do_strerror_r(int ev) {
// POSIX version
string do_strerror_r(int ev) {
char buffer[strerror_buff_size];
- const int old_errno = errno;
+ const int old_errno = get_errno();
int ret;
if ((ret = ::strerror_r(ev, buffer, strerror_buff_size)) != 0) {
- // If `ret == -1` then the error is specifie... |
rollback: Remove unused rollback_lock function
Use of the rollback_lock function was removed in
BRANCH=none
TEST=make buildall -j | @@ -196,32 +196,6 @@ failed:
}
#endif
-int rollback_lock(void)
-{
- int ret;
-
- /* Already locked */
- if (flash_get_protect() & EC_FLASH_PROTECT_ROLLBACK_NOW)
- return EC_SUCCESS;
-
- CPRINTS("Protecting rollback");
-
- /* This may do nothing if WP is not enabled, or RO is not protected. */
- ret = flash_set_protect(... |
mmapstorage: add opmphm size to allocated size | @@ -605,10 +605,11 @@ static void calculateMmapDataSize (MmapHeader * mmapHeader, MmapMetaData * mmapM
}
mmapMetaData->numKeys += returned->size + dynArray->size + 1; // +1 for magic Key
+ size_t opmphmSize = 0;
#ifdef ELEKTRA_ENABLE_OPTIMIZATIONS
// the OPMPHM structs are included regardless of existece in KeySet
// s... |
mimxrt/boards: Set __heap_size__ to 0 in MIMXRT1011.ld.
Do not use the traditional C heap in order to save memory, because the
traditional C heap is unused in MicroPython. | @@ -3,6 +3,9 @@ __stack_size__ = 0x6000;
_estack = __StackTop;
_sstack = __StackLimit;
+/* Do not use the traditional C heap. */
+__heap_size__ = 0;
+
/* Use second OCRAM bank for GC heap. */
_gc_heap_start = ORIGIN(m_data2);
_gc_heap_end = ORIGIN(m_data2) + LENGTH(m_data2);
|
viofs-svc: fix commit (resolve symbolic links on path walkthough)
File's path was not null-terminated in the Lookup request. | @@ -637,6 +637,8 @@ static NTSTATUS PathWalkthough(HANDLE Device, CHAR *FullPath,
break;
}
+ SubstituteName[SubstituteNameLength] = L'\0';
+
Status = VirtFsLookupFileName(Device, SubstituteName, &LookupOut);
if (!NT_SUCCESS(Status))
{
|
BugID:18683049:[dm]fix alcs do not work in sub devices issue | @@ -186,6 +186,14 @@ int iotx_dm_subscribe(_IN_ int devid)
}
#ifdef ALCS_ENABLED
+ if(devid > 0) {
+ res = dm_server_add_device(product_key, device_name);
+ if (res < SUCCESS_RETURN) {
+ _dm_api_unlock();
+ return res;
+ }
+ }
+
res = dm_server_subscribe_all(product_key, device_name);
if (res < SUCCESS_RETURN) {
_dm_ap... |
Fix another typo in BREAKING.md | + Changed and renamed `RWops.FreeRW()` to `RWops.Free()` (0ee14f91)
+ Changed and renamed `RWops.RWsize()` to `RWops.Size()` (0ee14f91)
+ Changed and renamed `RWops.RWseek()` to `RWops.Seek()` (0ee14f91)
-+ Changed and renamed `RWops.RWread()` to `RWops.Read()` and `RWops.Read2` (0ee14f91)
++ Changed and renamed `RWops... |
ci: fix xfail test cases end up failed when existing known failure cases | @@ -195,16 +195,20 @@ class IdfPytestEmbedded:
)
self._failed_cases: List[
- Tuple[str, bool]
- ] = [] # (test_case_name, is_known_failure_cases)
+ Tuple[str, bool, bool]
+ ] = [] # (test_case_name, is_known_failure_cases, is_xfail)
@property
def failed_cases(self) -> List[str]:
- return [case for case, is_known in sel... |
added tusd
Issue: | @@ -208,6 +208,9 @@ ALLOW .* -> vendor/github.com/tinylib/msgp
# Generate fancy REST API from grpc api
ALLOW .* -> vendor/github.com/grpc-ecosystem/grpc-gateway
+# tus: the open protocol for resumable file uploads
+ALLOW .* -> vendor/github.com/tus/tusd
+
#
# Temporary exceptions.
#
|
coll raise wndow | @@ -1109,18 +1109,20 @@ static void coll_update(t_coll *x){
}
// methods -------------------------------------------------------------------------------------
+static void coll_wclose(t_coll *x){ // if edited, closing window asks and replace the contents
+ hammereditor_close(x->x_common->c_filehandle, 1);
+}
+
static v... |
YAML CPP: Improve name of variable | @@ -254,7 +254,7 @@ void addEmptyArrayElements (YAML::Node & sequence, unsigned long long const numb
void addKeyArray (YAML::Node & data, NameIterator & keyIterator, Key & key)
{
auto const isArrayAndIndex = isArrayIndex (keyIterator);
- auto const isArray = isArrayAndIndex.first;
+ auto const isArrayElement = isArrayA... |
Redirect to HTTPS when the user clicks on Use My Position. | @@ -764,7 +764,18 @@ _papplClientHTMLInfo(
{
papplClientHTMLPrintf(client,
"<input type=\"text\" name=\"location\" value=\"%s\" placeholder=\"Human-Readable Location\"><br>\n"
- "<input type=\"number\" name=\"geo_location_lat\" min=\"-90\" max=\"90\" step=\"0.0001\" value=\"%.4f\" onChange=\"updateMap();\"> °&... |
test: %khan full run, %fyrd | !>([~[//khan/2/0v0] %give %arow %& !>(%res)])
!>((head all-take-moves))
:(weld results-0 results-1 results-2)
-:: ++ test-khan-take-dud
-:: !!
-:: ++ test-khan-take-watch-fail
-:: !!
-:: ++ test-khan-take-poke-fail
-:: !!
-:: ++ test-khan-take-full-run-fyrd
-:: !!
+++ test-khan-take-full-run-fyrd
+ =^ born-moves khan-g... |
FIx the symlink. | @@ -20,7 +20,7 @@ build:
GIT_CLONE_PATH: $CI_BUILDS_DIR/zmk
before_script:
- - mkdir ci-workspace && ln -s ./ ci-workspace/zmk
+ - mkdir ci-workspace && ln -s $(pwd) ci-workspace/zmk
- cd ci-workspace/zmk
- west init -l .
- west update
|
put defaults in mapage on own line | @@ -101,7 +101,8 @@ This is the plain use of the DHT. The hexadecimal string will be cut down or fil
Change the UUID after start.
* `--port` *port*
- Bind the DHT to this port (Default: 6881).
+ Bind the DHT to this port.
+ Default: `6881`
* `--config` *file*
Provide a configuration file with one command line
@@ -118,1... |
Checking the return of BIO_new_fp(). If it returns NULL, then it is unnecessary to build the BIO chain and better make the caller directly return NULL | @@ -2972,6 +2972,9 @@ BIO *dup_bio_out(int format)
BIO_NOCLOSE | (FMT_istext(format) ? BIO_FP_TEXT : 0));
void *prefix = NULL;
+ if (b == NULL)
+ return NULL;
+
#ifdef OPENSSL_SYS_VMS
if (FMT_istext(format))
b = BIO_push(BIO_new(BIO_f_linebuffer()), b);
@@ -2992,7 +2995,7 @@ BIO *dup_bio_err(int format)
BIO_NOCLOSE | (... |
range: added to METADATA.ini | @@ -399,6 +399,18 @@ usedby/plugin= type
description= defines the max value type of the integer value
use range instead
+[check/range]
+status= implemented
+usedby/plugin= range
+description= min-max value of a key, also supports multiple ranges separated by a comma.
+example= 1-10 or -1-4,6-10
+
+[check/range/type]
+s... |
Sailfish: remove gem dependency for restore build | @@ -336,11 +336,13 @@ def exec_ssh_with_sudo_command(session, cmd)
channel.wait
end
-require 'net/ssh'
-require 'net/scp'
namespace "run" do
task :sailfish => ["config:sailfish"] do
+
+ require 'net/ssh'
+ require 'net/scp'
+
session_ssh = nil
puts $ssh_key
puts "Connecting to device"
@@ -388,6 +390,9 @@ namespace "dev... |
options/ansi: replace asserts with error returns | @@ -941,8 +941,8 @@ int fgetc_unlocked(FILE *stream) {
size_t fread_unlocked(void *buffer, size_t size, size_t count, FILE *file_base) {
auto file = static_cast<mlibc::abstract_file *>(file_base);
- __ensure(size);
- __ensure(count);
+ if(!size || !count)
+ return 0;
// Distinguish two cases here: If the object size is... |
Use correct length | @@ -141,10 +141,10 @@ json_value* stringifyJson(Value value) {
if (IS_STRING(entry->key)) {
ObjString *s = AS_STRING(entry->key);
key = s->chars;
- keySize = s->length + 5;
+ keySize = s->length;
} else {
key = valueToString(entry->key);
- keySize = strlen(key) + 5;
+ keySize = strlen(key);
}
json_object_push_nocopy(
|
naive: rut-test description, slight refactor | ::(cury filter-dominion %l2)
%- cury
:- filter-tx-type
- :* :: %spawn
+ :* %spawn
%transfer-point
- ::%configure-keys
- :: %set-management-proxy
- :: %set-spawn-proxy
- :: %set-transfer-proxy
+ %configure-keys
+ %set-management-proxy
+ ::%set-spawn-proxy :: planets can set spawn proxy atm
+ %set-transfer-proxy
~
==
==
... |
Fix the bug that tablelen and table pointer become out of sync | @@ -226,12 +226,10 @@ int ngtcp2_map_insert(ngtcp2_map *map, ngtcp2_map_key_type key, void *data) {
return rv;
}
} else {
- map->tablelen = 1 << NGTCP2_INITIAL_TABLE_LENBITS;
- map->tablelenbits = NGTCP2_INITIAL_TABLE_LENBITS;
- map->table =
- ngtcp2_mem_calloc(map->mem, map->tablelen, sizeof(ngtcp2_map_bucket));
- if ... |
grunt: Making control of SCI and SMI interrupt pins more clear
BRANCH=none
TEST=none | @@ -61,8 +61,11 @@ GPIO(I2C5_SDA, PIN(3, 6), GPIO_INPUT) /* EC_I2C_EEPROM_SDA and
GPIO(I2C7_SCL, PIN(B, 3), GPIO_INPUT | GPIO_SEL_1P8V) /* EC_I2C_SENSOR_SCL */
GPIO(I2C7_SDA, PIN(B, 2), GPIO_INPUT | GPIO_SEL_1P8V) /* EC_I2C_SENSOR_SDA */
-GPIO(PCH_SCI_ODL, PIN(7, 6), GPIO_ODR_HIGH)
-GPIO(PCH_SMI_ODL, PIN(C, 6), GPIO_OD... |
hdata/i2c: add __packed to the host_i2c_hdr structure
This adds __packed to the host_i2c_hdr structure since it defines an
offset that refers to the beginning of the structure.
Fixes: | @@ -152,7 +152,7 @@ static bool is_zeros(const void *p, size_t size)
struct host_i2c_hdr {
const struct HDIF_array_hdr hdr;
__be32 version;
-};
+} __packed;
int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index,
struct dt_node *xscom)
|
remove the addings on the README to keep mainline README clean, those findings to move to other places. | @@ -26,16 +26,6 @@ source .travis/s2n_setup_env.sh
.travis/s2n_travis_build.sh
```
-* For OSX 10 Mojave users, if you are facing ```Undefined symbols for architecture x86_64:``` error in building. Starting with Mojave, the headers are no longer installed under ```/usr/include``` by default -- look under ```Command Line... |
media: modify recorder app for invalid call
called the stop function incorrectly
when the onPlaybackFinished callback function was called. | @@ -90,10 +90,6 @@ public:
std::cout << "onPlaybackFinished" << std::endl;
isPlaying = false;
- if (mp.stop() == PLAYER_ERROR) {
- std::cout << "Mediaplayer::stop failed" << std::endl;
- }
-
if (mp.unprepare() == PLAYER_ERROR) {
std::cout << "Mediaplayer::unprepare failed" << std::endl;
}
|
added note on implementation choice of Delta in hmf/halo bias | @@ -384,7 +384,14 @@ where
The routines described in this subsection are implemented in {\tt ccl\_massfunc.c}.
-The halo mass function is incorporated using several definitions from the literature: \citet{Tinker2008}, \citet{Tinker2010}, \citet{Angulo2012}, and \citet{Watson2013}. All four models are tuned to simulatio... |
extmod/modiodevices/I2CDevice: defaults
Read 1 byte by default
and write None by default | @@ -270,7 +270,7 @@ STATIC mp_obj_t iodevices_I2CDevice_read(size_t n_args, const mp_obj_t *pos_args
PB_PARSE_ARGS_METHOD(n_args, pos_args, kw_args,
iodevices_I2CDevice_obj_t, self,
PB_ARG_REQUIRED(reg),
- PB_ARG_REQUIRED(length)
+ PB_ARG_DEFAULT_INT(length, 1)
);
// Get requested data length
@@ -318,7 +318,7 @@ STATIC... |
Update Protocol.md
fix typo | @@ -114,7 +114,7 @@ Each block is a transaction. Transaction may have several inputs, outputs, publi
- each input or output of block A is a valid block;
- sum of all input amounts of block B is less than power(2,64);
- sum of all output amounts of block B plus its fee is less than power(2,64);
-- if there is at least o... |
added zeroed ESSID detection | @@ -159,6 +159,7 @@ long int mp82c = 0;
long int mp83c = 0;
long int mp84c = 0;
long int mp85c = 0;
+long int noessidcount = 0;
uint8_t noncecorr = false;
@@ -354,6 +355,9 @@ while(c < hcxrecords)
mp85c++;
}
+ if((zeigerhcx->essid_len == 0) && (zeigerhcx->essid[0] == 0))
+ noessidcount++;
+
totalrecords++;
c++;
}
@@ -3... |
jna: uninstall two symlinks | @@ -36,6 +36,9 @@ endif (PYTHONINTERP_FOUND)
# = Files =
# =========
+string (APPEND files "${CMAKE_INSTALL_PREFIX}/share/java/libelektra4j.jar")
+string (APPEND files "${CMAKE_INSTALL_PREFIX}/share/java/libelektra4j.pom.xml")
+
string (REGEX REPLACE "\n" ";" files "${files}")
foreach (file ${files})
message (STATUS "U... |
adapt no_pacing to the API changes | @@ -119,17 +119,14 @@ static void cnx_set_next_wake_time_init(picoquic_cnx_t* cnx, uint64_t current_ti
if (p != NULL) {
picoquic_packet_type_enum ptype = (picoquic_packet_type_enum) get_pkt(p, PKT_AK_TYPE);
- int pis_evaluated = (int) get_pkt(p, PKT_AK_IS_EVALUATED);
int pcontains_crypto = (int) get_pkt(p, PKT_AK_CONTA... |
OpenCanopy: Ignore ESC and space during animations
references acidanthera/bugtracker#853 | @@ -304,7 +304,14 @@ InternalBootPickerKeyEvent (
ASSERT (Picker->SelectedEntry != NULL);
GuiContext = (BOOT_PICKER_GUI_CONTEXT *)Context;
GuiContext->BootEntry = Picker->SelectedEntry->Context;
- } else if (Key->UnicodeChar == L' ') {
+ } else if (mBootPickerOpacity != 0xFF) {
+ //
+ // FIXME: Other keys are not allow... |
[numerics] reduce verbose | @@ -262,7 +262,7 @@ int fc3d_onecontact_nonsmooth_Newton_solvers_solve(FrictionContactProblem* local
local_reaction[0] = 0.0;
local_reaction[1] = 0.0;
local_reaction[2] = 0.0;
- numerics_printf("fc3d_onecontact_nonsmooth_Newton_solvers_solve, take off, trivial solution reaction = 0, velocity = q.\n");
+ numerics_printf... |
cmdline: check for -n value | @@ -222,6 +222,10 @@ static bool cmdlineVerify(honggfuzz_t* hfuzz) {
hfuzz->threads.threadsMax, _HF_THREAD_MAX);
return false;
}
+ if (hfuzz->threads.threadsMax == 0) {
+ LOG_E("Too few fuzzing threads specified: %zu)", hfuzz->threads.threadsMax);
+ return false;
+ }
if (strchr(hfuzz->io.fileExtn, '/')) {
LOG_E("The fi... |
TC: Expand tc for libc/string module API's
1) Adds tc for memmove(), where memory areas may overlap.
2) Adds tc for strstr() and strcasestr().
- substring is not found in substring.
- for empty input main string. | @@ -158,6 +158,11 @@ static void tc_libc_string_memmove(void)
TC_ASSERT_EQ("memmove", strncmp(res_ptr, buffer2, BUFF_SIZE), 0);
TC_ASSERT_EQ("memmove", strncmp(buffer1, buffer2, BUFF_SIZE), 0);
+ res_ptr = (char *)memmove(buffer2, buffer1, sizeof(buffer1));
+ TC_ASSERT_NOT_NULL("memmove", res_ptr);
+ TC_ASSERT_EQ("memm... |
Keep ABI compatibility by keeping deprecated functions visible | @@ -79,7 +79,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else
#if __GNUC__ >= 4
#define YR_API EXTERNC __attribute__((visibility ("default")))
- #define YR_DEPRECATED_API EXTERNC __attribute__((deprecated))
+ #define YR_DEPRECATED_API YR_API __attribute__((deprecated))
#else
#define YR_API EXTERN... |
Update CONTRIBUTING.md
Add guideline on size of contributions. | @@ -46,6 +46,7 @@ To send us a pull request, please:
1. Send us a pull request, answering any default questions in the pull request interface.
NOTE: Please make sure the default option (Allow edits from maintainers) is left checked.
1. Pay attention to any automated CI failures reported in the pull request, and stay in... |
parser: Remove impossible check. | @@ -4396,11 +4396,6 @@ static void ensure_valid_class(lily_parse_state *parser, const char *name)
lily_raise_syn(parser->raiser,
"'%s' is not a valid class name (too short).", name);
- lily_block *block = parser->emit->block;
-
- if (block->block_type != block_file)
- lily_raise_syn(parser->raiser, "Cannot declare a cl... |
VStudio: Implement symbolspath for static libs | --
m.elements.clCompile = function(cfg)
- return {
+ local calls = {
m.precompiledHeader,
m.warningLevel,
m.treatWarningAsError,
m.callingConvention,
m.languageStandard,
}
+
+ if cfg.kind == p.STATICLIB then
+ table.insert(calls, m.programDatabaseFile)
+ end
+
+ return calls
end
function m.clCompile(cfg)
end
end
-
func... |
libstb/secvar: Ensure secvar_set_status() is called once
Remove the check to see if the "status" property already exists. This
function is intended to only be called once so failing an assert is
fine since it indicates a programming error. | @@ -47,11 +47,8 @@ void secvar_set_status(const char *status)
if (!secvar_node)
return; // Fail boot?
- if (dt_find_property(secvar_node, "status"))
- return;
-
+ /* This function should only be called once */
dt_add_property_string(secvar_node, "status", status);
- // Fail boot if not successful?
}
|
Prevent ZHASwitch creation for Philips hue motion sensor | @@ -2315,6 +2315,14 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
sensorNode.fingerPrint().inClusters.push_back(VENDOR_CLUSTER_ID);
}
}
+ else if (modelId == QLatin1String("SML001"))
+ {
+ if (type == QLatin1String("ZHASwitch"))
+ {
+ // not supported yet
+ return;
+ }
+ }
}
else i... |
Guybrush: Add battery sleep information
Two of the guybrush batteries support a sleep mode, so add that register
information into the battery structures.
BRANCH=None
TEST=make -j buildall | @@ -38,6 +38,11 @@ const struct board_batt_params board_battery_info[] = {
.reg_addr = 0x00,
.reg_data = { 0x0010, 0x0010 },
},
+ .sleep_mode = {
+ .sleep_supported = true,
+ .reg_addr = 0x00,
+ .reg_data = 0x0011,
+ },
.fet = {
.reg_addr = 0x0,
.reg_mask = 0x2000,
@@ -92,6 +97,11 @@ const struct board_batt_params boar... |
add check for diff popen | @@ -2243,6 +2243,10 @@ router_printdiffs(router *old, router *new, FILE *out)
/* diff and print its output */
snprintf(buf, sizeof(buf), "diff -u %s %s", patho, pathn);
f = popen(buf, "r");
+ if (f == NULL) {
+ logerr("failed to popen diff: %s\n", strerror(errno));
+ return 1;
+ }
while ((len = fread(buf, 1, sizeof(buf... |
apps/iptest: Make app more user friendly
net_test_socket could be created twice leading to memory leak
now whenever 'socket' command is executed it closes previous
socket first.
bind/listen/connect check if socket is created first and
print message if it is not. | @@ -90,6 +90,23 @@ static const union mn_socket_cb net_listen_cbs = {
.listen.newconn = net_test_newconn,
};
+static void
+net_cli_close_socket(void)
+{
+ int rc;
+
+ if (net_test_socket) {
+ rc = mn_close(net_test_socket);
+ console_printf("mn_close() = %d\n", rc);
+ net_test_socket = NULL;
+ }
+ if (net_test_socket2)... |
viofs-svc: fix Write implementation.
Fix Write with a respect to FUSE's max_write value and to handle
writing the whole requested buffer. | @@ -1013,9 +1013,10 @@ static NTSTATUS Write(FSP_FILE_SYSTEM *FileSystem,
{
VIRTFS *VirtFs = FileSystem->UserContext;
VIRTFS_FILE_CONTEXT *FileContext = FileContext0;
+ ULONG WriteSize;
+ NTSTATUS Status;
FUSE_WRITE_IN *write_in;
FUSE_WRITE_OUT write_out;
- NTSTATUS Status;
DBG("Buffer: %p Offset: %Iu Length: %u WriteT... |
publish: only delete group in unsubscribe action if the notebook is unmanaged | (de-path:resource writers.book)
=/ =group
(need (scry-group:grup rid))
- :_ state(books (~(del by books) who.act book.act))
- :~ `card`[%pass wir %agent [who.act %publish] %leave ~]
- `card`[%give %fact [/primary]~ %publish-primary-delta !>(del)]
- (group-proxy-poke who.act %remove-members rid (sy our.bol ~))
+ =/ card... |
VERSION bump to version 1.4.39 | @@ -37,7 +37,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 38)
+set(SYSREPO_MICRO_VERSION 39)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
features: GFNI needs <immintrin.h> | #endif
#if \
- defined(SIMDE_X86_AVX_NATIVE)
+ defined(SIMDE_X86_AVX_NATIVE) || defined(SIMDE_X86_GFNI_NATIVE)
#include <immintrin.h>
#elif defined(SIMDE_X86_SSE4_2_NATIVE)
#include <nmmintrin.h>
|
kdb: refactor check | @@ -34,9 +34,7 @@ int printProblems (Key const & k, std::string const & action, int off)
return (wo + eo * 2) << off;
}
-int CheckCommand::execute (Cmdline const & cl)
-{
- if (cl.arguments.size () == 0)
+int doKDBcheck (bool force)
{
Key x;
try
@@ -56,7 +54,7 @@ int CheckCommand::execute (Cmdline const & cl)
}
ret += ... |
Solve some bugs in windows respect to plugin_extension. | @@ -97,17 +97,19 @@ int plugin_extension(void *loader, void *handle, void *context)
fs::directory_entry dir(*i);
if (dir.is_regular_file())
{
- std::string config = dir.path().filename().c_str();
+ std::string config = dir.path().filename().string();
if (config == "metacall.json" ||
(config.substr(0, m_begins.size()) =... |
Forgot to put in cycles again for the commit in FollowTest to simulate delay | @@ -322,7 +322,7 @@ void ANSNA_Follow_Test()
assert(bads < 500, "too many wrong trials");
if(score >= 500)
break;
- //ANSNA_Cycles(1000);
+ ANSNA_Cycles(1000);
}
printf("<<ANSNA Follow test successful goods=%d bads=%d\n",goods,bads);
}
|
modify ifdef check | print IPXE "initrd \${base}/$arch/$bootstrapid/initfs.gz\n";
print IPXE "kernel \${base}/$arch/$bootstrapid/kernel ro initrd=initfs.gz wwhostname=$hostname ";
- print IPXE join(" ", @kargs) . " ";
-+ if (@kargs) {
++ if ($kargs[0]) {
+ print IPXE join(" ", @kargs) . " ";
+ }
if ($console) {
|
Fix for BRKey from WKKey and private key compression | @@ -101,7 +101,10 @@ wkWalletConnectorSignDataETH (
size_t *signatureLength,
WKWalletConnectorStatus *status ) {
- BRKey *brKey = wkKeyGetCore (key);
+ BRKey brKey = *wkKeyGetCore (key);
+
+ // Ensure private key uncompressed
+ BRKeySetCompressed(&brKey, 0);
// No error
*status = WK_WALLET_CONNECTOR_STATUS_OK;
@@ -110,... |
Define YR_DEPRECATED while building in Windows and Cygwin. | @@ -58,21 +58,26 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef __GNUC__
#define YR_API EXTERNC __attribute__((dllexport))
#define YR_DEPRECATED_API EXTERNC __attribute__((deprecated))
+#define YR_DEPRECATED __attribute__((deprecated))
#else
#define YR_API EXTERNC __declspec(dllexport)
#define Y... |
Fix spurious exception traceback at interpreter shutdown | @@ -289,6 +289,10 @@ class MongoCrypt(object):
"""Cleanup resources."""
if self.__crypt is None:
return
+ # Since close is called by __del__, we need to be sure to guard
+ # against the case where global variables are set to None at
+ # interpreter shutdown, see PYTHON-3530.
+ if lib is not None:
lib.mongocrypt_destroy... |
use float4toshared in computeSum2
unitNorm output test | @@ -423,45 +423,7 @@ __forceinline__ __device__ float4 BroadCast4(float val) {
return result;
}
-template <int BlockSize, class TLoader>
-__forceinline__ __device__ float4 ComputeSum2(
- TLoader& inputProvider,
- float* tmp,
- int dim) {
-
- float4 sum2;
- sum2.x = sum2.y = sum2.z = sum2.w = 0;
-
- for (int i = threadI... |
hood: no longer work around bad clay %u behavior
Previously it would crash for non-existent desk. No longer does, so we
don't need to avoid this. | ++ read-bill
|= [our=ship =desk now=@da]
=/ pax (en-beam [our desk da+now] /desk/bill)
- ?. (~(has in .^((set ^desk) cd/~[(scot %p our) ~ (scot %da now)])) desk)
- *(list dude)
?. .^(? cu/pax)
*(list dude)
.^((list dude) cx/pax)
|
don't watch the cart if only a section has been loaded | @@ -709,10 +709,11 @@ static void onLoadDemoCommandConfirmed(Console* console, ScriptLang script)
free(data);
}
-static void onCartLoaded(Console* console, const char* name)
+static void onCartLoaded(Console* console, const char* name, const char* section)
{
tic_api_reset(console->tic);
+ if(!section)
setCartName(conso... |
Added better error handling in viz | @@ -229,6 +229,10 @@ function redrawCanvas(when) {
}
}
function solve_vive_pose(vpose) {
+ if(vpose.plus_x === undefined) {
+ return [ 0, 0, 0, 1, 0, 0, 0 ];
+ }
+
var plus_x = new THREE.Vector3().fromArray(vpose.plus_x);
var plus_z = new THREE.Vector3().fromArray(vpose.plus_z);
var plus_y = new THREE.Vector3().crossVe... |
getAcceptHeaderApiVersion() don't construct temporary QStringList
Small optimization, no need to construct anything on the heap here. | @@ -522,7 +522,7 @@ int TaskItem::_taskCounter = 1; // static rolling taskcounter
Accept: vnd.ddel.v2 --> ApiVersion_2_DDEL
Accept: vnd.ddel.v1,vnd.ddel.v2 --> ApiVersion_2_DDEL
*/
-static ApiVersion getAcceptHeaderApiVersion(const QString &hdrValue)
+static ApiVersion getAcceptHeaderApiVersion(const QLatin1String &hdr... |
Unused parameter warning fix. | @@ -270,6 +270,8 @@ static int lua_error_handler(lua_State* L)
lua_insert(L, -2); // insert traceback function before error message
lua_pushinteger(L, 3); // push level
lua_call(L, 2, 1); // call traceback
+#else
+ (void) L;
#endif
return 1;
|
added function for update the status | @@ -33,6 +33,20 @@ close_opcode_print(enum discord_gateway_close_opcodes opcode)
return "Unknown WebSockets close opcode";
}
+void
+discord_gateway_send_presence_update(struct discord_gateway *gw)
+{
+ char buf[1024];
+ size_t len;
+ struct ws_info info = { 0 };
+ len = json_inject(buf, sizeof(buf),
+ "(op):3" /* PRESE... |
Zero-fill IV by default.
Fixes uninitialized memory read reported by Nick Mathewson | @@ -488,6 +488,7 @@ int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
char *dekinfostart, c;
cipher->cipher = NULL;
+ memset(cipher->iv, 0, sizeof(cipher->iv));
if ((header == NULL) || (*header == '\0') || (*header == '\n'))
return 1;
|
clock: add dbug | -/+ *server, default-agent, verb
+/+ *server, default-agent, verb, dbug
/= tile-js
/^ octs
/; as-octs:mimes:html
+$ state-zero [%0 data=json]
--
%+ verb |
+%- agent:dbug
=| state-zero
=* state -
^- agent:gall
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.