All pastes #962513 Raw Edit

ipodpatcher.c.patch

public diff v1 · immutable
#962513 ·published 2008-03-29 20:23 UTC
rendered paste body
Index: ipodpatcher.c===================================================================--- ipodpatcher.c	(revision 16877)+++ ipodpatcher.c	(working copy)@@ -268,7 +268,7 @@     if ((ipod->pinfo[0].type != 0) || (ipod->pinfo[0].size == 0) ||          ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != 0xc) &&           (ipod->pinfo[1].type != PARTTYPE_HFS))) {-        if (!silent) fprintf(stderr,"[ERR]  Partition layout is not an ipod\n");+        if (!silent) fprintf(stderr,"[ERR]  Partition layout is not an iPod\n");         return -1;     } @@ -517,7 +517,7 @@             }                  if (memcmp(header+4, ipod->modelname,4)!=0) {-                fprintf(stderr,"[ERR]  Model name in input file (%c%c%c%c) doesn't match ipod model (%s)\n",+                fprintf(stderr,"[ERR]  Model name in input file (%c%c%c%c) doesn't match iPod model (%s)\n",                         header[4],header[5],header[6],header[7], ipod->modelname);                 close(infile);                 return -1;@@ -799,7 +799,7 @@             }                  if (memcmp(header+4, ipod->modelname,4)!=0) {-                fprintf(stderr,"[ERR]  Model name in input file (%c%c%c%c) doesn't match ipod model (%s)\n",+                fprintf(stderr,"[ERR]  Model name in input file (%c%c%c%c) doesn't match iPod model (%s)\n",                         header[4],header[5],header[6],header[7], ipod->modelname);                 close(infile);                 return -1;@@ -1304,11 +1304,11 @@          }  #ifdef __WIN32__-         printf("[INFO] Ipod found - %s (\"%s\") - disk device %d\n", -             ipod->modelstr,ipod->macpod ? "macpod" : "winpod",i);+         printf("[INFO] iPod found - %s (\"%s\") - disk device %d\n", +             ipod->modelstr,ipod->macpod ? "Macpod" : "Winpod",i); #else-         printf("[INFO] Ipod found - %s (\"%s\") - %s\n",-             ipod->modelstr,ipod->macpod ? "macpod" : "winpod",ipod->diskname);+         printf("[INFO] iPod found - %s (\"%s\") - %s\n",+             ipod->modelstr,ipod->macpod ? "Macpod" : "Winpod",ipod->diskname); #endif          n++;          strcpy(last_ipod,ipod->diskname);@@ -1339,7 +1339,7 @@     /* Only support 512-byte sectors at the moment */     if ( ipod->sector_size != 512 )     {-        fprintf(stderr,"[ERR]  Only ipods with 512 bytes per sector are supported.\n");+        fprintf(stderr,"[ERR]  Only iPods with 512 bytes per sector are supported.\n");         return -1;     }