Skip to contentSkip to conversation

signedness issues in testsuite

PATCH Applied Jan Kiszka 2 participants 2 messages Oct 21, 2005

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 signedness issues in testsuite

Fixes gcc-4 warnings.

Jan

latency/latency.c +3 -3
Index: testsuite/latency/latency.c
===================================================================
@@ -40,9 +40,9 @@
 #define WARMUP_TIME 1
 #define HISTOGRAM_CELLS 100
 int histogram_size = HISTOGRAM_CELLS;
-unsigned long *histogram_avg = NULL,
-    *histogram_max = NULL,
-    *histogram_min = NULL;
+long *histogram_avg = NULL,
+     *histogram_max = NULL,
+     *histogram_min = NULL;
 
 int do_histogram = 0, do_stats = 0, finished = 0;
 int bucketsize = 1000;  /* default = 1000ns, -B <size> to override */
klatency/latency.c +3 -3
Index: testsuite/klatency/latency.c
===================================================================
@@ -12,9 +12,9 @@
 
 #define HISTOGRAM_CELLS 200
 int histogram_size = HISTOGRAM_CELLS;
-unsigned long *histogram_avg = NULL,
-              *histogram_max = NULL,
-              *histogram_min = NULL;
+long *histogram_avg = NULL,
+     *histogram_max = NULL,
+     *histogram_min = NULL;
 
 int do_histogram = 0, do_stats = 0, finished = 0;
 int bucketsize = 1000;		/* bucketsize */
#1 lore raw
Quoted 2 lines · Jan Kiszka

Fixes gcc-4 warnings.

Applied, thanks.

Quoted 48 lines

Jan

------------------------------------------------------------------------

Index: testsuite/latency/latency.c
===================================================================

latency/latency.c +3 -3
@@ -40,9 +40,9 @@
 #define WARMUP_TIME 1
 #define HISTOGRAM_CELLS 100
 int histogram_size = HISTOGRAM_CELLS;
-unsigned long *histogram_avg = NULL,
-    *histogram_max = NULL,
-    *histogram_min = NULL;
+long *histogram_avg = NULL,
+     *histogram_max = NULL,
+     *histogram_min = NULL;
 
 int do_histogram = 0, do_stats = 0, finished = 0;
 int bucketsize = 1000;  /* default = 1000ns, -B <size> to override */

Index: testsuite/klatency/latency.c
===================================================================

klatency/latency.c +3 -4
@@ -12,9 +12,9 @@
 
 #define HISTOGRAM_CELLS 200
 int histogram_size = HISTOGRAM_CELLS;
-unsigned long *histogram_avg = NULL,
-              *histogram_max = NULL,
-              *histogram_min = NULL;
+long *histogram_avg = NULL,
+     *histogram_max = NULL,
+     *histogram_min = NULL;
 
 int do_histogram = 0, do_stats = 0, finished = 0;
 int bucketsize = 1000;		/* bucketsize */
 
 
------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.