[CRIU] [PATCH v5 04/15] autofs: parse fsinfo stage introduced

Cyrill Gorcunov gorcunov at gmail.com
Wed Jan 27 06:50:16 PST 2016


On Wed, Jan 27, 2016 at 05:28:30PM +0300, Pavel Emelyanov wrote:
> > +		if (!strncmp(opts[i], "pipe_ino=", strlen("pipe_ino=")))
> > +			pipe_ino = atoi(opts[i] + strlen("pipe_ino="));
> 
> Is strlen() works OK with constant strings? By OK I mean O(1) runtime.

Yes. For long time already.


More information about the CRIU mailing list