summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-07-13 16:40:51 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-08-05 20:52:00 +0200
commit07d03d31456899a39f97425a3d09903d7a54ed3f (patch)
treefb602f75c0e61141cc3a7d8412d4cd874e89f97d /src/unix
parent662f90e6ecb6ad0576de89d0af8872eab678eb79 (diff)
downloadlibgit2-07d03d31456899a39f97425a3d09903d7a54ed3f.tar.gz
Introduce some consistency in definition/declaration ordering
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/posix.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/unix/posix.h b/src/unix/posix.h
index c428384e4..e4f3ac67a 100644
--- a/src/unix/posix.h
+++ b/src/unix/posix.h
@@ -13,12 +13,10 @@
typedef int GIT_SOCKET;
#define INVALID_SOCKET -1
-#define p_strcasecmp(s1, s2) strcasecmp(s1, s2)
-#define p_strncasecmp(s1, s2, c) strncasecmp(s1, s2, c)
-
#define p_lseek(f,n,w) lseek(f, n, w)
#define p_fstat(f,b) fstat(f, b)
#define p_lstat(p,b) lstat(p,b)
+#define p_stat(p,b) stat(p, b)
#define p_readlink(a, b, c) readlink(a, b, c)
#define p_symlink(o,n) symlink(o, n)
@@ -32,10 +30,11 @@ extern char *p_realpath(const char *, char *);
#define p_send(s,b,l,f) send(s,b,l,f)
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
+#define p_strcasecmp(s1, s2) strcasecmp(s1, s2)
+#define p_strncasecmp(s1, s2, c) strncasecmp(s1, s2, c)
#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
#define p_snprintf(b, c, f, ...) snprintf(b, c, f, __VA_ARGS__)
#define p_mkstemp(p) mkstemp(p)
-#define p_stat(p,b) stat(p, b)
#define p_chdir(p) chdir(p)
#define p_chmod(p,m) chmod(p, m)
#define p_rmdir(p) rmdir(p)