[ovs-git] Open vSwitch: datapath: Added (unsigned long long) cast in printf (master)

dev at openvswitch.org dev at openvswitch.org
Mon Feb 3 22:06:26 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  29dd5cb732fe935246475811cdc9f2a3ac785435 (commit)
       via  61df3421651dc0b9c12c1f22418a1769ba52c740 (commit)
       via  38b5f1e78a0001fae9a52bc4db2a41c022f7b36d (commit)
      from  a66034810666e84377e167ad88ea961caa8b4d17 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 29dd5cb732fe935246475811cdc9f2a3ac785435
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=29dd5cb732fe935246475811cdc9f2a3ac785435
Author: Daniele Di Proietto <daniele.di.proietto at gmail.com>
		
datapath: Added (unsigned long long) cast in printf
		
This is necessary, since u64 is not unsigned long long
in all architectures: u64 could be also uint64_t.

Signed-off-by: Daniele Di Proietto <daniele.di.proietto at gmail.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


commit 61df3421651dc0b9c12c1f22418a1769ba52c740
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=61df3421651dc0b9c12c1f22418a1769ba52c740
Author: Daniele Di Proietto <daniele.di.proietto at gmail.com>
		
datapath: avoid cast-qual warning in vport_priv
		
This function must cast a const value to a non const value.
By adding an uintptr_t cast the warning is suppressed.
To avoid the cast (proper solution) several function signatures
must be changed.

Signed-off-by: Daniele Di Proietto <daniele.di.proietto at gmail.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


commit 38b5f1e78a0001fae9a52bc4db2a41c022f7b36d
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=38b5f1e78a0001fae9a52bc4db2a41c022f7b36d
Author: Daniele Di Proietto <daniele.di.proietto at gmail.com>
		
datapath: avoid warnings in vport_from_priv
		
This change, firstly, avoids declaring the formal parameter const,
since it is treated as non const. (to avoid -Wcast-qual)
Secondly, it cast the pointer from void* to u8*, since it is used
in arithmetic (to avoid -Wpointer-arith)

Signed-off-by: Daniele Di Proietto <daniele.di.proietto at gmail.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 datapath/flow_netlink.c |    4 ++--
 datapath/vport.h        |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list