summaryrefslogtreecommitdiff
path: root/dbus/dbus-sysdeps-unix.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-02-08 14:25:08 +0400
committerSimon McVittie <smcv@collabora.com>2022-07-15 16:26:18 +0100
commit0cf03ce49b81f8bed6ba65a4dd438a65844a369d (patch)
tree53e080866b9f208461fcaeca0023cdcc239f499b /dbus/dbus-sysdeps-unix.c
parent2137f511db6c71319c78d6b980ab2fc0cff6da58 (diff)
downloaddbus-0cf03ce49b81f8bed6ba65a4dd438a65844a369d.tar.gz
dbus: move _DBUS_MAX_SUN_PATH_LENGTH to sysdeps.h
Share the same constant for all systems. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'dbus/dbus-sysdeps-unix.c')
-rw-r--r--dbus/dbus-sysdeps-unix.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c
index fc0a4777..18bd1282 100644
--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -935,21 +935,6 @@ _dbus_write_two (int fd,
#endif /* !HAVE_WRITEV */
}
-#define _DBUS_MAX_SUN_PATH_LENGTH 99
-
-/**
- * @def _DBUS_MAX_SUN_PATH_LENGTH
- *
- * Maximum length of the path to a UNIX domain socket,
- * sockaddr_un::sun_path member. POSIX requires that all systems
- * support at least 100 bytes here, including the nul termination.
- * We use 99 for the max value to allow for the nul.
- *
- * We could probably also do sizeof (addr.sun_path)
- * but this way we are the same on all platforms
- * which is probably a good idea.
- */
-
/**
* Creates a socket and connects it to the UNIX domain socket at the
* given path. The connection fd is returned, and is set up as