summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-14 17:36:15 -0700
committerRussell Belfer <arrbee@arrbee.com>2012-03-14 17:36:15 -0700
commitdeafee7bd7a9e2efcdff90627b6094d8c1519319 (patch)
tree4b11910d7d315a6db667cc4af4c6749630612ed3 /src/odb.c
parentab43ad2fd822504446e7876d6352c968a74beb53 (diff)
downloadlibgit2-deafee7bd7a9e2efcdff90627b6094d8c1519319.tar.gz
Continue error conversion
This converts blob.c, fileops.c, and all of the win32 files. Also, various minor cleanups throughout the code. Plus, in testing the win32 build, I cleaned up a bunch (although not all) of the warnings with the 64-bit build.
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/odb.c b/src/odb.c
index 782a77dc4..f68d13509 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -145,10 +145,8 @@ int git_odb__hashlink(git_oid *out, const char *path)
git_off_t size;
int result;
- if (p_lstat(path, &st) < 0) {
- giterr_set(GITERR_OS, "Failed to stat object '%s'", path);
+ if (git_path_lstat(path, &st) < 0)
return -1;
- }
size = st.st_size;