Skip to content

Commit

Permalink
CI: Check for whitespace errors
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Aug 11, 2024
1 parent de5bdc2 commit 948d551
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
<!--- Describe your changes -->

### How Has This Been Tested?
<!--- Please describe how you tested your changes. -->

<!--- Please describe how you tested your changes -->
11 changes: 11 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: general

on: [push, pull_request]

jobs:
whitespace-errors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check
run: git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904
1 change: 0 additions & 1 deletion debian/watch
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version=4
https://lkrg.org/download/lkrg-(.+).tar.gz
opts=pgpsigurlmangle=s/$/.sign/ https://lkrg.org/download/lkrg-(.+).tar.gz

2 changes: 1 addition & 1 deletion scripts/copy-builtin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ lkrg-objs += modules/print_log/p_lkrg_debug_log.o
endif
$(sed -n '/^$(TARGET)-objs += .* \\/,/[^\]$/ {s|src/||; s|$(TARGET)|lkrg|; p}' "$BASEDIR/../Makefile")
EOC
)

Expand Down
2 changes: 1 addition & 1 deletion src/modules/exploit_detection/p_exploit_detection.h
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ static inline int p_ed_kill_task_by_task(struct task_struct *p_task) {
case 0:
do {
struct p_ed_process *p_tmp;

if ( (p_tmp = p_find_ed_by_pid(task_pid_nr(current))) != NULL) {
p_update_ed_process(p_tmp, p_task, 1);
p_print_log(P_LOG_ALERT, "ALLOW: Task: Accepting unexpected changes for pid %u, name %s",
Expand Down

0 comments on commit 948d551

Please sign in to comment.