OSDN Git Service

Simplify notification code in NetlinkHandler.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 25 Oct 2013 10:53:31 +0000 (19:53 +0900)
committerJP Abgrall <jpa@google.com>
Fri, 25 Oct 2013 17:16:41 +0000 (17:16 +0000)
commit0b454ea4abdc8a563af6da58fa37835729220acf
treef639c79ad1e038fc2282d0c8d777dfe3c36b8787
parentcf7c488008839b7c0341628c869bddf26b9daa99
Simplify notification code in NetlinkHandler.

1. Factor most of the notification code out to a common function.
2. Use vasprintf instead of snprintf so we don't have to worry
   about clipping notifications due to fixed-size message
   buffers.

Bug: 9180552
Change-Id: Idde16ee6dd56d38dab866f0ea678b04d98b3048d
NetlinkHandler.cpp
NetlinkHandler.h