]> git.mar77i.info Git - perftrace/commitdiff
more inline functions
authormar77i <mar77i@protonmail.ch>
Sun, 22 Feb 2026 20:43:22 +0000 (21:43 +0100)
committermar77i <mar77i@protonmail.ch>
Sun, 22 Feb 2026 20:43:22 +0000 (21:43 +0100)
perftrace.c

index 14ac9288b283359a4d484f31998091fabe55e126..e40a1f77e75696acd21385cf4166d0be85383931 100644 (file)
@@ -140,7 +140,7 @@ int parse_args(int argc, char **argv, struct args *a, long clock_ticks) {
     return 0;
 }
 
-int run_proc(struct args *a) {
+static inline int run_proc(struct args *a) {
     pid_t pid = fork();
     switch (pid) {
     case -1:
@@ -157,7 +157,9 @@ int run_proc(struct args *a) {
     }
 }
 
-struct timespec timespec_diff(struct timespec tsa, struct  timespec tsb) {
+static inline struct timespec timespec_diff(
+    struct timespec tsa, struct  timespec tsb
+) {
     struct timespec result = {
         .tv_sec = tsa.tv_sec - tsb.tv_sec,
         .tv_nsec = tsa.tv_nsec,