[PATCH] Use fclose() to close the file pointer

Simon Horman horms at verge.net.au
Sun Oct 7 21:11:19 EDT 2007


On Sat, Oct 06, 2007 at 08:41:38PM +0200, Bernhard Walle wrote:
> 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

Thanks Bernhard, I have applied this change.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/




More information about the kexec mailing list