1. 04 8月, 2012 1 次提交
  2. 27 4月, 2012 1 次提交
  3. 02 2月, 2012 1 次提交
  4. 22 12月, 2011 1 次提交
  5. 12 11月, 2011 1 次提交
  6. 21 8月, 2011 1 次提交
  7. 13 7月, 2011 1 次提交
  8. 16 6月, 2011 1 次提交
    • A
      Introduce format string for pid_t · 953ffe0f
      Andreas Färber 提交于
      BeOS and Haiku on i386 use long for 32-bit types, including pid_t.
      Using %d with pid_t therefore results in a warning.
      
      Unfortunately POSIX:2008 does not define a PRId* string for pid_t.
      
      In some places pid_t was previously casted to long and %ld hardcoded.
      The predecessor of this patch added another upcast for the simpletrace
      filename but was not applied to date.
      
      Since new uses of pid_t with %d keep creeping in, let's instead define
      an OS-dependent format string and use that consistently.
      
      Cc: Stefan Hajnoczi <stefanha@gmail.com>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Ingo Weinhold <ingo_weinhold@gmx.de>
      Cc: Gleb Natapov <gleb@redhat.com>
      Signed-off-by: NAndreas Färber <andreas.faerber@web.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      953ffe0f
  9. 29 3月, 2011 1 次提交
  10. 26 3月, 2011 1 次提交
  11. 17 3月, 2011 1 次提交
  12. 30 10月, 2010 2 次提交
  13. 21 8月, 2010 1 次提交
    • B
      Use ARRAY_SIZE macro · 66fe09ee
      Blue Swirl 提交于
      Replace array size calculations with ARRAY_SIZE macro.
      
      Implemented with this Coccinelle semantic patch, adapted from
      Linux kernel:
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(*E))
      + ARRAY_SIZE(E)
      
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(E[...]))
      + ARRAY_SIZE(E)
      
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(T))
      + ARRAY_SIZE(E)
      
      Some files (*-dis.c, tests/*) had to be filtered out.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      66fe09ee
  14. 06 7月, 2010 1 次提交
  15. 12 6月, 2010 12 次提交
  16. 03 12月, 2009 4 次提交
  17. 04 3月, 2009 1 次提交
  18. 08 4月, 2008 1 次提交
  19. 01 2月, 2008 1 次提交
  20. 07 10月, 2007 1 次提交
  21. 17 9月, 2007 1 次提交
  22. 08 4月, 2007 1 次提交
  23. 02 2月, 2007 1 次提交
  24. 31 10月, 2005 1 次提交
  25. 08 11月, 2004 1 次提交