All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [patch] signedness issues in testsuite
@ 2005-10-21  8:27 Jan Kiszka
  2005-10-21 17:43 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2005-10-21  8:27 UTC (permalink / raw)
  To: xenomai-core


[-- Attachment #1.1: Type: text/plain, Size: 28 bytes --]

Fixes gcc-4 warnings.

Jan


[-- Attachment #1.2: signedness.patch --]
[-- Type: text/plain, Size: 1193 bytes --]

Index: testsuite/latency/latency.c
===================================================================
--- testsuite/latency/latency.c	(revision 54)
+++ testsuite/latency/latency.c	(working copy)
@@ -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
===================================================================
--- testsuite/klatency/latency.c	(revision 54)
+++ testsuite/klatency/latency.c	(working copy)
@@ -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 */

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-21 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-21  8:27 [Xenomai-core] [patch] signedness issues in testsuite Jan Kiszka
2005-10-21 17:43 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.