Merge pull request #137 from gwsystems/59-blacklist-thirdparty

chore: Ignore submodules when using clang-format
remotes/1732481948190733629/main
Sean McBride 4 years ago committed by GitHub
commit c0f80e6a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,5 +26,5 @@ if ((major < required_major)) || ((minor < required_minor)) || ((patch < require
fi
find ./runtime -type f -path "./*.[ch]" | # Match all *.c and *.h files in ./runtime
grep --invert-match -E "./runtime/jsmn/*|./runtime/http-parser/*" | # Excluding those in the jsmn or http-parser submodules
grep --invert-match -E "./runtime/thirdparty/*|./runtime/tests/gocr/*|./runtime/tests/TinyEKF/*|./runtime/tests/CMSIS_5_NN/*|./runtime/tests/sod/*" | # Excluding those in the jsmn or http-parser submodules
xargs clang-format -i # And format them with clang-format

@ -3,7 +3,7 @@
#include "sandbox.h"
void current_sandbox_close_file_descriptor(int io_handle_index);
struct sandbox * current_sandbox_get(void);
struct sandbox *current_sandbox_get(void);
int current_sandbox_get_file_descriptor(int io_handle_index);
int current_sandbox_initialize_io_handle(void);
void current_sandbox_set(struct sandbox *sandbox);

@ -54,7 +54,8 @@ send_fn(void *d)
return NULL;
}
if (sendto(file_descriptor, r->msg, strlen(r->msg), 0, (struct sockaddr *)&sa, sizeof(sa)) < 0 && errno != EINTR) {
if (sendto(file_descriptor, r->msg, strlen(r->msg), 0, (struct sockaddr *)&sa, sizeof(sa)) < 0
&& errno != EINTR) {
perror("sendto");
return NULL;
}

Loading…
Cancel
Save