summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c35505)
raw | patch | inline | side by side (parent: 5c35505)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Nov 2007 23:35:32 +0000 (15:35 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Nov 2007 23:35:32 +0000 (15:35 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle.c | patch | blob | history | |
daemon.c | patch | blob | history | |
dir.c | patch | blob | history | |
help.c | patch | blob | history | |
quote.c | patch | blob | history | |
setup.c | patch | blob | history | |
transport.c | patch | blob | history | |
utf8.c | patch | blob | history |
diff --git a/bundle.c b/bundle.c
index 0869fcf0261de7217cc0b1dadd30a5259468d4f8..e4d60cde6f1b9dd7a2aab36ebc4f2a97a9d61b22 100644 (file)
--- a/bundle.c
+++ b/bundle.c
}
/* returns an fd */
-int read_bundle_header(const char *path, struct bundle_header *header) {
+int read_bundle_header(const char *path, struct bundle_header *header)
+{
char buffer[1024];
int fd;
long fpos;
diff --git a/daemon.c b/daemon.c
index b8df980dc57cc7b9f3710f4ee90b7aa3d18596ca..41a60af624ae661e9bd96a935ecdc855625b669e 100644 (file)
--- a/daemon.c
+++ b/daemon.c
{ "receive-pack", "receivepack", receive_pack, 0, 1 },
};
-static void enable_service(const char *name, int ena) {
+static void enable_service(const char *name, int ena)
+{
int i;
for (i = 0; i < ARRAY_SIZE(daemon_service); i++) {
if (!strcmp(daemon_service[i].name, name)) {
die("No such service %s", name);
}
-static void make_service_overridable(const char *name, int ena) {
+static void make_service_overridable(const char *name, int ena)
+{
int i;
for (i = 0; i < ARRAY_SIZE(daemon_service); i++) {
if (!strcmp(daemon_service[i].name, name)) {
index 5bcc764c97dca5e584d0a4227bfb299efb5699ce..01790ab27d25f63ea9f0816668a822d8f059664a 100644 (file)
--- a/dir.c
+++ b/dir.c
return 0;
}
-static struct dir_entry *dir_entry_new(const char *pathname, int len) {
+static struct dir_entry *dir_entry_new(const char *pathname, int len)
+{
struct dir_entry *ent;
ent = xmalloc(sizeof(*ent) + len + 1);
index 855aeef92f00689fd7b283c42e42b90df42f897e..8217d97787b2ba38a5327c1204797044b2b4cd72 100644 (file)
--- a/help.c
+++ b/help.c
cmds->cnt = j;
}
-static void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes) {
+static void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
+{
int ci, cj, ei;
int cmp;
index 919d0920abfc0bd2becbcc35fd065514b9651281..04557833a561b4613a511af8fb9f0fb18b36b2fa 100644 (file)
--- a/quote.c
+++ b/quote.c
/* 0x80 */ /* set to 0 */
};
-static inline int sq_must_quote(char c) {
+static inline int sq_must_quote(char c)
+{
return sq_lookup[(unsigned char)c] + quote_path_fully > 0;
}
index df006d9c4a674b224f36318742ef01b339d797b3..1e2c55d0767dfc1122e0c6716f9148bd10be22ab 100644 (file)
--- a/setup.c
+++ b/setup.c
return NULL;
}
-void setup_work_tree(void) {
+void setup_work_tree(void)
+{
const char *work_tree = get_git_work_tree();
const char *git_dir = get_git_dir();
if (!is_absolute_path(git_dir))
diff --git a/transport.c b/transport.c
index d44fe7cee7bd8f0e524eff6b516cd2c8b8c919e2..fa5cfbb09d18d4546725e947933b22bb32c3ec2c 100644 (file)
--- a/transport.c
+++ b/transport.c
}
#ifndef NO_CURL
-static int curl_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags) {
+static int curl_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags)
+{
const char **argv;
int argc;
int err;
return 0;
}
-static int git_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags) {
+static int git_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags)
+{
struct git_transport_data *data = transport->data;
const char **argv;
char *rem;
index 4efef6faf7c71f3201935f81611806af084c45d4..8095a71d390e59e1ede1d3ed06921b2fcd50e753 100644 (file)
--- a/utf8.c
+++ b/utf8.c
};
/* auxiliary function for binary search in interval table */
-static int bisearch(ucs_char_t ucs, const struct interval *table, int max) {
+static int bisearch(ucs_char_t ucs, const struct interval *table, int max)
+{
int min = 0;
int mid;