[Pvfs2-cvs] commit by pw in pvfs2/include: pvfs2-debug.h
pvfs2-types.h
CVS commit program
cvs at parl.clemson.edu
Mon May 29 12:21:10 EDT 2006
Update of /projects/cvsroot/pvfs2/include
In directory parlweb1:/tmp/cvs-serv19103/include
Modified Files:
pvfs2-debug.h pvfs2-types.h
Log Message:
apply const to non-modifiable strings
Index: pvfs2-debug.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-debug.h,v
diff -u -p -p -u -r1.48 -r1.49
--- pvfs2-debug.h 4 Apr 2006 04:47:08 -0000 1.48
+++ pvfs2-debug.h 29 May 2006 16:21:10 -0000 1.49
@@ -78,7 +78,7 @@
uint64_t PVFS_debug_eventlog_to_mask(
const char *event_logging);
-char *PVFS_debug_get_next_debug_keyword(
+const char *PVFS_debug_get_next_debug_keyword(
int position);
#endif /* __PVFS2_DEBUG_H */
Index: pvfs2-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-types.h,v
diff -u -p -p -u -r1.127 -r1.128
--- pvfs2-types.h 12 Apr 2006 15:26:46 -0000 1.127
+++ pvfs2-types.h 29 May 2006 16:21:10 -0000 1.128
@@ -393,8 +393,8 @@ enum PVFS_server_mode
* that indicates where the error came from. These are |'d together.
*/
int PVFS_strerror_r(int errnum, char *buf, int n);
-void PVFS_perror(char *text, int retcode);
-void PVFS_perror_gossip(char* text, int retcode);
+void PVFS_perror(const char *text, int retcode);
+void PVFS_perror_gossip(const char* text, int retcode);
PVFS_error PVFS_get_errno_mapping(PVFS_error error);
/* special bits used to differentiate PVFS error codes from system
@@ -595,7 +595,7 @@ PVFS_error PINT_errno_mapping[PVFS_ERRNO
EACCES, /* 58 */ \
0 /* PVFS_ERRNO_MAX */ \
}; \
-char *PINT_non_errno_strerror_mapping[] = { \
+const char *PINT_non_errno_strerror_mapping[] = { \
"Success", /* 0 */ \
"Operation cancelled (possibly due to timeout)", \
"Device initialization failed", \
@@ -628,7 +628,7 @@ PVFS_error PINT_non_errno_mapping[] = {
#define DECLARE_ERRNO_MAPPING_AND_FN() \
extern PVFS_error PINT_errno_mapping[]; \
extern PVFS_error PINT_non_errno_mapping[]; \
-extern char *PINT_non_errno_strerror_mapping[]; \
+extern const char *PINT_non_errno_strerror_mapping[]; \
PVFS_error PVFS_get_errno_mapping(PVFS_error error) \
{ \
PVFS_error ret = error, mask = 0; \
More information about the Pvfs2-cvs
mailing list