pop3: Reworked authentication type constants
authorSteve Holme <steve_holme@hotmail.com>
Sat, 13 Apr 2013 15:14:01 +0000 (16:14 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 13 Apr 2013 15:20:48 +0000 (16:20 +0100)
... to use left-shifted values, like those defined in curl.h, rather
than 16-bit hexadecimal values.

lib/pop3.h

index d594f6c..0186e04 100644 (file)
@@ -85,9 +85,9 @@ extern const struct Curl_handler Curl_handler_pop3;
 extern const struct Curl_handler Curl_handler_pop3s;
 
 /* Authentication type flags */
-#define POP3_TYPE_CLEARTEXT 0x0001
-#define POP3_TYPE_APOP      0x0002
-#define POP3_TYPE_SASL      0x0004
+#define POP3_TYPE_CLEARTEXT (1 << 0)
+#define POP3_TYPE_APOP      (1 << 1)
+#define POP3_TYPE_SASL      (1 << 2)
 
 /* Authentication type values */
 #define POP3_TYPE_NONE      0