Browse Source

fl_wrapper: changed tpl_*.c to use NULL instead of 0

user/amery/test/random-cleanup
Alejandro Mery 15 years ago
committed by Alejandro Mery
parent
commit
2737eb12e1
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/tools-source/fl_wrapper/tpl_exec.c
  2. +1
    -1
      src/tools-source/fl_wrapper/tpl_open.c
  3. +1
    -1
      src/tools-source/fl_wrapper/tpl_rest.c

+ 2
- 2
src/tools-source/fl_wrapper/tpl_exec.c

@ -17,13 +17,13 @@
*/
extern RET_TYPE FUNCTION(P1);
RET_TYPE (*orig_FUNCTION)(P1) = 0;
RET_TYPE (*orig_FUNCTION)(P1) = NULL;
RET_TYPE FUNCTION(P1)
{
int old_errno=errno;
handle_file_access_after("FUNCTION", f, 0);
handle_file_access_after("FUNCTION", f, NULL);
if (!orig_FUNCTION) orig_FUNCTION = get_dl_symbol("FUNCTION");
errno=old_errno;

+ 1
- 1
src/tools-source/fl_wrapper/tpl_open.c

@ -17,7 +17,7 @@
*/
extern RET_TYPE FUNCTION(P1);
RET_TYPE (*orig_FUNCTION)(P1) = 0;
RET_TYPE (*orig_FUNCTION)(P1) = NULL;
RET_TYPE FUNCTION(P1)
{

+ 1
- 1
src/tools-source/fl_wrapper/tpl_rest.c

@ -17,7 +17,7 @@
*/
extern RET_TYPE FUNCTION(P1);
RET_TYPE (*orig_FUNCTION)(P1) = 0;
RET_TYPE (*orig_FUNCTION)(P1) = NULL;
RET_TYPE FUNCTION(P1)
{

Loading…
Cancel
Save