X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fifo.c;h=ac0d21576dcf9fce5192945472cb7dd04f624bff;hp=de0318414ad45aea2ba11326ccf2405756c9c5b1;hb=01bf5128d0581e267383f280c6a1dcd26517240f;hpb=5ec10eaad3b09875b91e19a20bbdfa06f2117562 diff --git a/fifo.c b/fifo.c index de031841..ac0d2157 100644 --- a/fifo.c +++ b/fifo.c @@ -15,7 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ @@ -24,6 +24,7 @@ #include #include "fifo.h" +#include "minmax.h" struct fifo *fifo_alloc(unsigned int size) { @@ -31,7 +32,7 @@ struct fifo *fifo_alloc(unsigned int size) fifo = malloc(sizeof(struct fifo)); if (!fifo) - return 0; + return NULL; fifo->buffer = malloc(size); fifo->size = size;