aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2013-12-05 14:39:28 -0900
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2013-12-05 14:39:28 -0900
commitd0fa87de71d2e6538b97e4db5974512d9b90810e (patch)
tree3d417059dddf8222412a2adf4e491e5c3d130bf0 /src
parent47b65343e7f901a42e1a2a96c63a14008c9c6882 (diff)
downloaddmstools-d0fa87de71d2e6538b97e4db5974512d9b90810e.tar.gz
dmstools-d0fa87de71d2e6538b97e4db5974512d9b90810e.tar.bz2
dmstools-d0fa87de71d2e6538b97e4db5974512d9b90810e.tar.xz
dmstools-d0fa87de71d2e6538b97e4db5974512d9b90810e.zip
Fixing compile warnings in bincopy.
Diffstat (limited to 'src')
-rw-r--r--src/bitcopy.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bitcopy.c b/src/bitcopy.c
index b9c5fe3..83f3786 100644
--- a/src/bitcopy.c
+++ b/src/bitcopy.c
@@ -279,35 +279,35 @@ int main(int argc, char * argv[])
279 case 0: /* long options toggles */ 279 case 0: /* long options toggles */
280 break; 280 break;
281 case 'B': 281 case 'B':
282 buff_len = strtoul(optarg, NULL, 0); 282 buff_len = (uint32_t)strtoul(optarg, NULL, 0);
283 break; 283 break;
284 case 'b': 284 case 'b':
285 u = strtoul(optarg, NULL, 0); 285 u = (uint32_t)strtoul(optarg, NULL, 0);
286 buff_len = (u & 0x07) ? ((u/8) + 1) : (u/8); 286 buff_len = (u & 0x07) ? ((u/8) + 1) : (u/8);
287 break; 287 break;
288 case 'd': 288 case 'd':
289 data = strtoul(optarg, NULL, 0); 289 data = (uint32_t)strtoul(optarg, NULL, 0);
290 break; 290 break;
291 case 'h': 291 case 'h':
292 my_usage(); 292 my_usage();
293 return(0); 293 return(0);
294 case 'L': 294 case 'L':
295 len = strtoul(optarg, NULL, 0); 295 len = (uint32_t)strtoul(optarg, NULL, 0);
296 len *= 8; 296 len *= 8;
297 if (len > 32) 297 if (len > 32)
298 len = 32; 298 len = 32;
299 break; 299 break;
300 case 'l': 300 case 'l':
301 len = strtoul(optarg, NULL, 0); 301 len = (uint32_t)strtoul(optarg, NULL, 0);
302 if (len > 32) 302 if (len > 32)
303 len = 32; 303 len = 32;
304 break; 304 break;
305 case 'O': 305 case 'O':
306 offset = strtoul(optarg, NULL, 0); 306 offset = (uint32_t)strtoul(optarg, NULL, 0);
307 offset *= 8; 307 offset *= 8;
308 break; 308 break;
309 case 'o': 309 case 'o':
310 offset = strtoul(optarg, NULL, 0); 310 offset = (uint32_t)strtoul(optarg, NULL, 0);
311 break; 311 break;
312 case 'V': 312 case 'V':
313 my_version(); 313 my_version();