util: fix compile warnings
authorAnsis Atteka <aatteka@nicira.com>
Tue, 8 Jul 2014 04:11:53 +0000 (04:11 +0000)
committerJoe Stringer <joestringer@nicira.com>
Mon, 7 Jul 2014 21:57:17 +0000 (09:57 +1200)
commit27be9423015cadb2cf808fc1bf3f1f558614c3f8
tree63a8666ba71abfee255fc619a1ff2c1e55eb22ad
parentd87a5d468a2c87472d25f3f4747b14d1ac5d38e1
util: fix compile warnings

This patch fixes two compile warnings introduced by commit
64b73291 ("util: create a copy of program_name"):
1. ../lib/util.c:457:5: error: passing argument 1 of 'free'
   discards 'const' qualifier from pointer target type; And
2. ../lib/util.c:463:5: error: ISO C90 forbids mixed declarations
   and code [-Werror=declaration-after-statement] (affected only
   branch-2.3 that is C90 compliant and not the master)

Reported-By: Joe Stringer <jstringer@nicira.com>
Reported-By: Lorand Jakab <lojakab@cisco.com>
Signed-Off-By: Ansis Atteka <aatteka@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
lib/util.c
lib/util.h