Neels Hofmeyr has submitted this change and it was merged.

Change subject: comment: describe indent_cmp()
......................................................................


comment: describe indent_cmp()

Change-Id: Ia58c16d995f6751bdd69defe8a46665aee163f3d
---
M src/vty/command.c
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/vty/command.c b/src/vty/command.c
index 46c9fa2..a19d5db 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -2331,6 +2331,10 @@
        return str? strlen(str) : 0;
 }
 
+/*! Make sure the common length of strings a and b is identical, then compare 
their lengths. I.e., if a
+ * is longer than b, a must start with exactly b, and vice versa.
+ * \returns EINVAL on mismatch, -1 for a < b, 0 for a == b, 1 for a > b.
+ */
 static int indent_cmp(const char *a, const char *b)
 {
        size_t al, bl;

-- 
To view, visit https://gerrit.osmocom.org/3993
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia58c16d995f6751bdd69defe8a46665aee163f3d
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>

Reply via email to