[libvirt] [PATCH] util: remove unneeded #include in virrandom.c

Eric Blake eblake at redhat.com
Thu Mar 1 17:25:11 UTC 2012


On 03/01/2012 09:53 AM, Daniel P. Berrange wrote:
> On Thu, Mar 01, 2012 at 11:43:04AM -0500, Laine Stump wrote:
>> Commit 7c90026 added #include "conf/domain_conf.h" to
>> util/virrandom.c. Fortunately it didn't actually use anything from
>> domain_conf.h, since as far as I'm aware, files in util aren't allowed
>> to reference anything in conf (although the opposite is allowed). So
>> this #include is unnecessary.
> 
> That is correct.  util/ must be self-contained

Guess what - that sounds like a great syntax rule to write, so we don't
slip up in the future.  Give me a few minutes, to see what I can come up
with.  Any other directories that should be avoiding particular includes?

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120301/35c095a5/attachment-0001.sig>


More information about the libvir-list mailing list