From: Sven Eckelmann <sven.eckelmann@gmx.de>
To: b.a.t.m.a.n@open-mesh.net
Subject: [B.A.T.M.A.N.] [PATCH] Don't convert new_hna_len from int16_t to int and back to int16_t
Date: Mon, 1 Dec 2008 21:11:57 +0100 [thread overview]
Message-ID: <1228162317-31331-1-git-send-email-sven.eckelmann@gmx.de> (raw)
In-Reply-To: <1228157822-29406-1-git-send-email-sven.eckelmann@gmx.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
batman/batman.c | 2 +-
batman/os.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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;
--
1.6.0.4
next prev parent reply other threads:[~2008-12-01 20:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 18:56 [B.A.T.M.A.N.] Intel CC warning smashing Sven Eckelmann
2008-12-01 18:56 ` [B.A.T.M.A.N.] [PATCH] Correct parameter in declaration of use_gateway_module Sven Eckelmann
2008-12-01 19:05 ` [B.A.T.M.A.N.] " Sven Eckelmann
2008-12-01 19:14 ` [B.A.T.M.A.N.] [PATCHv2] Use ansi-style declaration for parameterless functions Sven Eckelmann
2008-12-01 19:14 ` [B.A.T.M.A.N.] [PATCHv2] Remove unused parameter of use_gateway_module Sven Eckelmann
2008-12-01 18:56 ` [B.A.T.M.A.N.] [PATCH] Remove unused variable debug_level_info in posix/posix.c Sven Eckelmann
2008-12-01 18:56 ` [B.A.T.M.A.N.] [PATCH] Use declaration of vis_if from batman.h Sven Eckelmann
2008-12-01 18:56 ` [B.A.T.M.A.N.] [PATCH] Respect (un)signess of parameter in printf format strings Sven Eckelmann
2008-12-01 18:57 ` [B.A.T.M.A.N.] [PATCH] Mark function which are only declared locally as static Sven Eckelmann
2008-12-01 18:57 ` [B.A.T.M.A.N.] [PATCH] Remove unused functions isDuplicate and isBntog Sven Eckelmann
2008-12-01 18:57 ` [B.A.T.M.A.N.] [PATCH] Don't convert uint64_t to float when only comparing against 0 Sven Eckelmann
2008-12-01 20:11 ` Sven Eckelmann [this message]
2008-12-01 20:48 ` [B.A.T.M.A.N.] [PATCH] Don't truncate file descriptor in use_kernel_module Sven Eckelmann
2008-12-01 21:12 ` [B.A.T.M.A.N.] Intel CC warning smashing Sven Eckelmann
2008-12-01 21:52 ` Simon Wunderlich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1228162317-31331-1-git-send-email-sven.eckelmann@gmx.de \
--to=sven.eckelmann@gmx.de \
--cc=b.a.t.m.a.n@open-mesh.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).