summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Small <csmall@debian.org>2017-02-08 15:20:30 -0500
committerSebastian Andrzej Siewior <sebastian@breakpoint.cc>2017-02-08 15:20:30 -0500
commit63d1f3c6e0d1a68569f1372123fd64e9be81672d (patch)
treec0280917db98f482e438ad235eb3cecb5a7c2fe2
parentfbf6c79ba0dc4f220f41f0add23cc4951e782491 (diff)
string_literals
Gbp-Pq: Name string_literals
-rw-r--r--src/common/checkpc.c6
-rw-r--r--src/common/sendjob.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/checkpc.c b/src/common/checkpc.c
index 8b0b2ad..f4cfdd0 100644
--- a/src/common/checkpc.c
+++ b/src/common/checkpc.c
@@ -114,7 +114,7 @@ int main( int argc, char *argv[], char *envp[] )
}
if( Verbose ){
- if(Verbose)MESSAGE( Version );
+ MESSAGE("%s", Version );
}
Initialize(argc, argv, envp, 'D' );
@@ -1436,7 +1436,7 @@ void Test_port(int ruid, int euid, char *serial_line )
if( (tf = popen( "ps | grep XXYYZZ | grep -v grep", "r" )) ){
Max_open( fileno(tf) );
while( fgets( line, sizeof(line), tf ) ){
- FPRINTF( STDOUT, line );
+ FPRINTF( STDOUT, "%s", line );
++i;
}
fclose(tf);
@@ -1445,7 +1445,7 @@ void Test_port(int ruid, int euid, char *serial_line )
if( i == 0 && (tf = popen( "ps | grep XXYYZZ | grep -v grep", "r" )) ){
Max_open( fileno(tf) );
while( fgets( line, sizeof(line), tf ) ){
- FPRINTF( STDOUT, line );
+ FPRINTF( STDOUT, "%s", line );
++i;
}
fclose(tf);
diff --git a/src/common/sendjob.c b/src/common/sendjob.c
index f890ad7..4bde3a3 100644
--- a/src/common/sendjob.c
+++ b/src/common/sendjob.c
@@ -172,7 +172,7 @@ int Send_job( struct job *job, struct job *logjob,
}
goto retry_connect;
}
- setstatus(logjob, error );
+ setstatus(logjob, "%s", error );
goto error;
}
save_host = safestrdup(RemoteHost_DYN,__FILE__,__LINE__);