Commits

BarryFSmith committed e2fc02c

added const to char arguement

Comments (0)

Files changed (2)

include/petscsys.h

 PETSC_EXTERN PetscErrorCode PetscGetTmp(MPI_Comm,char[],size_t);
 PETSC_EXTERN PetscErrorCode PetscFileRetrieve(MPI_Comm,const char[],char[],size_t,PetscBool *);
 PETSC_EXTERN PetscErrorCode PetscLs(MPI_Comm,const char[],char[],size_t,PetscBool *);
-PETSC_EXTERN PetscErrorCode PetscOpenSocket(char*,int,int*);
+PETSC_EXTERN PetscErrorCode PetscOpenSocket(const char[],int,int*);
 PETSC_EXTERN PetscErrorCode PetscWebServe(MPI_Comm,int);
 
 /*

src/sys/classes/viewer/impls/socket/send.c

 
 .seealso:   PetscSocketListen(), PetscSocketEstablish()
 */
-PetscErrorCode  PetscOpenSocket(char *hostname,int portnum,int *t)
+PetscErrorCode  PetscOpenSocket(const char hostname[],int portnum,int *t)
 {
   struct sockaddr_in sa;
   struct hostent     *hp;