]> git.cworth.org Git - notmuch/blobdiff - compat/canonicalize_file_name.c
compat: rename {,notmuch_}canonicalize_file_name
[notmuch] / compat / canonicalize_file_name.c
diff --git a/compat/canonicalize_file_name.c b/compat/canonicalize_file_name.c
deleted file mode 100644 (file)
index 000f9e7..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "compat.h"
-#include <limits.h>
-#undef _GNU_SOURCE
-#include <stdlib.h>
-
-char *
-canonicalize_file_name (const char *path)
-{
-#ifdef PATH_MAX
-    char *resolved_path =  malloc (PATH_MAX + 1);
-    if (resolved_path == NULL)
-       return NULL;
-
-    return realpath (path, resolved_path);
-#else
-#error undefined PATH_MAX _and_ missing canonicalize_file_name not supported
-#endif
-}