[Olsr-dev] [PATCH v1 13/18] info: rename stripEOLs to stripTrailingWhitespace

Ferry Huberts (spam-protected)
Sat Dec 10 18:25:23 CET 2016


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/info/olsrd_info.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/info/olsrd_info.c b/lib/info/olsrd_info.c
index 8b58009..ab7e5ea 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -593,7 +593,7 @@ static char * skipLeadingWhitespace(char * requ, size_t *len) {
   return requ;
 }
 
-static char * stripEOLs(char * requ, size_t *len) {
+static char * stripTrailingWhitespace(char * requ, size_t *len) {
   if (!requ || !len || !*len) {
     return requ;
   }
@@ -818,12 +818,12 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
 
   req = cutAtFirstEOL(req, (size_t*) &rx_count);
 
-  req = stripEOLs(req, (size_t*) &rx_count);
+  req = stripTrailingWhitespace(req, (size_t*) &rx_count);
   req = skipLeadingWhitespace(req, (size_t*) &rx_count);
 
   req = parseRequest(req, (size_t*) &rx_count);
 
-  req = stripEOLs(req, (size_t*) &rx_count);
+  req = stripTrailingWhitespace(req, (size_t*) &rx_count);
   req = stripTrailingSlashes(req, (size_t*) &rx_count);
   req = skipLeadingWhitespace(req, (size_t*) &rx_count);
   req = skipMultipleSlashes(req, (size_t*) &rx_count);
-- 
2.9.3




More information about the Olsr-dev mailing list