From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH] xl: improve vif2 parsing Date: Fri, 20 Aug 2010 14:01:08 +0200 Message-ID: <4C6E6E84.5020704@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: xen-devel , Keir Fraser List-Id: xen-devel@lists.xenproject.org Hi, vif2 parsing relies on counted strncmp() statements. Replace this with a more robust automatic version. Signed-off-by: Andre Przywara Regards, Andre. P.S. If you like this, I have seen at least two more instances of the same issue that could be improved this way. -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448-3567-12