]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: fix comment typos
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Nov 2023 08:51:14 +0000 (09:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Nov 2023 11:35:59 +0000 (12:35 +0100)
Five separate ones, found by codespell

Closes #12390

lib/cfilters.h
lib/http.c
lib/rtsp.c
lib/socks.c
src/tool_operate.h

index 409c38b9a59648735ee191c0e3356ddaa6f92766..09a3f162acfc275caf9fb03665484d5f91b2d331 100644 (file)
@@ -382,7 +382,7 @@ bool Curl_conn_data_pending(struct Curl_easy *data,
 curl_socket_t Curl_conn_get_socket(struct Curl_easy *data, int sockindex);
 
 /**
- * Tell filters to forget about the soket at sockindex.
+ * Tell filters to forget about the socket at sockindex.
  */
 void Curl_conn_forget_socket(struct Curl_easy *data, int sockindex);
 
index 272cb093b86d5d0411579b910d4dba7ccd7c96f2..091a056023f1fbcaa001125b53d0c4c91ed3d459 100644 (file)
@@ -1424,7 +1424,7 @@ CURLcode Curl_buffer_send(struct dynbuf *in,
      *   and install our own `data->state.fread_func` that
      *   on subsequent calls reads `in` empty.
      * - when the whisked away `in` is empty, the `fread_func`
-     *   is restored ot its original state.
+     *   is restored to its original state.
      * The problem is that `fread_func` can only return
      * `upload_buffer_size` lengths. If the send we do here
      * is larger and blocks, we do re-sending with smaller
index 36d7c874fa211ed03274852d0510e525eaa16728..bcadfd2dda826823d31cc8b7d8e90deb6b7913cc 100644 (file)
@@ -781,7 +781,7 @@ static CURLcode rtsp_rtp_readwrite(struct Curl_easy *data,
     goto out;
   }
 
-  /* If header parsing is not onging, extract RTP messsages */
+  /* If header parsing is not onging, extract RTP messages */
   if(!rtspc->in_header) {
     result = rtsp_filter_rtp(data, conn, buf, blen, in_body, &consumed);
     if(result)
index 489bc4649418a4746bbd1a533534e4ba3c606e5d..3a396de620ec6cc030c9e0f4fe2cc25800d8612b 100644 (file)
@@ -405,7 +405,7 @@ CONNECT_REQ_INIT:
       if(plen > 255) {
         /* there is no real size limit to this field in the protocol, but
            SOCKS5 limits the proxy user field to 255 bytes and it seems likely
-           that a longer field is either a mistake or malicous input */
+           that a longer field is either a mistake or malicious input */
         failf(data, "Too long SOCKS proxy user name");
         return CURLPX_LONG_USER;
       }
index 21a7f929d02b42317b81a2548bf91755fc693db4..4993b1c961f711d0dfd8b3a2b32604221fbc4709 100644 (file)
@@ -74,7 +74,7 @@ struct per_transfer {
 
   /* NULL or malloced */
   char *uploadfile;
-  char *errorbuffer; /* alloced and assigned while this is used for a
+  char *errorbuffer; /* allocated and assigned while this is used for a
                         transfer */
 };