Commit 58726855 authored by Steven Murray's avatar Steven Murray
Browse files

CASTOR-5103 RFE: Improve the const correctness of Cns_modifyclass()

Fixed.
parent be892400
......@@ -269,7 +269,7 @@ EXTERN_C int Cns_lastfseq (const char *, int, struct Cns_segattrs *);
EXTERN_C int Cns_bulkexist (const char *, u_signed64 *, int *);
EXTERN_C int Cns_mkdir (const char *, mode_t);
EXTERN_C int Cns_mkdirg (const char *, const char *, mode_t);
EXTERN_C int Cns_modifyclass (char *, int, char *, struct Cns_fileclass *);
EXTERN_C int Cns_modifyclass (const char *, int, const char *, const struct Cns_fileclass *);
EXTERN_C int Cns_openx (const uid_t, const gid_t, const char *, const int, const mode_t, const int, struct Cns_fileid *, struct Cns_filestatcs *, u_signed64 *);
EXTERN_C Cns_DIR *Cns_opendir (const char *);
EXTERN_C Cns_DIR *Cns_opendirg (const char *, const char *);
......
......@@ -16,7 +16,7 @@
#include "serrno.h"
int
Cns_modifyclass(char *server, int classid, char *class_name, struct Cns_fileclass *Cns_fileclass)
Cns_modifyclass(const char *server, int classid, const char *class_name, const struct Cns_fileclass *Cns_fileclass)
{
int c;
char func[16];
......
......@@ -9,10 +9,10 @@ Cns_modifyclass \- modify an existing fileclass definition in the name server
.br
\fB#include "Cns_api.h"\fR
.sp
.BI "int Cns_modifyclass (char *" server ,
.BI "int Cns_modifyclass (const char *" server ,
.BI "int " classid ,
.BI "char *" class_name ,
.BI "struct Cns_fileclass *" Cns_fileclass )
.BI "const char *" class_name ,
.BI "const struct Cns_fileclass *" Cns_fileclass )
.SH DESCRIPTION
.B Cns_modifyclass
modifies an existing fileclass definition in the name server.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment