Don't convert new_hna_len from int16_t to int and back to int16_t

Message ID 1228162317-31331-1-git-send-email-sven.eckelmann@gmx.de (mailing list archive)
State Accepted, archived
Headers

Commit Message

Sven Eckelmann Dec. 1, 2008, 8:11 p.m. UTC
  Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
 batman/batman.c |    2 +-
 batman/os.h     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/batman/batman.c b/batman/batman.c
index 0c17f33..392dd1e 100644
--- a/batman/batman.c
+++ b/batman/batman.c
@@ -255,7 +255,7 @@  static int hna_buff_delete(struct hna_element *buf, int *buf_len, struct hna_ele
  * a situation where no route is present.
  */
 void update_hna(struct orig_node *orig_node, unsigned char *new_hna,
-				int new_hna_len, struct neigh_node *old_router)
+				int16_t new_hna_len, struct neigh_node *old_router)
 {
 	unsigned char *old_hna;
 	int old_hna_len;
diff --git a/batman/os.h b/batman/os.h
index 5531bae..da61d18 100644
--- a/batman/os.h
+++ b/batman/os.h
@@ -38,7 +38,7 @@  void addr_to_string( uint32_t addr, char *str, int32_t len );
 
 int8_t is_aborted(void);
 void update_hna(struct orig_node *orig_node, unsigned char *new_hna, 
-				int new_hna_len, struct neigh_node *old_router);
+				int16_t new_hna_len, struct neigh_node *old_router);
 void handler(int32_t sig);
 void segmentation_fault(int32_t sig) NO_RETURN;
 void restore_and_exit(uint8_t is_sigsegv) NO_RETURN;