aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-02 00:55:46 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-02 00:55:46 +0200
commit312c5e07318cd07d02c441a28bdc5d344f16e72b (patch)
tree92a2c04137de7f7507cd0109e5fb09a93a3a3ba1
parentwhitespace (diff)
downloadmds-312c5e07318cd07d02c441a28bdc5d344f16e72b.tar.gz
mds-312c5e07318cd07d02c441a28bdc5d344f16e72b.tar.bz2
mds-312c5e07318cd07d02c441a28bdc5d344f16e72b.tar.xz
typo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libmdsclient/address.c4
-rw-r--r--src/libmdsclient/address.h2
-rw-r--r--src/libmdsclient/comm.c6
-rw-r--r--src/libmdsclient/comm.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/libmdsclient/address.c b/src/libmdsclient/address.c
index 35af77c..7880e56 100644
--- a/src/libmdsclient/address.c
+++ b/src/libmdsclient/address.c
@@ -51,7 +51,7 @@ static int is_pzinteger(const char* restrict str)
/**
- * Set the socket adress, with the address family `AF_UNIX`
+ * Set the socket address, with the address family `AF_UNIX`
*
* @param out_address Output parameter for the socket address
* @param pathlen Pointer to a variable where the length of the pathname will be stored
@@ -157,7 +157,7 @@ static int set_af_inet(struct sockaddr** restrict out_address, socklen_t* restri
* RLIMIT_AS or RLIMIT_DATA limit described in getrlimit(2).
* @throws ENAMETOOLONG The filename of the target socket is too long
*/
-int libmds_parse_display_adress(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)
{
ssize_t pathlen = 0;
char* host;
diff --git a/src/libmdsclient/address.h b/src/libmdsclient/address.h
index 3a79373..7289c40 100644
--- a/src/libmdsclient/address.h
+++ b/src/libmdsclient/address.h
@@ -87,7 +87,7 @@ typedef struct libmds_display_address
* @throws ENAMETOOLONG The filename of the target socket is too long
*/
__attribute__((nonnull))
-int libmds_parse_display_adress(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
diff --git a/src/libmdsclient/comm.c b/src/libmdsclient/comm.c
index 0e1485b..6c72e9f 100644
--- a/src/libmdsclient/comm.c
+++ b/src/libmdsclient/comm.c
@@ -136,7 +136,7 @@ void libmds_connection_free(libmds_connection_t* restrict this)
*
* @throws EFAULT If the display server's address is not properly
* formatted, or specifies an unsupported protocol,
- * `libmds_parse_display_adress` can be used to
+ * `libmds_parse_display_address` can be used to
* figure out what is wrong.
* @throws ENAMETOOLONG The filename of the target socket is too long
* @throws Any error specified for socket(2)
@@ -155,7 +155,7 @@ int libmds_connection_establish(libmds_connection_t* restrict this, const char**
if ((*display == NULL) || (strchr(*display, ':') == NULL))
goto efault;
- if (libmds_parse_display_adress(*display, &addr) < 0)
+ if (libmds_parse_display_address(*display, &addr) < 0)
goto fail;
if (libmds_connection_establish_address(this, &addr) < 0)
@@ -181,7 +181,7 @@ int libmds_connection_establish(libmds_connection_t* restrict this, const char**
* @param this The connection descriptor, must not be `NULL`
* @param address The address to connect to, must not be `NULL`,
* and must be the result of a successful call to
- * `libmds_parse_display_adress`
+ * `libmds_parse_display_address`
* @return Zero on success, -1 on error. On error, `display`
* will point to `NULL` if MDS_DISPLAY is not defiend,
* otherwise, `errno` will have been set to describe
diff --git a/src/libmdsclient/comm.h b/src/libmdsclient/comm.h
index a854be8..2d70a3b 100644
--- a/src/libmdsclient/comm.h
+++ b/src/libmdsclient/comm.h
@@ -143,7 +143,7 @@ int libmds_connection_establish(libmds_connection_t* restrict this, const char**
* @param this The connection descriptor, must not be `NULL`
* @param address The address to connect to, must not be `NULL`,
* and must be the result of a successful call to
- * `libmds_parse_display_adress`
+ * `libmds_parse_display_address`
* @return Zero on success, -1 on error. On error, `display`
* will point to `NULL` if MDS_DISPLAY is not defiend,
* otherwise, `errno` will have been set to describe