]> git.baikalelectronics.ru Git - kernel.git/commit
staging: hv: update dist release parsing in hv_kvp_daemon
authorOlaf Hering <olaf@aepfle.de>
Tue, 22 Mar 2011 09:02:17 +0000 (10:02 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Apr 2011 04:33:25 +0000 (21:33 -0700)
commite698f6473a8959bf33105a0044ff5c843d5fc084
tree670395a11fa31332b69e8438cf70b83f5a4483a1
parentaf66fa48b14d30efe0e09915d56eae60805cad4a
staging: hv: update dist release parsing in hv_kvp_daemon

The current code to parse the distribution file handles only files with
at least 3 lines. openSuSE has 2 lines and Redhat only one (according to
google).
Update the parser to handle up to three lines properly. Also make the
buffer allocation dynamic and remove a few casts to avoid compiler
warnings.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: KY Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/tools/hv_kvp_daemon.c