[lxc-devel] [lxc/lxc] 84760c: Use size_t as an iteration point over int

GitHub noreply at github.com
Mon Apr 11 15:25:34 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 84760c1183c85e859a81c9674a2e0ab3e20fbe86
      https://github.com/lxc/lxc/commit/84760c1183c85e859a81c9674a2e0ab3e20fbe86
  Author: staticfox <staticfox at staticfox.net>
  Date:   2016-04-11 (Mon, 11 Apr 2016)

  Changed paths:
    M src/lxc/arguments.c
    M src/lxc/bdev/bdev.c
    M src/lxc/bdev/lxcoverlay.c
    M src/lxc/conf.c
    M src/lxc/confile.c
    M src/lxc/network.c
    M src/lxc/nl.c
    M src/lxc/parse.c
    M src/lxc/utils.c

  Log Message:
  -----------
  Use size_t as an iteration point over int

This cleans up some sign-compare warnings as well as avoids any
possibilities of unintended signed offsets for indices during
iteration.

Signed-off-by: Matt Ullman <staticfox at staticfox.net>


  Commit: e2a348395ad9743427f7fcf2d9282506a903d390
      https://github.com/lxc/lxc/commit/e2a348395ad9743427f7fcf2d9282506a903d390
  Author: Christian Brauner <christian.brauner at mailbox.org>
  Date:   2016-04-11 (Mon, 11 Apr 2016)

  Changed paths:
    M src/lxc/arguments.c
    M src/lxc/bdev/bdev.c
    M src/lxc/bdev/lxcoverlay.c
    M src/lxc/conf.c
    M src/lxc/confile.c
    M src/lxc/network.c
    M src/lxc/nl.c
    M src/lxc/parse.c
    M src/lxc/utils.c

  Log Message:
  -----------
  Merge pull request #961 from staticfox/iterations

Use size_t as an iteration point over int


Compare: https://github.com/lxc/lxc/compare/aa5470485e7b...e2a348395ad9


More information about the lxc-devel mailing list