~ubuntu-branches/ubuntu/trusty/mpd/trusty

« back to all changes in this revision

Viewing changes to src/poison.h

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2011-02-02 12:26:30 UTC
  • mfrom: (1.5.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110202122630-bdyx8w4k94doz4fs
Tags: 0.16.1-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - debian/control:
    + Don't build-depend on libmikmod2-dev (Debian bug #510675).
    + Move avahi-daemon from Suggests field to Recommends field.
  - debian/mpd.init.d:
    + Read mpd user from mpd.conf.
  - debian/control, debian/rules:
    + Add libmp3lame-dev to the build dependencies and enable lame.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2003-2009 The Music Player Daemon Project
 
2
 * Copyright (C) 2003-2010 The Music Player Daemon Project
3
3
 * http://www.musicpd.org
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
20
20
#ifndef MPD_POISON_H
21
21
#define MPD_POISON_H
22
22
 
 
23
#include "check.h"
 
24
 
23
25
#ifndef NDEBUG
24
 
#include "config.h"
25
26
 
26
27
#ifdef HAVE_VALGRIND_MEMCHECK_H
27
28
#include <valgrind/memcheck.h>
46
47
        memset(p, 0x01, length);
47
48
 
48
49
#ifdef HAVE_VALGRIND_MEMCHECK_H
49
 
        VALGRIND_MAKE_MEM_NOACCESS(p, length);
 
50
        (void)VALGRIND_MAKE_MEM_NOACCESS(p, length);
50
51
#endif
51
52
#endif
52
53
}
67
68
        memset(p, 0x02, length);
68
69
 
69
70
#ifdef HAVE_VALGRIND_MEMCHECK_H
70
 
        VALGRIND_MAKE_MEM_UNDEFINED(p, length);
 
71
        (void)VALGRIND_MAKE_MEM_UNDEFINED(p, length);
71
72
#endif
72
73
#endif
73
74
}