[libvirt] [PATCH 02/29] Add a test suite for validating SELinux labelling
Eric Blake
eblake at redhat.com
Fri Sep 21 14:38:27 UTC 2012
On 09/21/2012 07:21 AM, Daniel P. Berrange wrote:
>>> + while (!feof(fp)) {
>>> + char *line;
>>> + char *file, *context;
>>> + if (VIR_ALLOC_N(line, 1024) < 0) {
>>> + virReportOOMError();
>>> + goto cleanup;
>>> + }
>>> + if (!fgets(line, 1024, fp)) {
>>
>> Is readline() any easier to use than VIR_ALLOC_N/fgets()?
>
> Is readline() really what you meant ? That function is for
> prompting on stdio and reading a response.
s/readline/getline/
(What, you can't read my mind? :)
--
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: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120921/636c06ef/attachment-0001.sig>
More information about the libvir-list
mailing list