Minor fixes for compilation informationals/complaints on VMS

Bug #1417545 reported by Peter (Stig) Edwards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysbench
Fix Released
Undecided
Unassigned

Bug Description

Hello and thank you for SysBench,

  While compiling on VMS the compiler complains in 2 places about an unsigned int being being compared with a relational operator to a constant whose value is not greater than zero.

In sysbench.c in init because num_threads is unsigned,

<< if (sb_globals.num_threads <= 0)
>> if ( 0 == sb_globals.num_threads )

and in tests/fileio/sb_fileio.c in parse_arguments because num_files is unsigned.

<< if (num_files <= 0)
>> if ( 0 == num_files )

Cheers.

Revision history for this message
Alexey Kopytov (akopytov) wrote :
Changed in sysbench:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.