aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-02-12 21:21:57 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2016-02-12 21:21:57 -0800
commit2bc798a96877eaf11b3ccce1340f34e46a93f1b9 (patch)
tree0fa85d6e8dbd5ff307270ab1abc77e212a77cd53
parent99276cc7d9e8d3f39af22582bfae115fed5bb997 (diff)
downloadnasm-machomerge.tar.gz
nasm-machomerge.tar.xz
nasm-machomerge.zip
rdflib: actually get the timemachomerge
sizeof(t = time(NULL)) doesn't ever actually call time(). Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--rdoff/rdflib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c
index 1490396f..06cce3c7 100644
--- a/rdoff/rdflib.c
+++ b/rdoff/rdflib.c
@@ -180,7 +180,8 @@ int main(int argc, char **argv)
}
fwrite(sig_modname, 1, strlen(sig_modname) + 1, fp);
fwrite(rdl_signature, 1, strlen(rdl_signature), fp);
- l = sizeof(t = time(NULL));
+ t = time(NULL);
+ l = sizeof(t);
fwrite(&l, sizeof(l), 1, fp);
fwrite(&t, 1, l, fp);
fclose(fp);