Skip to content

Commit

Permalink
Merge pull request #57 from vinchona/typos
Browse files Browse the repository at this point in the history
Typos
  • Loading branch information
tronkko authored Feb 8, 2024
2 parents b9c499e + 81c3362 commit 2ffd07b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ Before making a pull request, please consider that:
3. Our code will be reviewed and edited by us. In particular, we may
reformat your code according to the [Linux Kernel Coding
Style](https://www.kernel.org/doc/html/v4.10/process/coding-style.html)


1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,3 @@ both [Cygwin](http://www.cygwin.com) and [MingW](http://www.mingw.org)
allow you to compile a great number of UNIX programs in Microsoft Windows.
They both provide a full Dirent API as well as many other UNIX APIs. MingW
can even be used for commercial applications!

2 changes: 1 addition & 1 deletion examples/du.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ list_directory(const char *dirname, int level)
char buffer[PATH_MAX + 2];
char *p = buffer;
char *end = &buffer[PATH_MAX];

/* Copy directory name to buffer */
const char *src = dirname;
while (p < end && *src != '\0') {
Expand Down
2 changes: 1 addition & 1 deletion examples/extension_lookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using namespace std;

int main(int argc, char *argv[])
int main(int argc, char *argv[])
{
string directory, extension;
string csvFiles[50];
Expand Down
4 changes: 2 additions & 2 deletions include/dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ _wclosedir(_WDIR *dirp)
/*
* Release search handle if we have one. Being able to handle
* partially initialized _WDIR structure allows us to use this
* function to handle errors occuring within _wopendir.
* function to handle errors occurring within _wopendir.
*/
if (dirp->handle != INVALID_HANDLE_VALUE) {
FindClose(dirp->handle);
Expand Down Expand Up @@ -926,7 +926,7 @@ _wseekdir(_WDIR *dirp, long loc)
{
if (!dirp)
return;

/* Directory must be open */
if (dirp->handle == INVALID_HANDLE_VALUE)
goto exit_failure;
Expand Down
2 changes: 1 addition & 1 deletion tests/t-symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ test_dirent(void)

closedir(dir);
#else
fprintf(stderr, "Skippped test_dirent\n");
fprintf(stderr, "Skipped test_dirent\n");
#endif
}

Expand Down

0 comments on commit 2ffd07b

Please sign in to comment.