pretty.c: mark file-local function static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 11, 2010 at 22:23 UTC
cc5711424b7ae36276a40c06ede5d95f87ca20f0
2 files changed
+1
-2
commit.h
-1
@@ -73,7 +73,6 @@ struct pretty_print_context
73
struct reflog_walk_info *reflog_info;
74
};
75
76
-extern int non_ascii(int);
76
extern int has_non_ascii(const char *text);
77
struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */
78
extern char *reencode_commit_message(const struct commit *commit,
pretty.c
+1
-1
@@ -83,7 +83,7 @@ static int get_one_line(const char *msg)
83
}
84
85
/* High bit set, or ISO-2022-INT */
86
-int non_ascii(int ch)
86
+static int non_ascii(int ch)
87
{
88
return !isascii(ch) || ch == '\033';
89
}