Minor fixes for compilation informationals/complaints on VMS

Bug #1417545 reported by Peter (Stig) Edwards on 2015-02-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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 )


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

Other bug subscribers