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 22:21:54 +0000 (10:21 +1200)
commit91e12f0d0f68c59d98b7f4a830cc828145057a64
treec1369a2f7d97161592e201cbd2f2747b0679fa2e
parent03093a4f7a8d84423f9842892d05c75b13556197
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