Skip to content

Commit

Permalink
Put the image type enums in the correct order; remove duplicates.
Browse files Browse the repository at this point in the history
  • Loading branch information
uckelman-sf committed Jul 5, 2022
1 parent 4583479 commit 2879fbe
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions tsk/img/img_open.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,6 @@ tsk_img_open(int num_img,
img_info = raw_open(num_img, images, a_ssize);
break;

case TSK_IMG_TYPE_LOGICAL:
img_info = logical_open(num_img, images, a_ssize);
break;

#if HAVE_LIBAFFLIB
case TSK_IMG_TYPE_AFF_AFF:
case TSK_IMG_TYPE_AFF_AFD:
Expand Down Expand Up @@ -296,17 +292,9 @@ tsk_img_open(int num_img,
break;
#endif

#if HAVE_LIBVHDI
case TSK_IMG_TYPE_VHD_VHD:
img_info = vhdi_open(num_img, images, a_ssize);
break;
#endif

#if HAVE_LIBVMDK
case TSK_IMG_TYPE_VMDK_VMDK:
img_info = vmdk_open(num_img, images, a_ssize);
break;
#endif
case TSK_IMG_TYPE_LOGICAL:
img_info = logical_open(num_img, images, a_ssize);
break;

default:
tsk_error_reset();
Expand Down

0 comments on commit 2879fbe

Please sign in to comment.