Commit dae26db
committed
dht-rebalance.c: fix clang compilation warning
Fix:
dht-rebalance.c:2259:33: warning: implicit conversion from enumeration type 'enum entrylk_cmd' to different enumeration type 'entrylk_type' (aka 'enum entrylk_type') [-Wenum-conversion]
2257 | lk_ret = syncop_entrylk(hashed_subvol, DHT_ENTRY_SYNC_DOMAIN,
| ~~~~~~~~~~~~~~
2258 | &parent_loc, loc->name, ENTRYLK_UNLOCK,
2259 | ENTRYLK_UNLOCK, NULL, NULL);
| ^~~~~~~~~~~~~~
This is not very clear - there's a very clear copy-pasta here, but is the fix to turn it into ENTRYLK_WRLCK ?
Every other caller seem to think so, so this is the change.
Signed-off-by: Yaniv Kaul <[email protected]>1 parent c4794c2 commit dae26db
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2256 | 2256 | | |
2257 | 2257 | | |
2258 | 2258 | | |
2259 | | - | |
| 2259 | + | |
2260 | 2260 | | |
2261 | 2261 | | |
2262 | 2262 | | |
| |||
0 commit comments