@@ -463,7 +463,7 @@ static int locate_object(char *object_location, loose_backend *backend, const gi
463463}
464464
465465/* Explore an entry of a directory and see if it matches a short oid */
466- int fn_locate_object_short_oid (void * state , char * pathbuf ) {
466+ static int fn_locate_object_short_oid (void * state , char * pathbuf ) {
467467 loose_locate_object_state * sstate = (loose_locate_object_state * )state ;
468468
469469 size_t pathbuf_len = strlen (pathbuf );
@@ -559,7 +559,7 @@ static int locate_object_short_oid(char *object_location, git_oid *res_oid, loos
559559 *
560560 ***********************************************************/
561561
562- int loose_backend__read_header (size_t * len_p , git_otype * type_p , git_odb_backend * backend , const git_oid * oid )
562+ static int loose_backend__read_header (size_t * len_p , git_otype * type_p , git_odb_backend * backend , const git_oid * oid )
563563{
564564 char object_path [GIT_PATH_MAX ];
565565 git_rawobj raw ;
@@ -581,7 +581,7 @@ int loose_backend__read_header(size_t *len_p, git_otype *type_p, git_odb_backend
581581 return GIT_SUCCESS ;
582582}
583583
584- int loose_backend__read (void * * buffer_p , size_t * len_p , git_otype * type_p , git_odb_backend * backend , const git_oid * oid )
584+ static int loose_backend__read (void * * buffer_p , size_t * len_p , git_otype * type_p , git_odb_backend * backend , const git_oid * oid )
585585{
586586 char object_path [GIT_PATH_MAX ];
587587 git_rawobj raw ;
@@ -602,7 +602,7 @@ int loose_backend__read(void **buffer_p, size_t *len_p, git_otype *type_p, git_o
602602 return GIT_SUCCESS ;
603603}
604604
605- int loose_backend__read_prefix (
605+ static int loose_backend__read_prefix (
606606 git_oid * out_oid ,
607607 void * * buffer_p ,
608608 size_t * len_p ,
@@ -643,7 +643,7 @@ int loose_backend__read_prefix(
643643 return GIT_SUCCESS ;
644644}
645645
646- int loose_backend__exists (git_odb_backend * backend , const git_oid * oid )
646+ static int loose_backend__exists (git_odb_backend * backend , const git_oid * oid )
647647{
648648 char object_path [GIT_PATH_MAX ];
649649
@@ -652,7 +652,7 @@ int loose_backend__exists(git_odb_backend *backend, const git_oid *oid)
652652 return locate_object (object_path , (loose_backend * )backend , oid ) == GIT_SUCCESS ;
653653}
654654
655- int loose_backend__stream_fwrite (git_oid * oid , git_odb_stream * _stream )
655+ static int loose_backend__stream_fwrite (git_oid * oid , git_odb_stream * _stream )
656656{
657657 loose_writestream * stream = (loose_writestream * )_stream ;
658658 loose_backend * backend = (loose_backend * )_stream -> backend ;
@@ -673,13 +673,13 @@ int loose_backend__stream_fwrite(git_oid *oid, git_odb_stream *_stream)
673673 return git_filebuf_commit_at (& stream -> fbuf , final_path );
674674}
675675
676- int loose_backend__stream_write (git_odb_stream * _stream , const char * data , size_t len )
676+ static int loose_backend__stream_write (git_odb_stream * _stream , const char * data , size_t len )
677677{
678678 loose_writestream * stream = (loose_writestream * )_stream ;
679679 return git_filebuf_write (& stream -> fbuf , data , len );
680680}
681681
682- void loose_backend__stream_free (git_odb_stream * _stream )
682+ static void loose_backend__stream_free (git_odb_stream * _stream )
683683{
684684 loose_writestream * stream = (loose_writestream * )_stream ;
685685
@@ -702,7 +702,7 @@ static int format_object_header(char *hdr, size_t n, size_t obj_len, git_otype o
702702 return len + 1 ;
703703}
704704
705- int loose_backend__stream (git_odb_stream * * stream_out , git_odb_backend * _backend , size_t length , git_otype type )
705+ static int loose_backend__stream (git_odb_stream * * stream_out , git_odb_backend * _backend , size_t length , git_otype type )
706706{
707707 loose_backend * backend ;
708708 loose_writestream * stream ;
@@ -754,7 +754,7 @@ int loose_backend__stream(git_odb_stream **stream_out, git_odb_backend *_backend
754754 return GIT_SUCCESS ;
755755}
756756
757- int loose_backend__write (git_oid * oid , git_odb_backend * _backend , const void * data , size_t len , git_otype type )
757+ static int loose_backend__write (git_oid * oid , git_odb_backend * _backend , const void * data , size_t len , git_otype type )
758758{
759759 int error , header_len ;
760760 char final_path [GIT_PATH_MAX ], header [64 ];
@@ -797,7 +797,7 @@ int loose_backend__write(git_oid *oid, git_odb_backend *_backend, const void *da
797797 return error ;
798798}
799799
800- void loose_backend__free (git_odb_backend * _backend )
800+ static void loose_backend__free (git_odb_backend * _backend )
801801{
802802 loose_backend * backend ;
803803 assert (_backend );
0 commit comments