[ovs-git] [openvswitch/ovs] 8c0294: perf-counter: use 'int' instead of size_t

GitHub noreply at github.com
Wed Apr 15 00:29:05 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8c0294bdfecfdf91b227f1eb2b48c1cabf287235
      https://github.com/openvswitch/ovs/commit/8c0294bdfecfdf91b227f1eb2b48c1cabf287235
  Author: Andy Zhou <azhou at nicira.com>
  Date:   2015-04-14 (Tue, 14 Apr 2015)

  Changed paths:
    M lib/perf-counter.c

  Log Message:
  -----------
  perf-counter: use 'int' instead of size_t

'size_t' does not allow for catching the case where 'read' returns
an error code, which is a negative number.

Reported-by: Ben Pfaff <blp at nicira.com>
Signed-off-by: Andy Zhou <azhou at nicira.com>




More information about the git mailing list