gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] [PATCH v3 UPDATED 1/2] Qemu/Gluster: Add Gluster pro


From: Harsh Bora
Subject: Re: [Gluster-devel] [PATCH v3 UPDATED 1/2] Qemu/Gluster: Add Gluster protocol as supported network disk formats.
Date: Thu, 22 Nov 2012 19:46:37 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1

On 11/22/2012 07:05 PM, Eric Blake wrote:
On 11/22/2012 01:49 AM, Harsh Bora wrote:

+        transp = strstr(uri->scheme, "+");

strstr() for a single-byte needle is overkill.

+        transp++;

You could even squash the increment into the previous line :-)

That would give me:

qemu/qemu_command.c: In function 'qemuParseGlusterString':
qemu/qemu_command.c:2048:18: error: lvalue required as left operand of
assignment.

Not if you do:

transp = strchr(uri->scheme, '+') + 1;


Oh yes, thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]