Procházet zdrojové kódy

lcr_ckpt.h: unused file: const/size_t

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2025 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering před 17 roky
rodič
revize
23c1e2598c
1 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. 6 4
      include/corosync/lcr/lcr_ckpt.h

+ 6 - 4
include/corosync/lcr/lcr_ckpt.h

@@ -2,7 +2,7 @@
  * Copyright (C) 2006 Steven Dake (sdake@redhat.com)
  * Copyright (C) 2006 Steven Dake (sdake@redhat.com)
  *
  *
  * This software licensed under BSD license, the text of which follows:
  * This software licensed under BSD license, the text of which follows:
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * 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
  * 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.
  * 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
  * Initialize the section iterator to the first section