]> diplodocus.org Git - nmh/commitdiff
mts/smtp/smtp.h: Remove one-use rp_isbad() macro.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Apr 2017 17:37:15 +0000 (18:37 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Apr 2017 17:37:15 +0000 (18:37 +0100)
It just cast its argument to signed char, and the sole user can do that
itself a few lines later.

mts/smtp/smtp.h

index 6bf3f9e..8b6b32c 100644 (file)
@@ -171,14 +171,6 @@ char *rp_string (int);
 #define RP_USER (RP_BNO | RP_CUSR | '\000')
 
 
-/*
- * Macros to access reply info
- */
-
-/* get the entire return value */
-#define rp_gval(val)    ((signed char) (val))
-
-
 /*
  * MACHINE DEPENDENCY
  *
@@ -188,5 +180,5 @@ char *rp_string (int);
  */
 
 /* is return value negative? */
-#define rp_isbad(val)   (rp_gval (val) < 0)
+#define rp_isbad(val)   (((signed char)(val)) < 0)