Skip to content

Commit

Permalink
Style: place opening brace of a function definition at column 1
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
gitster committed Nov 8, 2007
1 parent 5c35505 commit f3fa183
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion bundle.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ static void add_to_ref_list(const unsigned char *sha1, const char *name,
}

/* 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;
Expand Down
6 changes: 4 additions & 2 deletions daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ static struct daemon_service daemon_service[] = {
{ "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)) {
Expand All @@ -417,7 +418,8 @@ static void enable_service(const char *name, int ena) {
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)) {
Expand Down
3 changes: 2 additions & 1 deletion dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ int excluded(struct dir_struct *dir, const char *pathname)
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);
Expand Down
3 changes: 2 additions & 1 deletion help.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ static void uniq(struct cmdnames *cmds)
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;

Expand Down
3 changes: 2 additions & 1 deletion quote.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ static signed char const sq_lookup[256] = {
/* 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;
}

Expand Down
3 changes: 2 additions & 1 deletion setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ static const char *set_work_tree(const char *dir)
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))
Expand Down
6 changes: 4 additions & 2 deletions transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ static int disconnect_walker(struct transport *transport)
}

#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;
Expand Down Expand Up @@ -646,7 +647,8 @@ static int fetch_refs_via_pack(struct transport *transport,
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;
Expand Down
3 changes: 2 additions & 1 deletion utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ struct interval {
};

/* 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;

Expand Down

0 comments on commit f3fa183

Please sign in to comment.