public inbox for gwml@vger.gnuweeb.org
 help / color / mirror / Atom feed
From: Ahmad Gani <reyuki@gnuweeb.org>
To: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Cc: Ahmad Gani <reyuki@gnuweeb.org>,
	Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: [PATCH gwproxy v1] gwproxy: Remove trailing spaces
Date: Fri, 29 Aug 2025 15:07:58 +0700	[thread overview]
Message-ID: <20250829080811.599931-1-reyuki@gnuweeb.org> (raw)

Signed-off-by: Ahmad Gani <reyuki@gnuweeb.org>
---
 src/gwproxy/dns_cache.c |  2 +-
 src/gwproxy/dns_cache.h | 14 +++++++-------
 src/gwproxy/gwproxy.c   |  2 +-
 src/gwproxy/socks5.h    |  4 ++--
 4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/gwproxy/dns_cache.c b/src/gwproxy/dns_cache.c
index 1d52b452094a..0ea70e69be66 100644
--- a/src/gwproxy/dns_cache.c
+++ b/src/gwproxy/dns_cache.c
@@ -395,7 +395,7 @@ int gwp_dns_cache_insert(struct gwp_dns_cache *cache, const char *key,
 	return r;
 }
 
-int gwp_dns_cache_getent(struct gwp_dns_cache *cache, const char *key, 
+int gwp_dns_cache_getent(struct gwp_dns_cache *cache, const char *key,
 			 struct gwp_dns_cache_entry **ep)
 {
 	struct dns_cache_entry *de = NULL;
diff --git a/src/gwproxy/dns_cache.h b/src/gwproxy/dns_cache.h
index 7edbde34875a..3e691af2001b 100644
--- a/src/gwproxy/dns_cache.h
+++ b/src/gwproxy/dns_cache.h
@@ -49,7 +49,7 @@ struct gwp_dns_cache;
  * Initialize a DNS cache and fills the provided pointer with a new cache
  * instance. When the cache is no longer needed, it should be freed using
  * `gwp_dns_cache_free()`.
- * 
+ *
  * @param cache_p	Pointer to the cache pointer that will be initialized.
  * @param nr_buckets	Number of buckets for the hash map.
  * @return int		0 on success, negative error code on failure.
@@ -58,7 +58,7 @@ int gwp_dns_cache_init(struct gwp_dns_cache **cache_p, uint32_t nr_buckets);
 
 /**
  * Free the DNS cache and all its resources.
- * 
+ *
  * @param cache	The DNS cache to free.
  */
 void gwp_dns_cache_free(struct gwp_dns_cache *cache);
@@ -76,26 +76,26 @@ void gwp_dns_cache_housekeep(struct gwp_dns_cache *cache);
  * entry if it exists. It increments the reference count of the
  * entry, so it can be safely used even after the cache is freed
  * using `gwp_dns_cache_free()`.
- * 
+ *
  * `gwp_dns_cache_putent()` MUST be called to release the reference
  * count when the entry is no longer needed.
- * 
+ *
  * @param cache	The DNS cache to look up the entry in.
  * @param key 	The key to look up, typically a domain name.
  * @param ep	Pointer to a pointer that will be filled with the found entry.
  * @return int	0 on success, negative error code on failure.
- * 
+ *
  * Error codes:
  * -ENOENT: Entry not found.
  */
-int gwp_dns_cache_getent(struct gwp_dns_cache *cache, const char *key, 
+int gwp_dns_cache_getent(struct gwp_dns_cache *cache, const char *key,
 			 struct gwp_dns_cache_entry **ep);
 
 /**
  * Decrement the reference count of a DNS cache entry. If the
  * reference count reaches zero, the entry is freed. This function
  * should be called when the entry is no longer needed.
- * 
+ *
  * @param e	The DNS cache entry to put.
  */
 void gwp_dns_cache_putent(struct gwp_dns_cache_entry *e);
diff --git a/src/gwproxy/gwproxy.c b/src/gwproxy/gwproxy.c
index 7a90609dd5f1..3d277f7ee6f8 100644
--- a/src/gwproxy/gwproxy.c
+++ b/src/gwproxy/gwproxy.c
@@ -349,7 +349,7 @@ static int gwp_ctx_init_thread_sock(struct gwp_wrk *w,
 				    const struct gwp_sockaddr *ba)
 {
 	struct gwp_ctx *ctx = w->ctx;
-	int type = SOCK_STREAM | SOCK_CLOEXEC | 
+	int type = SOCK_STREAM | SOCK_CLOEXEC |
 			(ctx->ev_used == GWP_EV_EPOLL ? SOCK_NONBLOCK : 0);
 	struct gwp_cfg *cfg = &w->ctx->cfg;
 	socklen_t slen;
diff --git a/src/gwproxy/socks5.h b/src/gwproxy/socks5.h
index 079e0e2433c4..10201329b3ec 100644
--- a/src/gwproxy/socks5.h
+++ b/src/gwproxy/socks5.h
@@ -91,7 +91,7 @@ int gwp_socks5_ctx_init(struct gwp_socks5_ctx **ctx_p,
 
 /**
  * Free the resources associated with a SOCKS5 context.
- * 
+ *
  * @param ctx	The SOCKS5 context to free. If NULL, this function does
  * 		nothing.
  */
@@ -141,7 +141,7 @@ void gwp_socks5_conn_free(struct gwp_socks5_conn *conn);
  * 			written to `out_buf` or the required size if there
  * 			is not enough space.
  * @return		0 on success, or a negative error code on failure.
- * 
+ *
  * Error values:
  *
  * -ENOMEM:	Not enough memory to handle the request.
-- 
Ahmad Gani


             reply	other threads:[~2025-08-29  8:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-29  8:07 Ahmad Gani [this message]
2025-08-29  8:12 ` [PATCH gwproxy v1] gwproxy: Remove trailing spaces Ammar Faizi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250829080811.599931-1-reyuki@gnuweeb.org \
    --to=reyuki@gnuweeb.org \
    --cc=alviro.iskandar@gnuweeb.org \
    --cc=ammarfaizi2@gnuweeb.org \
    --cc=gwml@vger.gnuweeb.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox