Skip to content

Commit

Permalink
Use C23
Browse files Browse the repository at this point in the history
With this we can finally get rid of stdbool.h, bools are part of the
standard now.
  • Loading branch information
vimpostor committed Jan 7, 2024
1 parent 9d00259 commit acb0f9e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
matrix:
cxx: [g++, clang++]
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
env:
CXX: ${{ matrix.cxx }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(copycat)
set(LIB_TARGET "${PROJECT_NAME}")
set(BIN_TARGET "${PROJECT_NAME}-bin")

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)

Expand Down
1 change: 0 additions & 1 deletion src/bin/seccomp/seccomp_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <linux/openat2.h>
#include <linux/limits.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <sys/prctl.h>
#include <sys/socket.h>
Expand Down
1 change: 0 additions & 1 deletion src/lib/copycat.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <dlfcn.h>
#include <linux/limits.h>
#include <linux/openat2.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit acb0f9e

Please sign in to comment.