clang echoes some more warnings by default, fixed them
This commit is contained in:
parent
fbce27e65d
commit
6b671b9b0f
8 changed files with 17 additions and 17 deletions
|
@ -366,7 +366,7 @@ int read_mem_file( char* name, word_4* mem, int size ) {
|
|||
|
||||
if ( NULL == ( fp = fopen( name, "r" ) ) ) {
|
||||
if ( verbose )
|
||||
fprintf( stderr, "ct open %s\n" );
|
||||
fprintf( stderr, "ct open %s\n", name );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ int serial_init( void ) {
|
|||
|
||||
ir_fd = -1;
|
||||
if ( useSerial ) {
|
||||
sprintf( tty_dev_name, serialLine );
|
||||
sprintf( tty_dev_name, "%s", serialLine );
|
||||
if ( ( ir_fd = open( tty_dev_name, O_RDWR | O_NDELAY ) ) >= 0 ) {
|
||||
if ( verbose )
|
||||
printf( "IR connection on %s\n", tty_dev_name );
|
||||
|
|
|
@ -349,7 +349,7 @@ t1_t2_ticks get_t1_t2( void ) {
|
|||
diff_time = saturn.timer2;
|
||||
|
||||
adj_time = access_time - diff_time;
|
||||
delta = abs( adj_time );
|
||||
delta = labs( adj_time );
|
||||
|
||||
if ( delta > 0x3c000 ) /* Half a minute */
|
||||
{
|
||||
|
|
|
@ -510,7 +510,7 @@ char* dec_string( word_20* addr, char* string ) {
|
|||
c = read_nibbles( *addr, 2 );
|
||||
*addr += 2;
|
||||
if ( hp48_trans_tbl[ c ].trans ) {
|
||||
sprintf( p, hp48_trans_tbl[ c ].trans );
|
||||
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
|
||||
p += strlen( p );
|
||||
} else
|
||||
*p++ = c;
|
||||
|
@ -691,7 +691,7 @@ char* dec_library( word_20* addr, char* string ) {
|
|||
for ( i = 0; i < libidsize; i++ ) {
|
||||
c = read_nibbles( *addr + 2 * i + 7, 2 );
|
||||
if ( hp48_trans_tbl[ c ].trans ) {
|
||||
sprintf( p, hp48_trans_tbl[ c ].trans );
|
||||
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
|
||||
p += strlen( p );
|
||||
} else
|
||||
*p++ = c;
|
||||
|
@ -798,7 +798,7 @@ char* dec_local_ident( word_20* addr, char* string ) {
|
|||
c = read_nibbles( *addr, 2 );
|
||||
*addr += 2;
|
||||
if ( hp48_trans_tbl[ c ].trans ) {
|
||||
sprintf( p, hp48_trans_tbl[ c ].trans );
|
||||
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
|
||||
p += strlen( p );
|
||||
} else
|
||||
*p++ = c;
|
||||
|
@ -830,7 +830,7 @@ char* dec_global_ident( word_20* addr, char* string ) {
|
|||
c = read_nibbles( *addr, 2 );
|
||||
*addr += 2;
|
||||
if ( hp48_trans_tbl[ c ].trans ) {
|
||||
sprintf( p, hp48_trans_tbl[ c ].trans );
|
||||
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
|
||||
p += strlen( p );
|
||||
} else
|
||||
*p++ = c;
|
||||
|
@ -979,7 +979,7 @@ char* xlib_name( int lib, int command, char* string ) {
|
|||
c = read_nibbles( name_addr, 2 );
|
||||
name_addr += 2;
|
||||
if ( hp48_trans_tbl[ c ].trans ) {
|
||||
sprintf( p, hp48_trans_tbl[ c ].trans );
|
||||
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
|
||||
p += strlen( p );
|
||||
} else
|
||||
*p++ = c;
|
||||
|
@ -1117,7 +1117,7 @@ char* dec_char( word_20* addr, char* string ) {
|
|||
|
||||
*p++ = '\'';
|
||||
if ( hp48_trans_tbl[ c ].trans ) {
|
||||
sprintf( p, hp48_trans_tbl[ c ].trans );
|
||||
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
|
||||
p += strlen( p );
|
||||
} else
|
||||
*p++ = c;
|
||||
|
|
Loading…
Reference in a new issue