spelling
authorLaurent MAZET <laurent.mazet@thalesgroup.com>
Tue, 21 Oct 2025 13:10:04 +0000 (15:10 +0200)
committerLaurent MAZET <laurent.mazet@thalesgroup.com>
Tue, 21 Oct 2025 13:10:04 +0000 (15:10 +0200)
clock.c
getname.sh
mtime.h
test.c

diff --git a/clock.c b/clock.c
index 5da792ccf3d57054bdf632b9447e05d338df0772..992bf1146a6f07c76a7bf8c8c8b8154d70de60fd 100644 (file)
--- 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;
 
index 70dda614b19ec718a1627987264a297cd7b41b49..963e985ca90b698619dafea0b71860aab076886d 100755 (executable)
@@ -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 974441acec688026d9c3c959c0b5c9cb7fab21ee..369d046886c4391451a68337b5576cbc21de707a 100644 (file)
--- 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 e6250ed819aa180295f27d42f9c310ca64d353b9..2ca47b5358027eae238a2fc67f8eda1ab825554f 100644 (file)
--- 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);
     }