Change in ...libosmocore[master]: MAXPATHLEN set if not defined

Hoernchen gerrit-no-reply at lists.osmocom.org
Tue Jul 16 19:35:51 UTC 2019


Hello Ruben Undheim,

I'd like you to do a code review. Please visit

    https://gerrit.osmocom.org/c/libosmocore/+/14797

to review the following change.


Change subject: MAXPATHLEN set if not defined
......................................................................

MAXPATHLEN set if not defined

Change-Id: I1dce8ace228814b5a7246a00b31309ab9461d266
---
M src/vty/command.c
M src/vty/vty.c
2 files changed, 10 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/97/14797/1

diff --git a/src/vty/command.c b/src/vty/command.c
index 454a10c..35169eb 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -47,6 +47,11 @@
 #include <osmocom/core/talloc.h>
 #include <osmocom/core/utils.h>
 
+#ifndef MAXPATHLEN
+  #define MAXPATHLEN 4096
+#endif
+
+
 /*! \addtogroup command
  *  @{
  *  VTY command handling
diff --git a/src/vty/vty.c b/src/vty/vty.c
index 98b332d..9a998eb 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -67,6 +67,11 @@
 #include <osmocom/vty/buffer.h>
 #include <osmocom/core/talloc.h>
 
+#ifndef MAXPATHLEN
+  #define MAXPATHLEN 4096
+#endif
+
+
 /* \addtogroup vty
  * @{
  * \file vty.c */

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/14797
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I1dce8ace228814b5a7246a00b31309ab9461d266
Gerrit-Change-Number: 14797
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Ruben Undheim <ruben.undheim at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190716/5e3e6721/attachment.html>


More information about the gerrit-log mailing list