[sleuthkit-developers] [ sleuthkit-Bugs-2596153 ] tsk_img_open arguments
Brought to you by:
carrier
From: SourceForge.net <no...@so...> - 2009-05-08 12:54:59
|
Bugs item #2596153, was opened at 2009-02-13 09:47 Message generated for change (Comment added) made by carrier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=2596153&group_id=55685 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: File System Tools Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Brian Carrier (carrier) Assigned to: Nobody/Anonymous (nobody) Summary: tsk_img_open arguments Initial Comment: >From Simson Garfinkel: tsk_img_open_utf8 is prototyped: extern TSK_IMG_INFO *tsk_img_open_utf8(int num_img, const char **images, TSK_IMG_TYPE_ENUM type); where images is, I guess, argv. The problem is that getopt() prototypes argv this way: getopt(int argc, char * const argv[], const char *optstring); Passing argv to tsk_img_open_utf8 produces this error: error: invalid conversion from ‘char* const*’ to ‘const char**’ I can fix this with a cast, but perhaps tsk_img_open_utf8 should be changed to match. ---------------------------------------------------------------------- >Comment By: Brian Carrier (carrier) Date: 2009-05-08 07:54 Message: Fixed for Unix systems. Still need to do for Win32 arguments. Sending trunk/tests/fs_attrlist_apis.cpp Sending trunk/tests/fs_fname_apis.cpp Sending trunk/tests/read_apis.cpp Sending trunk/tools/fstools/blkcalc.cpp Sending trunk/tools/fstools/blkcat.cpp Sending trunk/tools/fstools/blkls.cpp Sending trunk/tools/fstools/blkstat.cpp Sending trunk/tools/fstools/ffind.cpp Sending trunk/tools/fstools/fls.cpp Sending trunk/tools/fstools/fscheck.cpp Sending trunk/tools/fstools/fsstat.cpp Sending trunk/tools/fstools/icat.cpp Sending trunk/tools/fstools/ifind.cpp Sending trunk/tools/fstools/ils.cpp Sending trunk/tools/fstools/istat.cpp Sending trunk/tools/fstools/jcat.cpp Sending trunk/tools/fstools/jls.cpp Sending trunk/tools/imgtools/img_cat.cpp Sending trunk/tools/imgtools/img_stat.cpp Sending trunk/tools/vstools/mmcat.cpp Sending trunk/tools/vstools/mmls.cpp Sending trunk/tools/vstools/mmstat.cpp Sending trunk/tsk3/img/aff.c Sending trunk/tsk3/img/aff.h Sending trunk/tsk3/img/ewf.c Sending trunk/tsk3/img/ewf.h Sending trunk/tsk3/img/img_io.c Sending trunk/tsk3/img/img_open.c Sending trunk/tsk3/img/raw.c Sending trunk/tsk3/img/split.c Sending trunk/tsk3/img/split.h Sending trunk/tsk3/img/tsk_img.h Transmitting file data ................................ Committed revision 94. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=2596153&group_id=55685 |