diff options
author | Bernhard Walle <bwalle@suse.de> | 2007-10-06 20:41:38 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2007-10-08 11:05:42 +1000 |
commit | de12fd1c7133edfc4be1d94f63295e30ae1dc526 (patch) | |
tree | cc6b1aa04855a3d92d1d8d5e3c7fcf3ef1e4ae9c /kexec/kexec.c | |
parent | ddbc4830ad70598070e891e10508ca09567bca60 (diff) |
Use fclose() to close the file pointer
Just use fclose() instead of close() to close a pointer of type FILE *.
That fixes the compile warning
kexec/kexec.c: In function 'check_reuse_initrd':
kexec/kexec.c:793: warning: passing argument 1 of 'close' makes integer from pointer without a cast
Signed-off-by: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.c')
-rw-r--r-- | kexec/kexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c index 978844d..fe29dad 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -790,7 +790,7 @@ void check_reuse_initrd(void) "retain the initrd for reuse.\n"); if (line) free(line); - close(fp); + fclose(fp); } /* Arch hook for reuse_initrd */ |