Skip to content

Commit

Permalink
const struct dirent
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1148 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
levsa committed Apr 20, 2004
1 parent 4f7ce86 commit 8c67c34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modeq/runtime/systemimpl.c
Expand Up @@ -22,8 +22,8 @@

#ifndef HAVE_SCANDIR

typedef int _file_select_func_type(struct dirent *);
typedef int _file_compar_func_type(struct dirent **, struct dirent **);
typedef int _file_select_func_type(const struct dirent *);
typedef int _file_compar_func_type(const struct dirent **, const struct dirent **);

void reallocdirents(struct dirent ***entries,
unsigned int oldsize,
Expand Down Expand Up @@ -310,7 +310,7 @@ RML_END_LABEL

char *select_from_dir;

int file_select_directories(struct dirent *entry)
int file_select_directories(const struct dirent *entry)
{
char fileName[MAXPATHLEN];
int res;
Expand Down Expand Up @@ -350,7 +350,7 @@ RML_BEGIN_LABEL(System__sub_5fdirectories)
}
RML_END_LABEL

int file_select_mo(struct dirent *entry)
int file_select_mo(const struct dirent *entry)
{
char fileName[MAXPATHLEN];
int res; char* ptr;
Expand Down

0 comments on commit 8c67c34

Please sign in to comment.