Commit 7d6735ca authored by Per Cederqvist's avatar Per Cederqvist

(trace_alloc_file): Use f_fopen intstead of fopen.

parent e5f41cb2
/* /*
* $Id: ram-smalloc.c,v 0.36 2002/08/07 23:30:52 ceder Exp $ * $Id: ram-smalloc.c,v 0.37 2002/10/31 09:31:15 ceder Exp $
* Copyright (C) 1991-1996, 1998-1999, 2001-2002 Lysator Academic Computer Association. * Copyright (C) 1991-1996, 1998-1999, 2001-2002 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
#ifdef TRACED_ALLOCATIONS #ifdef TRACED_ALLOCATIONS
# include "trace-alloc.h" # include "trace-alloc.h"
#endif #endif
#include "eintr.h"
static int no_of_allocated_blocks = 0; static int no_of_allocated_blocks = 0;
...@@ -162,7 +163,7 @@ trace_alloc_file(const char *loc) ...@@ -162,7 +163,7 @@ trace_alloc_file(const char *loc)
if (loc[0] == '\0') if (loc[0] == '\0')
malloc_fp = stderr; malloc_fp = stderr;
else else
malloc_fp = fopen(loc, "w"); malloc_fp = i_fopen(loc, "w");
if (malloc_fp == NULL) if (malloc_fp == NULL)
restart_kom("init_malloc_fp failed: %s, %d\n", loc, errno); restart_kom("init_malloc_fp failed: %s, %d\n", loc, errno);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment