summaryrefslogtreecommitdiff
path: root/src/slices.c
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2011-03-06 20:46:29 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2011-03-06 20:46:29 +0000
commit6c701b58a24d96e37c323412f3d2aa334cd2ded1 (patch)
treea959865f001c94ce70bd94b5cd0f09c725f28fc4 /src/slices.c
parent8d663918601896f6f5759a0f0b86a0131201dcfb (diff)
download2011-ddhardrescue-6c701b58a24d96e37c323412f3d2aa334cd2ded1.tar.gz
2011-ddhardrescue-6c701b58a24d96e37c323412f3d2aa334cd2ded1.tar.bz2
2011-ddhardrescue-6c701b58a24d96e37c323412f3d2aa334cd2ded1.zip
La gestion minimaliste des évènements de modification des slices est faite.
Un dump à chaque event a été codé dans le main pour tester cet aspect. C'est ok. Go go go ncurses :D git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@11 d3078510-dda0-49f1-841c-895ef4b7ec81
Diffstat (limited to 'src/slices.c')
-rwxr-xr-xsrc/slices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slices.c b/src/slices.c
index 9f40b9e..21fdd3b 100755
--- a/src/slices.c
+++ b/src/slices.c
@@ -36,7 +36,7 @@ int sliceSplit(slices_t *slices, slice_t *initialSlice, address_t splitAt, slice
and then between he first and second if needed.
*/
- if ( splitAt < initialSlice->begin || splitAt > initialSlice->end ) return 2;
+ if ( splitAt < initialSlice->begin || splitAt > initialSlice->end ) return -2;
// Test before act because we'll change values of the initialSlice because
// it would become the firstSlice or even the second one if the first is zero-lenght