summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/srcclean.cpp
diff options
context:
space:
mode:
author Jean-François DEL NERO <jeanfrancoisdelnero@free.fr>2015-12-28 11:27:47 +0100
committer Jean-François DEL NERO <jeanfrancoisdelnero@free.fr>2015-12-28 11:27:47 +0100
commit2a5e044fc23624a388bdb5f82ef9c11cbed6a9c7 (patch)
treeb468f54cdcbb7252d14790a7a013b138b1bd9b03 /src/tools/srcclean.cpp
parent077fe7ad89d65bbeafde141c9b3f71ca8df42f1c (diff)
parent11fcbaa28583023ea93a8f0c1f3fb9082d3295ab (diff)
Merge https://github.com/mamedev/mame
# Conflicts: # src/devices/video/ef9365.cpp
Diffstat (limited to 'src/tools/srcclean.cpp')
-rw-r--r--src/tools/srcclean.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/srcclean.cpp b/src/tools/srcclean.cpp
index 24db9bca880..0af298a4441 100644
--- a/src/tools/srcclean.cpp
+++ b/src/tools/srcclean.cpp
@@ -39,7 +39,7 @@ static int le_convert(char *buffer, int size)
/* brute force */
*end = 0;
pos = strchr(buffer, 0x0d);
- while (pos != NULL)
+ while (pos != nullptr)
{
memmove(pos, pos+1,end - pos + 1);
size--;
@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
/* read the file */
file = fopen(argv[1], "rb");
- if (file == NULL)
+ if (file == nullptr)
{
fprintf(stderr, "Can't open %s\n", argv[1]);
return 1;
@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
fclose(file);
/* check whether we have dos line endings and are in unix mode */
- if (unix_le && (strchr((char *) original, 0x0d) != NULL))
+ if (unix_le && (strchr((char *) original, 0x0d) != nullptr))
fixed_dos_style = 1;
/* determine if we are a C file */