summaryrefslogtreecommitdiff
path: root/src/base/main.c
diff options
context:
space:
mode:
authorDusan Durech <dusan@debian.(none)>2008-11-11 23:39:21 +0100
committerDusan Durech <dusan@debian.(none)>2008-11-11 23:39:21 +0100
commit957f3411170ca1d5f30ee2e2c4e25393195cce75 (patch)
tree18567d663d6d759d447b65458a410f426dae9044 /src/base/main.c
parentde05256afe45ad24cda83ed1e2cf873c97de132c (diff)
modification coding stile :)
Diffstat (limited to 'src/base/main.c')
-rw-r--r--src/base/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/main.c b/src/base/main.c
index 6d36cd7..fce5a9f 100644
--- a/src/base/main.c
+++ b/src/base/main.c
@@ -84,8 +84,10 @@ char *getString(int n)
int *newInt(int x)
{
int *new;
+
new = malloc(sizeof(int));
*new = x;
+
return new;
}
@@ -110,9 +112,9 @@ int isFillPath(const char *path)
assert(path != NULL);
#ifndef __WIN32__
- if (path[0] == '/') // for Unix-like systems ;)
+ if (path[0] == '/') // for Unix-like systems ;)
#else
- if (path[1] == ':') // for Windows-like systems ;)
+ if (path[1] == ':') // for Windows-like systems ;)
#endif
{
return 1;