Skip to contentSkip to conversation

Introduce NBD named exports.

PATCH Laurent Vivier 1 participant 1 message Aug 25, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

Am 25.08.2010 00:21, schrieb Laurent Vivier:

Quoted 1 line · Kevin Wolf

[...]

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Maybe using strlen(EN_OPTSTR) would be clearer? At first I missed the fact that sizeof includes the null byte, but maybe it's just me.

I think sizeof() is resolved at compile time whereas strlen() it is at runtime. For me, it is better, it is like to have a constant.

gcc is smart enough to make strlen of a literal string a constant, too. Besides, opening a connection isn't really performance critical.

Yes, you're right, I should check this before. So strlen() is better.

Regards,
Laurent

Signature · 3 lines
--------------------- [email protected]  ---------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard