From a284d25a0be8309d8020a18a0d3805ee8eb682ee Mon Sep 17 00:00:00 2001 From: Laurent MAZET Date: Tue, 21 Oct 2025 15:10:04 +0200 Subject: [PATCH] spelling --- clock.c | 2 +- getname.sh | 2 +- mtime.h | 2 +- test.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clock.c b/clock.c index 5da792c..992bf11 100644 --- a/clock.c +++ b/clock.c @@ -15,7 +15,7 @@ dts_t *deltas = NULL; int nb_measurements = 0; -char *message = "Clock accurency"; +char *message = "Clock accuracy"; void (*usage_ext) (FILE *) = NULL; int (*parse_arg_ext) (char *) = NULL; diff --git a/getname.sh b/getname.sh index 70dda61..963e985 100755 --- a/getname.sh +++ b/getname.sh @@ -15,7 +15,7 @@ case "$1" in ;; *) case "$*" in - "Clock accurency") test=clock;; + "Clock accuracy") test=clock;; "Cycle latency") test=cycle;; "Message queue latency") test=mq_lat;; "Mutex latency") test=mutex;; diff --git a/mtime.h b/mtime.h index 974441a..369d046 100644 --- a/mtime.h +++ b/mtime.h @@ -7,7 +7,7 @@ typedef struct timespec ts_t; -typedef unsigned int dts_t; +typedef long int dts_t; #define sys_timestamp(ts) clock_gettime (CLOCK_REALTIME, (ts)) diff --git a/test.c b/test.c index e6250ed..2ca47b5 100644 --- a/test.c +++ b/test.c @@ -248,7 +248,7 @@ int main (int argc, char *argv[]) FILE *fd = fopen (output, "w"); assert (fd); for (int i = 0; i < nb; i++) { - fprintf (fd, "%d\n", buffer[i]); + fprintf (fd, "%ld\n", buffer[i]); } fclose (fd); } -- 2.30.2