PUD: rename a function
authorFerry Huberts <f.huberts@mindef.nl>
Wed, 26 Oct 2011 13:33:17 +0000 (15:33 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 14 Feb 2012 13:32:57 +0000 (14:32 +0100)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
lib/pud/src/configuration.c
lib/pud/wireformat/include/OlsrdPudWireFormat/wireFormat.h
lib/pud/wireformat/src/wireFormat.c

index e3953e2..58fc6c1 100644 (file)
@@ -311,7 +311,7 @@ static bool setupNodeIdBinaryLongLong(unsigned long long min,
                return false;
        }
 
-       if (setupNodeIdNumberForOlsrCache(nodeIdBinary.longValue, bytes)) {
+       if (setupNodeIdBinaryLongForOlsrCache(nodeIdBinary.longValue, bytes)) {
                return true;
        }
 
index 9628538..16d11e7 100644 (file)
@@ -871,7 +871,8 @@ static inline void setPositionUpdateHdop(PudOlsrPositionUpdate * olsrGpsMessage,
  * NodeInfo
  */
 
-bool setupNodeIdNumberForOlsrCache(unsigned long long val, unsigned int bytes);
+bool setupNodeIdBinaryLongForOlsrCache(unsigned long long val,
+               unsigned int bytes);
 bool setupNodeIdBinaryBufferForOlsrCache(void * val, size_t bytes);
 
 /**
index 2f74038..320c01a 100644 (file)
@@ -51,7 +51,8 @@ static unsigned int cachedNodeIdBufferLength = 0;
  - true when the number is valid
  - false otherwise
  */
-bool setupNodeIdNumberForOlsrCache(unsigned long long val, unsigned int bytes) {
+bool setupNodeIdBinaryLongForOlsrCache(unsigned long long val,
+               unsigned int bytes) {
        int i = bytes - 1;
 
        if (bytes > PUD_CACHED_NODEID_BUFFER_SIZE) {