Patchwork [2,of,4] mpatch: change lalloc() to local function

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 7, 2016, 12:09 p.m.
Message ID <ab6faafa65302e34a080.1470571796@mimosa>
Download mbox | patch
Permalink /patch/16171/
State Accepted
Headers show

Comments

Yuya Nishihara - Aug. 7, 2016, 12:09 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1470530430 -32400
#      Sun Aug 07 09:40:30 2016 +0900
# Node ID ab6faafa65302e34a080f41838012f241fd3c6e8
# Parent  8cf0accb1390495a49fcfbb967b59406e1f54019
mpatch: change lalloc() to local function

It was mistakenly made public at b9b9f9a92481.

Patch

diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c
--- a/mercurial/mpatch.c
+++ b/mercurial/mpatch.c
@@ -30,7 +30,7 @@ 
 char *mpatch_errors[] = {NULL, "invalid patch", "patch cannot be decoded",
 						"no memory"};
 
-struct mpatch_flist *lalloc(ssize_t size)
+static struct mpatch_flist *lalloc(ssize_t size)
 {
 	struct mpatch_flist *a = NULL;