- Rename getpty() to xgetpty() and adjust callers.
[oweals/busybox.git] / networking / sendmail.c
index 242bb0eafc498526bf7326713cbc453dfd60ca74..027656dd82d3d43f1a17221dda5de8419fe2021b 100644 (file)
@@ -187,7 +187,7 @@ static int smtp_checkp(const char *fmt, const char *param, int code)
        bb_error_msg_and_die("%s failed", msg);
 }
 
-static int inline smtp_check(const char *fmt, int code)
+static inline int smtp_check(const char *fmt, int code)
 {
        return smtp_checkp(fmt, NULL, code);
 }
@@ -224,7 +224,7 @@ static void pop3_checkr(const char *fmt, const char *param, char **ret)
        bb_error_msg_and_die("%s failed", msg);
 }
 
-static void inline pop3_check(const char *fmt, const char *param)
+static inline void pop3_check(const char *fmt, const char *param)
 {
        pop3_checkr(fmt, param, NULL);
 }
@@ -533,7 +533,7 @@ int sendgetmail_main(int argc ATTRIBUTE_UNUSED, char **argv)
                        // so we reuse md5 space instead of xzalloc(16*2+1)
 #define md5_hex ((uint8_t *)&md5)
 //                     uint8_t *md5_hex = (uint8_t *)&md5;
-                       *bin2hex(md5_hex, s, 16) = '\0';
+                       *bin2hex((char *)md5_hex, s, 16) = '\0';
                        // APOP
                        s = xasprintf("%s %s", opt_user, md5_hex);
 #undef md5_hex