fixes compiler warnings (on 3.3.4)
finding a gcc-4 compiler to fix more

regards,
-- 
Anand V. Avati
diff -pruN freeipmi/libfreeipmi/src/ipmi-lan-interface.c 
freeipmi-h/libfreeipmi/src/ipmi-lan-interface.c
--- freeipmi/libfreeipmi/src/ipmi-lan-interface.c       2005-11-08 
23:36:23.000000000 +0530
+++ freeipmi-h/libfreeipmi/src/ipmi-lan-interface.c     2005-11-08 
23:38:43.000000000 +0530
@@ -392,7 +392,7 @@ fill_hdr_session2 (ipmi_device_t *dev, 
                              dev->io.outofband.password, 
                              IPMI_SESSION_MAX_AUTH_CODE_LEN);
        ipmi_md2_update_data (&ctx, 
-                             &(dev->io.outofband.session_id), 
+                             (u_int8_t *)&(dev->io.outofband.session_id), 
                              sizeof (dev->io.outofband.session_id));
        if (ipmi_cmd == IPMI_CMD_ACTIVATE_SESSION)
          {
@@ -412,7 +412,7 @@ fill_hdr_session2 (ipmi_device_t *dev, 
                                  dev->io.outofband.rq.obj_msg_trlr, 
                                  fiid_obj_len_bytes 
(*(dev->io.outofband.rq.tmpl_msg_trlr_ptr)));
            ipmi_md2_update_data (&ctx, 
-                                 &(dev->io.outofband.session_seq_num), 
+                                 (u_int8_t 
*)&(dev->io.outofband.session_seq_num), 
                                  sizeof (dev->io.outofband.session_seq_num));
          }
        ipmi_md2_update_data (&ctx, 
@@ -441,7 +441,7 @@ fill_hdr_session2 (ipmi_device_t *dev, 
                              dev->io.outofband.password, 
                              IPMI_SESSION_MAX_AUTH_CODE_LEN);
        ipmi_md5_update_data (&ctx, 
-                             &(dev->io.outofband.session_id), 
+                             (u_int8_t *)&(dev->io.outofband.session_id), 
                              sizeof (dev->io.outofband.session_id));
        if (ipmi_cmd == IPMI_CMD_ACTIVATE_SESSION)
          {
@@ -461,7 +461,7 @@ fill_hdr_session2 (ipmi_device_t *dev, 
                                  dev->io.outofband.rq.obj_msg_trlr, 
                                  fiid_obj_len_bytes 
(*(dev->io.outofband.rq.tmpl_msg_trlr_ptr)));
            ipmi_md5_update_data (&ctx, 
-                                 &(dev->io.outofband.session_seq_num), 
+                                 (u_int8_t 
*)&(dev->io.outofband.session_seq_num), 
                                  sizeof (dev->io.outofband.session_seq_num));
          }
        ipmi_md5_update_data (&ctx, 
diff -pruN freeipmi/libfreeipmi/src/ipmi-sel-record-types.c 
freeipmi-h/libfreeipmi/src/ipmi-sel-record-types.c
--- freeipmi/libfreeipmi/src/ipmi-sel-record-types.c    2005-11-08 
23:36:24.000000000 +0530
+++ freeipmi-h/libfreeipmi/src/ipmi-sel-record-types.c  2005-11-08 
23:38:53.000000000 +0530
@@ -369,7 +369,7 @@ get_sel_timestamped_oem_record (u_int8_t
            "Manufacturer ID %02Xh", 
            manufacturer_id);
   asprintf (&(sel_record->event_message), 
-           "OEM Defined = %lXh", 
+           "OEM Defined = %llXh", 
            oem_defined);
   
   sel_record->event_data2_message = NULL;
_______________________________________________
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to