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

CASTOR-5105 RFE: Improve the const correctness of Cns_deleteclass()

Fixed.
parent a0a86056
......@@ -246,7 +246,7 @@ EXTERN_C int Cns_closedir (Cns_DIR *);
EXTERN_C int Cns_creat (const char *, mode_t);
EXTERN_C int Cns_creatx (const char *, mode_t, struct Cns_fileid *);
EXTERN_C int Cns_delcomment (const char *);
EXTERN_C int Cns_deleteclass (char *, int, char *);
EXTERN_C int Cns_deleteclass (const char *, int, const char *);
EXTERN_C int Cns_dropsegs (const char *, struct Cns_fileid *);
EXTERN_C int Cns_delsegbycopyno (const char *, struct Cns_fileid *, int);
EXTERN_C int Cns_du (const char *, int, u_signed64 *, u_signed64 *);
......
......@@ -16,7 +16,7 @@
#include "serrno.h"
int
Cns_deleteclass(char *server, int classid, char *class_name)
Cns_deleteclass(const char *server, int classid, const char *class_name)
{
int c;
char func[16];
......
......@@ -9,9 +9,9 @@ Cns_deleteclass \- delete a fileclass definition in the name server
.br
\fB#include "Cns_api.h"\fR
.sp
.BI "int Cns_deleteclass (char *" server ,
.BI "int Cns_deleteclass (const char *" server ,
.BI "int " classid ,
.BI "char *" class_name )
.BI "const char *" class_name )
.SH DESCRIPTION
.B Cns_deleteclass
deletes a 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