aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorMax Horn2009-02-11 22:51:15 +0000
committerMax Horn2009-02-11 22:51:15 +0000
commitdc385c1fa154f189e1635c711402bee10f0c1862 (patch)
tree127fe9df7f3244bea72282118fa2dc1723c888f1 /backends/platform
parent15a56d9256d306cdefeac7b6072eeebb33e6b56a (diff)
downloadscummvm-rg350-dc385c1fa154f189e1635c711402bee10f0c1862.tar.gz
scummvm-rg350-dc385c1fa154f189e1635c711402bee10f0c1862.tar.bz2
scummvm-rg350-dc385c1fa154f189e1635c711402bee10f0c1862.zip
cleanup
svn-id: r36270
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/wince/missing/missing.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/backends/platform/wince/missing/missing.cpp b/backends/platform/wince/missing/missing.cpp
index 5f122e0c54..f63ad72298 100644
--- a/backends/platform/wince/missing/missing.cpp
+++ b/backends/platform/wince/missing/missing.cpp
@@ -291,8 +291,7 @@ struct dirent* readdir(DIR* dir) {
}
}
-int closedir(DIR* dir)
-{
+int closedir(DIR* dir) {
if (dir == NULL)
return 0;
@@ -306,11 +305,10 @@ int closedir(DIR* dir)
}
/* Make directory, Unix style */
-void mkdir(char* dirname, int mode)
-{
+void mkdir(char* dirname, int mode) {
char path[MAX_PATH+1];
TCHAR pathUnc[MAX_PATH+1];
- char* ptr;
+ char *ptr;
strncpy(path, dirname, MAX_PATH);
if (*path == '/')
*path = '\\';
@@ -327,10 +325,9 @@ void mkdir(char* dirname, int mode)
CreateDirectory(pathUnc, 0);
}
-char *strdup(const char *strSource)
-{
- char* buffer;
- size_z len = strlen(strSource)+1;
+char *strdup(const char *strSource) {
+ char *buffer;
+ size_z len = strlen(strSource) + 1;
buffer = (char*)malloc(len);
if (buffer)
memcpy(buffer, strSource, len);