aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-06 17:47:15 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-06 17:47:15 -0800
commitf6fb77dbc062f0fbc1672f37dc1560cdbc08083d (patch)
tree889faf1bc7d4fd7bff3c6d895a9ef3ad0fd571e7
parentda0708ffa868b799887cc1ab2995f79b8e41f1f2 (diff)
downloadsyslinux.git-f6fb77dbc062f0fbc1672f37dc1560cdbc08083d.tar.gz
syslinux.git-f6fb77dbc062f0fbc1672f37dc1560cdbc08083d.tar.xz
syslinux.git-f6fb77dbc062f0fbc1672f37dc1560cdbc08083d.zip
sysdump: add missing return statement in cpio_writefile()
cpio_writefile() should return the actual return value... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/sysdump/cpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/sysdump/cpio.c b/com32/sysdump/cpio.c
index 79d01fc2..b5a48df7 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)