raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] raindrops 0.11.0 - minor fixes improvements
@ 2013-04-20 23:14  6% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2013-04-20 23:14 UTC (permalink / raw)
  To: raindrops

Changes:

Eric Wong (7):
      raindrops: favor configured processor count over online count
      watcher: set Content-Type via assignment
      Linux::TCP_Info: implement #get! instance method
      linux_inet_diag: avoid unnecessary sockaddr initialization
      .gitignore: add .rbx
      switch back to gemspec development dependencies
      linux_inet_diag: better align listener_stats struct

Lawrence Pit (1):
      Watcher: Use relative paths in HTML links

* http://raindrops.bogomips.org/
* raindrops@librelist.org
* git://bogomips.org/raindrops.git
* http://raindrops.bogomips.org/NEWS.atom.xml

-- 
Eric Wong


^ permalink raw reply	[relevance 6%]

* [PATCH 1/3] linux_inet_diag: avoid unnecessary sockaddr initialization
@ 2013-04-13  2:25  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2013-04-13  2:25 UTC (permalink / raw)
  To: raindrops

This initialization was unnecessary and avoids the following
warning with -Wmissing-braces on gcc 4.7.2-5 on Debian testing:

  linux_inet_diag.c: In function ‘stats_for’:
  linux_inet_diag.c:192:8: warning: missing braces around initializer [-Wmissing-braces]
  linux_inet_diag.c:192:8: warning: (near initialization for ‘sa.ss’) [-Wmissing-braces]
---
 ext/raindrops/linux_inet_diag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/raindrops/linux_inet_diag.c b/ext/raindrops/linux_inet_diag.c
index 89206bf..d94dafd 100644
--- a/ext/raindrops/linux_inet_diag.c
+++ b/ext/raindrops/linux_inet_diag.c
@@ -189,7 +189,7 @@ static struct listen_stats *stats_for(st_table *table, struct inet_diag_msg *r)
 	struct listen_stats *stats;
 	size_t keylen;
 	size_t portlen = sizeof("65535");
-	union any_addr sa = { 0 };
+	union any_addr sa;
 	socklen_t len = sizeof(struct sockaddr_storage);
 	int rc;
 	int flags = NI_NUMERICHOST | NI_NUMERICSERV;
-- 
1.8.2.1.366.ge2af9e3



^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2013-04-13  2:25  7% [PATCH 1/3] linux_inet_diag: avoid unnecessary sockaddr initialization Eric Wong
2013-04-20 23:14  6% [ANN] raindrops 0.11.0 - minor fixes improvements Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/raindrops.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).