diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-02-28 15:30:24 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-02-28 15:30:24 +0000 |
commit | d77390a5947fb4ebe414e4a131d94fb1144884ba (patch) | |
tree | 7729720bd4388b57cf8544414d8890a2efc5cbdd | |
parent | 491426fc1d536c3f9048393991004f3c22a1de3d (diff) | |
download | perl-URPM-d77390a5947fb4ebe414e4a131d94fb1144884ba.tar perl-URPM-d77390a5947fb4ebe414e4a131d94fb1144884ba.tar.gz perl-URPM-d77390a5947fb4ebe414e4a131d94fb1144884ba.tar.bz2 perl-URPM-d77390a5947fb4ebe414e4a131d94fb1144884ba.tar.xz perl-URPM-d77390a5947fb4ebe414e4a131d94fb1144884ba.zip |
fix return type and variable of headerRead()
-rw-r--r-- | rpm5compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpm5compat.h b/rpm5compat.h index 71b5869..9725ed3 100644 --- a/rpm5compat.h +++ b/rpm5compat.h @@ -115,7 +115,7 @@ static int headerWrite(void * _fd, Header h, enum hMagic magicp) { return rc; } -static int headerRead(void * _fd, enum hMagic magicp) { +static inline Header headerRead(void * _fd, enum hMagic magicp) { const char item[] = "Header"; Header h = NULL; const char * fn = NULL; @@ -126,7 +126,7 @@ static int headerRead(void * _fd, enum hMagic magicp) { rc = RPMRC_FAIL; } msg = _free(msg); - return rc; + return h; } int rpmMachineScore(int type, const char * name) { |