Mercurial > hg-stable
comparison mercurial/mpatch.c @ 29753:9a1685c70db4
mpatch: change lalloc() to local function
It was mistakenly made public at b9b9f9a92481.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 07 Aug 2016 09:40:30 +0900 |
parents | 21ac534d7d30 |
children | 155f0cc3f813 |
comparison
equal
deleted
inserted
replaced
29752:21ac534d7d30 | 29753:9a1685c70db4 |
---|---|
28 #include "mpatch.h" | 28 #include "mpatch.h" |
29 | 29 |
30 char *mpatch_errors[] = {NULL, "invalid patch", "patch cannot be decoded", | 30 char *mpatch_errors[] = {NULL, "invalid patch", "patch cannot be decoded", |
31 "no memory"}; | 31 "no memory"}; |
32 | 32 |
33 struct mpatch_flist *lalloc(ssize_t size) | 33 static struct mpatch_flist *lalloc(ssize_t size) |
34 { | 34 { |
35 struct mpatch_flist *a = NULL; | 35 struct mpatch_flist *a = NULL; |
36 | 36 |
37 if (size < 1) | 37 if (size < 1) |
38 size = 1; | 38 size = 1; |