summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Cartwright <joshc@ni.com>2015-08-31 11:35:28 -0500
committerJohn Kacur <jkacur@redhat.com>2015-09-02 15:02:23 +0200
commite4de2b6db9a0b7bdcbdcce235d673a859f30e18e (patch)
tree15f9015c157eb7e26415e451de19ce294b80b960
parent44cd556737f78ebfe16c442f5226e3606dcbbd98 (diff)
downloadrt-tests-e4de2b6db9a0b7bdcbdcce235d673a859f30e18e.tar.gz
cyclictest: consistently make all functions 'static'
Most functions in cyclictest were already 'static', with a few exceptions. Fixup those exceptions, in the interest of consistency, optimization, etc. Signed-off-by: Josh Cartwright <joshc@ni.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/cyclictest/cyclictest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index 587e815..213c527 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -392,7 +392,7 @@ static inline int64_t calcdiff_ns(struct timespec t1, struct timespec t2)
return diff;
}
-void traceopt(char *option)
+static void traceopt(char *option)
{
char *ptr;
if (traceopt_count + 1 > traceopt_size) {
@@ -442,7 +442,7 @@ static void tracemark(char *fmt, ...)
-void tracing(int on)
+static void tracing(int on)
{
if (on) {
switch (kernelversion) {
@@ -638,7 +638,7 @@ static void setup_tracer(void)
*
* the return value is a value in seconds
*/
-int parse_time_string(char *val)
+static int parse_time_string(char *val)
{
char *end;
int t = strtol(val, &end, 10);
@@ -749,7 +749,7 @@ try_again:
* - CLOCK_REALTIME
*
*/
-void *timerthread(void *param)
+static void *timerthread(void *param)
{
struct thread_param *par = param;
struct sched_param schedp;
@@ -1766,7 +1766,7 @@ static void print_stat(FILE *fp, struct thread_param *par, int index, int verbos
* thread that creates a named fifo and hands out run stats when someone
* reads from the fifo.
*/
-void *fifothread(void *param)
+static void *fifothread(void *param)
{
int ret;
int fd;