Skip to content
Snippets Groups Projects
Commit ec00e1af authored by Steven Murray's avatar Steven Murray
Browse files

CASTOR-5104 RFE: Improve the const correctness of Cns_enterclass()

Fixed.
parent 18291b05
Branches
Tags
No related merge requests found
......@@ -252,7 +252,7 @@ EXTERN_C int Cns_delsegbycopyno (const char *, struct Cns_fileid *, int);
EXTERN_C int Cns_du (const char *, int, u_signed64 *, u_signed64 *);
EXTERN_C int Cns_endsess ();
EXTERN_C int Cns_endtrans ();
EXTERN_C int Cns_enterclass (char *, struct Cns_fileclass *);
EXTERN_C int Cns_enterclass (const char *, const struct Cns_fileclass *);
EXTERN_C int Cns_errmsg (char *, char *, ...);
EXTERN_C int Cns_getacl (const char *, int, struct Cns_acl *);
EXTERN_C int Cns_getcomment (const char *, char *);
......
......@@ -16,7 +16,7 @@
#include "serrno.h"
int
Cns_enterclass(char *server, struct Cns_fileclass *Cns_fileclass)
Cns_enterclass(const char *server, const struct Cns_fileclass *Cns_fileclass)
{
int c;
char func[16];
......
......@@ -9,8 +9,8 @@ Cns_enterclass \- define a new fileclass in the name server
.br
\fB#include "Cns_api.h"\fR
.sp
.BI "int Cns_enterclass (char *" server ,
.BI "struct Cns_fileclass *" Cns_fileclass )
.BI "int Cns_enterclass (const char *" server ,
.BI "const struct Cns_fileclass *" Cns_fileclass )
.SH DESCRIPTION
.B Cns_enterclass
defines a new fileclass in the name server.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment