1. 03 Jun, 2007 1 commit
  2. 26 May, 2007 1 commit
  3. 05 Apr, 2007 1 commit
  4. 02 Feb, 2007 1 commit
  5. 14 Jan, 2007 1 commit
  6. 11 Jan, 2007 1 commit
  7. 23 Dec, 2006 1 commit
  8. 06 Oct, 2006 2 commits
  9. 28 Aug, 2006 1 commit
  10. 26 Aug, 2006 1 commit
    • Eric Wong's avatar
      Replace strdup and {c,re,m}alloc with x* variants to check for OOM errors · 90847fc8
      Eric Wong authored
      I'm checking for zero-size allocations and assert()-ing them,
      so we can more easily get backtraces and debug problems, but we'll
      also allow -DNDEBUG people to live on the edge if they wish.
      
      We do not rely on errno when checking for OOM errors because
      some implementations of malloc do not set it, and malloc
      is commonly overridden by userspace wrappers.
      
      I've spent some time looking through the source and didn't find any
      obvious places where we would explicitly allocate 0 bytes, so we
      shouldn't trip any of those assertions.
      
      We also avoid allocating zero bytes because C libraries don't
      handle this consistently (some return NULL, some not); and it's
      dangerous either way.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4690 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      90847fc8
  11. 20 Aug, 2006 1 commit
  12. 11 Aug, 2006 1 commit
  13. 06 Aug, 2006 1 commit
  14. 30 Jul, 2006 2 commits
  15. 29 Jul, 2006 1 commit
  16. 27 Jul, 2006 2 commits
  17. 22 Jul, 2006 1 commit
  18. 21 Jul, 2006 2 commits
  19. 20 Jul, 2006 1 commit
  20. 17 Jul, 2006 1 commit
    • Eric Wong's avatar
      sparse: ANSI-fy function declarations · a234780a
      Eric Wong authored
      These are just warnings from sparse, but it makes the output
      easier to read.  I ran this through a quick perl script, but
      of course verified the output by looking at the diff and making
      sure the thing still compiles.
      
      here's the quick perl script I wrote to generate this patch:
      ----------- 8< -----------
      use Tie::File;
      defined(my $pid = open my $fh, '-|') or die $!;
      if (!$pid) {
      open STDERR, '>&STDOUT' or die $!;
      exec 'sparse', @ARGV or die $!;
      }
      my $na = 'warning: non-ANSI function declaration of function';
      while (<$fh>) {
      print STDERR $_;
      if (/^(.+?\.[ch]):(\d+):(\d+): $na '(\w+)'/o) {
      my ($f, $l, $pos, $func) = ($1, $2, $3, $4);
      $l--;
      tie my @x, 'Tie::File', $f or die "$!: $f";
      print '-', $x[$l], "\n";
      $x[$l] =~ s/\b($func\s*)\(\s*\)/$1(void)/;
      print '+', $x[$l], "\n";
      untie @x;
      }
      }
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4378 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      a234780a
  21. 14 Jul, 2006 2 commits
  22. 13 Jul, 2006 2 commits
  23. 21 Jun, 2006 1 commit
  24. 30 Apr, 2006 1 commit
  25. 16 Mar, 2006 1 commit
  26. 15 Mar, 2006 1 commit
  27. 19 Nov, 2005 1 commit
  28. 18 Nov, 2005 1 commit
  29. 11 Mar, 2005 1 commit
  30. 09 Mar, 2005 1 commit
  31. 06 Mar, 2005 1 commit
  32. 11 Nov, 2004 2 commits
  33. 10 Nov, 2004 1 commit