Skip to content

Commit

Permalink
[#433] Fix ISO C++ violations.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn authored and alanking committed Mar 19, 2024
1 parent 1e0d662 commit daa1157
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/iput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ usage( FILE* _fout ) {
return;
}

char *msgs[] = {
const char *msgs[] = {
"Usage: iput [-abfIkKPQrtTUvV] [-D dataType] [-N numThreads] [-n replNum]",
" [-p physicalPath] [-R resource] [-X restartFile] [--ignore-symlinks]",
" [--lfrestart lfRestartFile] [--retries count] [--wlock]",
Expand Down Expand Up @@ -238,5 +238,6 @@ usage( FILE* _fout ) {
}
fprintf( _fout, "%s\n", msgs[i] );
}
printReleaseInfo( "iput" );
char name[] = "iput";
printReleaseInfo(name);
}
7 changes: 4 additions & 3 deletions src/irsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ main( int argc, char **argv ) {

void
usage() {
char *msgs[] = {
"Usage: irsync [-rahKsvV] [-N numThreads] [-R resource] [--link] [--age age_in_minutes]",
const char *msgs[] = {
"Usage: irsync [-rahKsvV] [-N numThreads] [-R resource] [--ignore-symlinks] [--age age_in_minutes]",
" sourceFile|sourceDirectory [....] targetFile|targetDirectory",
" ",
"Synchronize the data between a local copy (local file system) and",
Expand Down Expand Up @@ -232,5 +232,6 @@ usage() {
}
printf( "%s\n", msgs[i] );
}
printReleaseInfo( "irsync" );
char name[] = "irsync";
printReleaseInfo(name);
}

0 comments on commit daa1157

Please sign in to comment.