diff --git a/src/solx_devfs.c b/src/solx_devfs.c
index 05d54a0..433969f 100644
--- a/src/solx_devfs.c
+++ b/src/solx_devfs.c
@@ -81,7 +81,7 @@ typedef struct probe_args {
 } probe_args_t;
 
 typedef struct property_info {
-    char *name;
+    const char *name;
     int value;
 } property_info_t;
 
@@ -204,13 +204,13 @@ probe_device_node(di_node_t node, void *arg)
     probe_info_t *pinfo = ((probe_args_t *)arg)->pinfo;
     nexus_t *nexus = ((probe_args_t *)arg)->nexus;
     property_info_t property_list[] = {
-				"class-code", 0,
-				"device-id", 0,
-				"vendor-id", 0,
-				"revision-id", 0,
-				"subsystem-vendor-id", 0,
-				"subsystem-id", 0,
-				};
+        { "class-code", 0 },
+        { "device-id", 0 },
+        { "vendor-id", 0 },
+        { "revision-id", 0},
+        { "subsystem-vendor-id", 0},
+        { "subsystem-id", 0},
+    };
 #define NUM_PROPERTIES		sizeof(property_list)/sizeof(property_info_t)
 
     len = di_prop_lookup_ints(DDI_DEV_T_ANY, node, "reg", &retbuf);
@@ -751,7 +751,7 @@ pci_device_solx_devfs_map_range(struct pci_device *dev,
 	err = errno;
 
 	(void) fprintf(stderr, "map rom region =%llx failed: %s\n",
-		       map->base, strerror(errno));
+		       (unsigned long long) map->base, strerror(errno));
     }
 
 #ifdef __sparc
@@ -831,7 +831,7 @@ pci_device_solx_devfs_read( struct pci_device * dev, void * data,
 		    cfg_prg.bus_no,
 		    cfg_prg.dev_no,
 		    cfg_prg.func_no,
-		    cfg_prg.offset);
+		    (unsigned long long) cfg_prg.offset);
 	    fprintf(stderr, "Failure cause = %x\n", err);
 	    break;
 	}