[Reconnoiter-devel] [reconnoiter commit] r733 - trunk/src

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Tue May 26 15:13:46 EDT 2009


Author: mark
Date: 2009-05-26 15:13:46 -0400 (Tue, 26 May 2009)
New Revision: 733

Modified:
   trunk/src/stratcon_datastore.c
Log:
Make C code more portable, refs #137

Modified: trunk/src/stratcon_datastore.c
===================================================================
--- trunk/src/stratcon_datastore.c	2009-05-26 16:30:33 UTC (rev 732)
+++ trunk/src/stratcon_datastore.c	2009-05-26 19:13:46 UTC (rev 733)
@@ -268,8 +268,8 @@
     int rv;
     int8_t family;
     struct sockaddr *sin;
-    struct sockaddr_in sin4 = { sin_family: AF_INET };
-    struct sockaddr_in6 sin6 = { sin6_family: AF_INET6 };
+    struct sockaddr_in sin4 = { .sin_family = AF_INET };
+    struct sockaddr_in6 sin6 = { .sin6_family = AF_INET6 };
     char *remote, *id, *target, *module, *name;
     PG_GET_STR_COL(remote, i, "remote_address");
     PG_GET_STR_COL(id, i, "id");



More information about the Reconnoiter-devel mailing list