Expanded tabs in all source files. Added vim/emacs local variables
[yaz-moved-to-github.git] / src / tpath.c
index 45d0784..38d66ef 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * Copyright (c) 1995-2004, Index Data.
+ * Copyright (C) 1995-2005, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: tpath.c,v 1.3 2004-11-18 15:18:14 heikki Exp $
+ * $Id: tpath.c,v 1.6 2005-06-25 15:46:06 adam Exp $
  */
 /**
  * \file tpath.c
@@ -18,7 +18,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <yaz/tpath.h>
-#include <yaz/ylog.h>
+#include <yaz/log.h>
 
 FILE *yaz_path_fopen(const char *path, const char *name, const char *mode)
 {
@@ -37,7 +37,7 @@ FILE *yaz_fopen(const char *path, const char *name, const char *mode,
 
     for(;;)
     {
-       FILE *f;
+        FILE *f;
 
         const char *path_sep = 0;
         size_t len = 0;
@@ -71,8 +71,8 @@ FILE *yaz_fopen(const char *path, const char *name, const char *mode,
                 spath[slen++] = '/';
         }
         strcpy (spath+slen, name);
-       if ((f = fopen(spath, mode)))
-           return f;
+        if ((f = fopen(spath, mode)))
+            return f;
         
         if (!path_sep)
             break;
@@ -93,3 +93,11 @@ int yaz_is_abspath (const char *p)
 #endif
     return 0;
 }
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+