freemyipod r804 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r803‎ | r804 | r805 >
Date:16:12, 20 November 2011
Author:theseven
Status:new
Tags:
Comment:
iPodSCSI: Fix include paths, add version message
Modified paths:
  • /tools/ipodscsi/main.c (modified) (history)
  • /tools/ipodscsi/version.h (modified) (history)

Diff [purge]

Index: tools/ipodscsi/main.c
@@ -24,9 +24,10 @@
2525 #define WIN32_LEAN_AND_MEAN
2626 #define _WIN32_WINNT 0x500
2727 #include <windows.h>
28 -#include <ntddscsi.h>
2928 #include <stdbool.h>
3029 #include <inttypes.h>
 30+#include <ddk/ntddscsi.h>
 31+#include "build/version.h"
3132
3233
3334 struct scsi_cmd
@@ -205,6 +206,10 @@
206207
207208 int main(int argc, char const* const* argv)
208209 {
 210+ printf("iPodSCSI v. " VERSION " r" VERSION_SVN " - Copyright 2011 by Michael Sparmann (TheSeven)\r\n"
 211+ "This is free software; see the source for copying conditions. There is NO\r\n"
 212+ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n"
 213+ "\r\n");
209214 if (argc < 4) return usage("Not enough arguments specified", NULL, argc, argv);
210215
211216 if (strlen(argv[1]) != 2 || argv[1][1] != ':') return usage("Bad drive letter: %s", argv[1], argc, argv);
Index: tools/ipodscsi/version.h
@@ -33,4 +33,4 @@
3434 #define VERSION_SVN_INT $REVISIONINT$
3535
3636
37 -#endif
\ No newline at end of file
 37+#endif