From 25fc694a410043cf0fdb8725685e1426b3093d43 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 5 Sep 2017 10:05:27 +0000 Subject: [PATCH] examples/mime: minor example code fixes --- docs/examples/smtp-mail.c | 4 ++-- docs/examples/smtp-mime.c | 4 ++-- docs/examples/smtp-multi.c | 4 ++-- docs/examples/smtp-ssl.c | 4 ++-- docs/examples/smtp-tls.c | 4 ++-- docs/libcurl/curl_mime_type.3 | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/examples/smtp-mail.c b/docs/examples/smtp-mail.c index 315bb2cc5..1fabe4b4c 100644 --- a/docs/examples/smtp-mail.c +++ b/docs/examples/smtp-mail.c @@ -43,8 +43,8 @@ static const char *payload_text[] = { "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n", "To: " TO "\r\n", - "From: " FROM "(Example User)\r\n", - "Cc: " CC "(Another example User)\r\n", + "From: " FROM " (Example User)\r\n", + "Cc: " CC " (Another example User)\r\n", "Message-ID: \r\n", "Subject: SMTP example message\r\n", diff --git a/docs/examples/smtp-mime.c b/docs/examples/smtp-mime.c index c611ac437..dcd867f68 100644 --- a/docs/examples/smtp-mime.c +++ b/docs/examples/smtp-mime.c @@ -43,8 +43,8 @@ static const char *headers_text[] = { "Date: Tue, 22 Aug 2017 14:08:43 +0100", "To: " TO, - "From: " FROM "(Example User)", - "Cc: " CC "(Another example User)", + "From: " FROM " (Example User)", + "Cc: " CC " (Another example User)", "Message-ID: ", "Subject: example sending a MIME-formatted message", diff --git a/docs/examples/smtp-multi.c b/docs/examples/smtp-multi.c index 89e1d941e..b8951772c 100644 --- a/docs/examples/smtp-multi.c +++ b/docs/examples/smtp-multi.c @@ -44,8 +44,8 @@ static const char *payload_text[] = { "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n", "To: " TO "\r\n", - "From: " FROM "(Example User)\r\n", - "Cc: " CC "(Another example User)\r\n", + "From: " FROM " (Example User)\r\n", + "Cc: " CC " (Another example User)\r\n", "Message-ID: \r\n", "Subject: SMTP multi example message\r\n", diff --git a/docs/examples/smtp-ssl.c b/docs/examples/smtp-ssl.c index f01234083..019da7d09 100644 --- a/docs/examples/smtp-ssl.c +++ b/docs/examples/smtp-ssl.c @@ -44,8 +44,8 @@ static const char *payload_text[] = { "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n", "To: " TO "\r\n", - "From: " FROM "(Example User)\r\n", - "Cc: " CC "(Another example User)\r\n", + "From: " FROM " (Example User)\r\n", + "Cc: " CC " (Another example User)\r\n", "Message-ID: \r\n", "Subject: SMTP SSL example message\r\n", diff --git a/docs/examples/smtp-tls.c b/docs/examples/smtp-tls.c index c863e059b..671a80d09 100644 --- a/docs/examples/smtp-tls.c +++ b/docs/examples/smtp-tls.c @@ -44,8 +44,8 @@ static const char *payload_text[] = { "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n", "To: " TO "\r\n", - "From: " FROM "(Example User)\r\n", - "Cc: " CC "(Another example User)\r\n", + "From: " FROM " (Example User)\r\n", + "Cc: " CC " (Another example User)\r\n", "Message-ID: \r\n", "Subject: SMTP TLS example message\r\n", diff --git a/docs/libcurl/curl_mime_type.3 b/docs/libcurl/curl_mime_type.3 index aa6b5b27a..7a4c0eb3e 100644 --- a/docs/libcurl/curl_mime_type.3 +++ b/docs/libcurl/curl_mime_type.3 @@ -72,7 +72,7 @@ CURLE_OK or a CURL error code upon failure. curl_mime_filedata(part, "image.png"); /* content-type for this part */ - curl_mime_name(part, "image/png"); + curl_mime_type(part, "image/png"); /* set name */ curl_mime_name(part, "image", CURL_ZERO_TERMINATED);