[syslinux:master] sysdump: add missing return statement in cpio_writefile()

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sat Feb 6 17:48:13 PST 2010


Commit-ID:  f6fb77dbc062f0fbc1672f37dc1560cdbc08083d
Gitweb:     http://syslinux.zytor.com/commit/f6fb77dbc062f0fbc1672f37dc1560cdbc08083d
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sat, 6 Feb 2010 17:47:15 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sat, 6 Feb 2010 17:47:15 -0800

sysdump: add missing return statement in cpio_writefile()

cpio_writefile() should return the actual return value...

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/sysdump/cpio.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/com32/sysdump/cpio.c b/com32/sysdump/cpio.c
index 79d01fc..b5a48df 100644
--- a/com32/sysdump/cpio.c
+++ b/com32/sysdump/cpio.c
@@ -63,6 +63,8 @@ int cpio_writefile(struct backend *be, const char *filename,
     rv = cpio_hdr(be, 0100644, len, filename, false);
     rv |= write_data(be, data, len, false);
     rv |= write_data(be, pad, -len & 3, false);
+
+    return rv;
 }
 
 int cpio_close(struct backend *be)



More information about the Syslinux-commits mailing list