Changeset: 82a6d4cd2172 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=82a6d4cd2172
Modified Files:
gdk/gdk_storage.c
Branch: default
Log Message:
A little cleanup.
diffs (34 lines):
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -53,7 +53,7 @@
char *
GDKfilepath(int farmid, const char *dir, const char *name, const char *ext)
{
- char sep[2];
+ const char *sep;
size_t pathlen;
char *path;
@@ -67,10 +67,9 @@ GDKfilepath(int farmid, const char *dir,
if (dir && *dir == DIR_SEP)
dir++;
if (dir == NULL || dir[0] == 0 || dir[strlen(dir) - 1] == DIR_SEP) {
- sep[0] = 0;
+ sep = "";
} else {
- sep[0] = DIR_SEP;
- sep[1] = 0;
+ sep = DIR_SEP_STR;
}
pathlen = (farmid == NOFARM ? 0 : strlen(BBPfarms[farmid].dirname) + 1)
+
(dir ? strlen(dir) : 0) + strlen(sep) + strlen(name) +
@@ -250,7 +249,7 @@ GDKfilelocate(int farmid, const char *nm
}
FILE *
-GDKfileopen(int farmid, const char * dir, const char *name, const char
*extension, const char *mode)
+GDKfileopen(int farmid, const char *dir, const char *name, const char
*extension, const char *mode)
{
char *path;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list