File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 40
40
#include < unistd.h>
41
41
#endif
42
42
43
- const int max_levels = 4 ;
43
+ constexpr int max_levels = 4 ;
44
44
typedef msgnod* msgnod_ptr_array[max_levels];
45
45
46
46
static char * copy_terminate (char * dest, const char * src, size_t bufsize);
@@ -342,7 +342,7 @@ static USHORT do_msgs(const TEXT* filename)
342
342
343
343
if (leaf_node->msgrec_code <= prior_code && prior_code != 0 )
344
344
{
345
- fprintf (stderr, " Out of order messages (src/include/firebird/impl/msg/*.h): %d x %d \n " ,
345
+ fprintf (stderr, " Out of order messages (src/include/firebird/impl/msg/*.h): %" ULONGFORMAT " x %" ULONGFORMAT " \n " ,
346
346
leaf_node->msgrec_code , prior_code);
347
347
exit (FINI_ERROR);
348
348
}
@@ -465,7 +465,7 @@ static SLONG write_bucket(const msgnod* bucket, USHORT length)
465
465
exit (FINI_ERROR);
466
466
}
467
467
468
- const SLONG zero_bytes = 0 ;
468
+ constexpr SLONG zero_bytes = 0 ;
469
469
n = write (global_file, &zero_bytes, padded_length - length);
470
470
if (n == -1 )
471
471
{
You can’t perform that action at this time.
0 commit comments