]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Retire some unused (or nearly unused) macros.
authorNick Mathewson <nickm@torproject.org>
Tue, 3 Jul 2018 14:31:19 +0000 (10:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 3 Jul 2018 14:31:19 +0000 (10:31 -0400)
src/lib/cc/compat_compiler.h
src/lib/net/nettypes.h

index c1621724d2986d6bea39c83d140480bdedf9b1a4..a043ae809c0f0fd681c97a5b6df5949fcbb94972 100644 (file)
 #endif
 
 #define U64_PRINTF_ARG(a) ((uint64_t)a)
-#define U64_SCANF_ARG(a) (a)
 #define U64_LITERAL(n) UINT64_C(n)
 #define I64_PRINTF_ARG(a) ((int64_t)a)
-#define I64_SCANF_ARG(a) (a)
 #define I64_LITERAL(n) INT64_C(n)
 #define U64_FORMAT "%"PRIu64
 #define I64_FORMAT "%"PRId64
-#define INTPTR_T_FORMAT "%"PRIuPTR
 
 /** Macro: yield a pointer to the field at position <b>off</b> within the
  * structure <b>st</b>.  Example:
index 9bae70d5f8b3d0629a2702598846ba21b1851914..f21237436859a72dd60acf96696140f09f64582a 100644 (file)
@@ -23,7 +23,7 @@ typedef int socklen_t;
  * any inadvertent checks for the socket being <= 0 or > 0 will probably
  * still work. */
 #define tor_socket_t intptr_t
-#define TOR_SOCKET_T_FORMAT INTPTR_T_FORMAT
+#define TOR_SOCKET_T_FORMAT "%"PRIuPTR
 #define SOCKET_OK(s) ((SOCKET)(s) != INVALID_SOCKET)
 #define TOR_INVALID_SOCKET INVALID_SOCKET
 #else /* !(defined(_WIN32)) */