[pisa-src] r1423 - in trunk/pairing: common_headers.c common_headers.h
- From: Thomas Jansen <mithi@xxxxxxxxx>
- To: pisa-src@xxxxxxxxxxxxx
- Date: Thu, 29 Oct 2009 17:05:28 +0100
Author: tjansen
Date: Thu Oct 29 17:05:27 2009
New Revision: 1423
Log:
Const for create_error_struct.
Modified:
trunk/pairing/common_headers.c
trunk/pairing/common_headers.h
Modified: trunk/pairing/common_headers.c
==============================================================================
--- trunk/pairing/common_headers.c Thu Oct 29 17:03:20 2009 (r1422)
+++ trunk/pairing/common_headers.c Thu Oct 29 17:05:27 2009 (r1423)
@@ -22,7 +22,7 @@
*
* @return A pointer to the header_general structure. Returns NULL on error.
*/
-header_general* create_error_struct(int error_type, char *error_string)
+header_general* create_error_struct(int error_type, const char *error_string)
{
if (error_string == NULL)
{
Modified: trunk/pairing/common_headers.h
==============================================================================
--- trunk/pairing/common_headers.h Thu Oct 29 17:03:20 2009 (r1422)
+++ trunk/pairing/common_headers.h Thu Oct 29 17:05:27 2009 (r1423)
@@ -88,7 +88,7 @@
// Function prototypes
-header_general* create_error_struct(int error_type, char *error_string);
+header_general* create_error_struct(int error_type, const char *error_string);
void print_msg_info(int msg_type, int return_value);
#endif /* PISA_COMMON_HEADERS_H */
Other related posts:
- » [pisa-src] r1423 - in trunk/pairing: common_headers.c common_headers.h - Thomas Jansen