From: Jim Meyering <[email protected]>

---
 include/corosync/lcr/lcr_ckpt.h |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/include/corosync/lcr/lcr_ckpt.h b/include/corosync/lcr/lcr_ckpt.h
index 55c3c80..8020bd2 100644
--- a/include/corosync/lcr/lcr_ckpt.h
+++ b/include/corosync/lcr/lcr_ckpt.h
@@ -2,7 +2,7 @@
  * Copyright (C) 2006 Steven Dake ([email protected])
  *
  * This software licensed under BSD license, the text of which follows:
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  *
@@ -34,13 +34,15 @@
 /*
  * Write data of length data_len into the section name for ckpt_handle
  */
-int lcr_ckpt_section_write (void *ckpt_handle, char *name, void *data, int 
data_len);
+int lcr_ckpt_section_write (void *ckpt_handle, const char *name,
+                           const void *data, size_t data_len);

 /*
- * Read the section name into data with data len.  Returned in data_len is the 
+ * Read the section name into data with data len.  Returned in data_len is the
  * actual data read from ckpt_handle.
  */
-int lcr_ckpt_section_read (void *ckpt_handle, char *name, void *data, int 
*data_len);
+int lcr_ckpt_section_read (void *ckpt_handle, const char *name,
+                          void *data, size_t *data_len);

 /*
  * Initialize the section iterator to the first section
-- 
1.6.2.rc1.285.gc5f54

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to