@@ -553,6 +555,23 @@
+static void blah(int a, int b) {
+ /* excessive nesting should be avoided but if it can't,
+ * remember the following rules */
+ if(a) {
+ if(b) {
+ struct opaque blah;
*sigh* - This is not even in K&R style. May I politely suggest that you
go back to reading its definition? (hint: spaces, keywords)
On Thu, Aug 19, 2010 at 09:34:25AM +0000, noreply@xxxxxxxxxxxxx wrote:
------------------------------------------------------------
revno: 4898
committer: Artturi Karila <artturi.karila@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-08-19 12:32:20 +0300
message:
Fixed 'cast discards qualifiers' warnings in hip_get_next_param()
--- firewall/conntrack.c 2010-08-18 16:21:16 +0000
+++ firewall/conntrack.c 2010-08-19 09:32:20 +0000
@@ -925,10 +925,12 @@
// store the public key separately
// store function pointer for verification
if (hip_get_host_id_algo(tuple->hip_tuple->data->src_hi) ==
HIP_HI_RSA) {
- tuple->hip_tuple->data->src_pub_key =
hip_key_rr_to_rsa((struct hip_host_id_priv *) host_id, 0);
+ tuple->hip_tuple->data->src_pub_key = hip_key_rr_to_rsa(
+ (const struct hip_host_id_priv *)
host_id, 0);
Breaking functions at the opening parenthesis looks ugly IMO.