summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-08 16:53:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-08 16:53:32 +0000
commit8b1c1ae6f09435ca43a21411d3c5de4948b4eb95 (patch)
tree4a8192b4a5130c215b42a0d77652559229a9ec75 /testsuites/psxtests/include
parentERC32_Force_interrupt implementation replaced per Jiri Gaisler's experience (diff)
downloadrtems-8b1c1ae6f09435ca43a21411d3c5de4948b4eb95.tar.bz2
print_current_time: added leading underscore to variables allocated
inside macros.
Diffstat (limited to 'testsuites/psxtests/include')
-rw-r--r--testsuites/psxtests/include/pmacros.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/testsuites/psxtests/include/pmacros.h b/testsuites/psxtests/include/pmacros.h
index af55d68c80..1f15dac9c0 100644
--- a/testsuites/psxtests/include/pmacros.h
+++ b/testsuites/psxtests/include/pmacros.h
@@ -65,16 +65,16 @@
#define print_current_time(s1, s2) \
do { \
- char buffer[32]; \
- int status; \
- struct timespec tv; \
+ char _buffer[32]; \
+ int _status; \
+ struct timespec _tv; \
\
- status = clock_gettime( CLOCK_REALTIME, &tv ); \
- assert( !status ); \
+ _status = clock_gettime( CLOCK_REALTIME, &_tv ); \
+ assert( !_status ); \
\
- (void) ctime_r( &tv.tv_sec, buffer ); \
- buffer[ strlen( buffer ) - 1 ] = 0; \
- printf( "%s%s%s\n", s1, buffer, s2 ); \
+ (void) ctime_r( &_tv.tv_sec, _buffer ); \
+ _buffer[ strlen( _buffer ) - 1 ] = 0; \
+ printf( "%s%s%s\n", s1, _buffer, s2 ); \
fflush(stdout); \
} while ( 0 )