warnings: Add explict casts to silence many compiler warnings about sign comparisions.
[yaboot.git] / second / partition.c
index 4381770fcca5facc0171fc52308b273478235608..eb383bcde281f71f198be480dc6e19df4b4ebfb3 100644 (file)
@@ -337,12 +337,12 @@ partitions_lookup(const char *device)
      struct partition_t* list = NULL;
      unsigned int prom_blksize, iso_root_block;
 
-     strncpy(block_buffer, device, 2040);
+     strncpy((char *)block_buffer, device, 2040);
      if (_machine != _MACH_bplan)
-         strcat(block_buffer, ":0");
+         strcat((char *)block_buffer, ":0");
 
      /* Open device */
-     disk = prom_open(block_buffer);
+     disk = prom_open((char *)block_buffer);
      if (disk == NULL) {
          prom_printf("Can't open device <%s>\n", block_buffer);
          goto bail;