diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2013-09-27 14:00:55 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2013-09-27 14:00:55 -0400 |
commit | f4d43d7b7d23c6445f099c28e156f0cffdaae000 (patch) | |
tree | 033c1dbaa4101bbd34637e68d6a2b1c7d5c53ab8 /include/litmus.h | |
parent | 85cc826d76ad8bcfeb675710c49c410583cc86a9 (diff) |
Fix for C++: 'namespace' renamed to 'name_space'
Renames the 'namespace' parameter to litmus_open_lock() forard
declaration in litmus.h to 'name_space'. This allows litmus.h
to be compiled by a C++ compiler. (Note: Using 'extern "C" {}'
does not work as an alternative solution.)
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/litmus.h b/include/litmus.h index ef3fef3..dde5469 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -71,7 +71,7 @@ static inline int od_open(int fd, obj_type_t type, int obj_id) | |||
71 | int litmus_open_lock( | 71 | int litmus_open_lock( |
72 | obj_type_t protocol, /* which locking protocol to use, e.g., FMLP_SEM */ | 72 | obj_type_t protocol, /* which locking protocol to use, e.g., FMLP_SEM */ |
73 | int lock_id, /* numerical id of the lock, user-specified */ | 73 | int lock_id, /* numerical id of the lock, user-specified */ |
74 | const char* namespace, /* path to a shared file */ | 74 | const char* name_space, /* path to a shared file */ |
75 | void *config_param); /* any extra info needed by the protocol (such | 75 | void *config_param); /* any extra info needed by the protocol (such |
76 | * as CPU under SRP and PCP), may be NULL */ | 76 | * as CPU under SRP and PCP), may be NULL */ |
77 | 77 | ||