Commit 63e05f9
object-file API: return "void", not "int" from hash_object_file()
The hash_object_file() function added in abdc3fc (Add
hash_sha1_file(), 2006-10-14) did not have a meaningful return value,
and it never has.
One was seemingly added to avoid adding braces to the "ret = "
assignments being modified here. Let's instead assign "0" to the "ret"
variables at the beginning of the relevant functions, and have them
return "void".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent bbea0dd commit 63e05f9
2 files changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1836 | 1836 | | |
1837 | 1837 | | |
1838 | 1838 | | |
1839 | | - | |
| 1839 | + | |
1840 | 1840 | | |
1841 | 1841 | | |
1842 | 1842 | | |
1843 | 1843 | | |
1844 | 1844 | | |
1845 | 1845 | | |
1846 | | - | |
1847 | 1846 | | |
1848 | 1847 | | |
1849 | 1848 | | |
| |||
2118 | 2117 | | |
2119 | 2118 | | |
2120 | 2119 | | |
2121 | | - | |
| 2120 | + | |
2122 | 2121 | | |
2123 | 2122 | | |
2124 | 2123 | | |
| |||
2148 | 2147 | | |
2149 | 2148 | | |
2150 | 2149 | | |
2151 | | - | |
2152 | | - | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
2153 | 2153 | | |
2154 | 2154 | | |
2155 | 2155 | | |
| |||
2161 | 2161 | | |
2162 | 2162 | | |
2163 | 2163 | | |
2164 | | - | |
| 2164 | + | |
2165 | 2165 | | |
2166 | 2166 | | |
2167 | 2167 | | |
| |||
2175 | 2175 | | |
2176 | 2176 | | |
2177 | 2177 | | |
2178 | | - | |
2179 | | - | |
| 2178 | + | |
| 2179 | + | |
2180 | 2180 | | |
2181 | 2181 | | |
2182 | 2182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
0 commit comments