@@ -54,7 +54,7 @@ int sqlite_backend__read_header(size_t *len_p, git_otype *type_p, git_odb_backen
5454 * type_p = (git_otype )sqlite3_column_int (backend -> st_read_header , 0 );
5555 * len_p = (size_t )sqlite3_column_int (backend -> st_read_header , 1 );
5656 assert (sqlite3_step (backend -> st_read_header ) == SQLITE_DONE );
57- error = GIT_SUCCESS ;
57+ error = GIT_OK ;
5858 } else {
5959 error = GIT_ENOTFOUND ;
6060 }
@@ -84,7 +84,7 @@ int sqlite_backend__read(void **data_p, size_t *len_p, git_otype *type_p, git_od
8484 error = GIT_ENOMEM ;
8585 } else {
8686 memcpy (* data_p , sqlite3_column_blob (backend -> st_read , 2 ), * len_p );
87- error = GIT_SUCCESS ;
87+ error = GIT_OK ;
8888 }
8989
9090 assert (sqlite3_step (backend -> st_read ) == SQLITE_DONE );
@@ -102,7 +102,7 @@ int sqlite_backend__read_prefix(git_oid *out_oid, void **data_p, size_t *len_p,
102102 if (len >= GIT_OID_HEXSZ ) {
103103 /* Just match the full identifier */
104104 int error = sqlite_backend__read (data_p , len_p , type_p , _backend , short_oid );
105- if (error == GIT_SUCCESS )
105+ if (error == GIT_OK )
106106 git_oid_cpy (out_oid , short_oid );
107107
108108 return error ;
@@ -155,7 +155,7 @@ int sqlite_backend__write(git_oid *id, git_odb_backend *_backend, const void *da
155155 }
156156
157157 sqlite3_reset (backend -> st_write );
158- return (error == SQLITE_DONE ) ? GIT_SUCCESS : GIT_ERROR ;
158+ return (error == SQLITE_DONE ) ? GIT_OK : GIT_ERROR ;
159159}
160160
161161
@@ -185,7 +185,7 @@ static int create_table(sqlite3 *db)
185185 if (sqlite3_exec (db , sql_creat , NULL , NULL , NULL ) != SQLITE_OK )
186186 return GIT_ERROR ;
187187
188- return GIT_SUCCESS ;
188+ return GIT_OK ;
189189}
190190
191191static int init_db (sqlite3 * db )
@@ -207,7 +207,7 @@ static int init_db(sqlite3 *db)
207207
208208 case SQLITE_ROW :
209209 /* the table was found */
210- error = GIT_SUCCESS ;
210+ error = GIT_OK ;
211211 break ;
212212
213213 default :
@@ -239,7 +239,7 @@ static int init_statements(sqlite_backend *backend)
239239 if (sqlite3_prepare_v2 (backend -> db , sql_write , -1 , & backend -> st_write , NULL ) != SQLITE_OK )
240240 return GIT_ERROR ;
241241
242- return GIT_SUCCESS ;
242+ return GIT_OK ;
243243}
244244
245245int git_odb_backend_sqlite (git_odb_backend * * backend_out , const char * sqlite_db )
@@ -271,7 +271,7 @@ int git_odb_backend_sqlite(git_odb_backend **backend_out, const char *sqlite_db)
271271 backend -> parent .free = & sqlite_backend__free ;
272272
273273 * backend_out = (git_odb_backend * )backend ;
274- return GIT_SUCCESS ;
274+ return GIT_OK ;
275275
276276cleanup :
277277 sqlite_backend__free ((git_odb_backend * )backend );
0 commit comments