Skip to content

Commit

Permalink
Update ListFiles.cpp
Browse files Browse the repository at this point in the history
The call to scandir in ListFiles below expects noCurAndParDir to have a const arg. 
This fixes it.
  • Loading branch information
larsr committed Apr 6, 2013
1 parent 4fae439 commit ca06688
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ListFiles.cpp
@@ -1,4 +1,3 @@

#include "ListFiles.h"

#include <unistd.h>
Expand All @@ -10,7 +9,7 @@
#include <sys/stat.h>

//-------------------------------------------------------------------------
static int noCurAndParDir(struct dirent *entry)
static int noCurAndParDir(const struct dirent *entry)
{
if ((strncmp(entry->d_name, ".", 256) == 0) || (strncmp(entry->d_name, "..", 256) == 0))
return 0;
Expand Down

0 comments on commit ca06688

Please sign in to comment.