summaryrefslogtreecommitdiff
path: root/6/blob.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-11-18 11:29:09 -0800
committerOri Bernstein <ori@eigenstate.org>2015-11-18 11:45:43 -0800
commitf2027c43e0e85e679c4988954b8e9b35c0a1bdd3 (patch)
tree2eb9fbbd4529bf25c6cc408ecc7733b3911a62e1 /6/blob.c
parent82ffa8d68b897200ae2fedc863aa7ac064660d1d (diff)
downloadmc-f2027c43e0e85e679c4988954b8e9b35c0a1bdd3.tar.gz
Fix BSS on OSX.
Our alignment was too big, and we really didn't need to leading '_'. In fact, we didn't even need zero blobs.
Diffstat (limited to '6/blob.c')
-rw-r--r--6/blob.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/6/blob.c b/6/blob.c
index bb3ab0c..a215e93 100644
--- a/6/blob.c
+++ b/6/blob.c
@@ -27,16 +27,6 @@ Blob *mkblobi(Blobtype type, uint64_t ival)
return b;
}
-Blob *mkblobzero(size_t sz)
-{
- Blob *b;
-
- b = zalloc(sizeof(Blob));
- b->type = Btzero;
- b->npad = sz;
- return b;
-}
-
Blob *mkblobpad(size_t sz)
{
Blob *b;
@@ -118,7 +108,8 @@ void b(Blob *b, Blob *n)
static size_t blobpad(Blob *seq, size_t sz)
{
- b(seq, mkblobpad(sz));
+ if (sz)
+ b(seq, mkblobpad(sz));
return sz;
}