aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsclient/address.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-11-05 00:09:50 +0100
committerMattias Andrée <maandree@kth.se>2017-11-05 00:09:50 +0100
commit9e8dec188d55ca1f0a3b33acab702ced8ed07a18 (patch)
treecbb43c22e72674dc672e645e6596358e3868568e /src/libmdsclient/address.h
parenttypo (diff)
downloadmds-9e8dec188d55ca1f0a3b33acab702ced8ed07a18.tar.gz
mds-9e8dec188d55ca1f0a3b33acab702ced8ed07a18.tar.bz2
mds-9e8dec188d55ca1f0a3b33acab702ced8ed07a18.tar.xz
Work on changing style, and an important typo fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libmdsclient/address.h')
-rw-r--r--src/libmdsclient/address.h91
1 files changed, 45 insertions, 46 deletions
diff --git a/src/libmdsclient/address.h b/src/libmdsclient/address.h
index 7d9089e..dab95db 100644
--- a/src/libmdsclient/address.h
+++ b/src/libmdsclient/address.h
@@ -27,50 +27,50 @@
*/
typedef struct libmds_display_address
{
- /**
- * The domain (protocol family), that is
- * the first argument for socket(2), a
- * value whose constant is prefixed PF_;
- * -1 if not detected
- */
- int domain;
-
- /**
- * The socket type, that is the second
- * argument for socket(2), a value whose
- * constant is prefixed SOCK_; -1 if not
- * detected
- */
- int type;
-
- /**
- * The protocol, that is the third
- * argument for socket(2), a value whose
- * constant is affixed PROTO_ (zero
- * for the default); -1 if not detected
- */
- int protocol;
-
- /**
- * The address, `NULL` if not detected,
- * you are responsible for freeing this
- */
- struct sockaddr* address;
-
- /**
- * The size of `address`, may be set
- * even if `address` is `NULL`
- */
- socklen_t address_len;
-
- /**
- * Code for an error that has occured
- * when parsing the address, whose
- * description can be retrieved using
- * `gia_strerror`, zero if none
- */
- int gai_error;
-
+ /**
+ * The domain (protocol family), that is
+ * the first argument for socket(2), a
+ * value whose constant is prefixed PF_;
+ * -1 if not detected
+ */
+ int domain;
+
+ /**
+ * The socket type, that is the second
+ * argument for socket(2), a value whose
+ * constant is prefixed SOCK_; -1 if not
+ * detected
+ */
+ int type;
+
+ /**
+ * The protocol, that is the third
+ * argument for socket(2), a value whose
+ * constant is affixed PROTO_ (zero
+ * for the default); -1 if not detected
+ */
+ int protocol;
+
+ /**
+ * The address, `NULL` if not detected,
+ * you are responsible for freeing this
+ */
+ struct sockaddr *address;
+
+ /**
+ * The size of `address`, may be set
+ * even if `address` is `NULL`
+ */
+ socklen_t address_len;
+
+ /**
+ * Code for an error that has occured
+ * when parsing the address, whose
+ * description can be retrieved using
+ * `gia_strerror`, zero if none
+ */
+ int gai_error;
+
} libmds_display_address_t;
@@ -87,8 +87,7 @@ typedef struct libmds_display_address
* @throws ENAMETOOLONG The filename of the target socket is too long
*/
__attribute__((nonnull))
-int libmds_parse_display_address(const char* restrict display, libmds_display_address_t* restrict address);
+int libmds_parse_display_address(const char *restrict display, libmds_display_address_t *restrict address);
#endif
-