svn commit: r348007 - projects/fuse2/lib/libc/gen
Konstantin Belousov
kostikbel at gmail.com
Mon May 20 20:22:18 UTC 2019
On Mon, May 20, 2019 at 07:36:36PM +0000, Alan Somers wrote:
> +static bool
> +are_fusefs(const char *fsname, const char *vfc_name)
> +{
> + const char fusefs[] = "fusefs";
> + const char fusefs_dot[] = "fusefs.";
Both arrays should be static.
> +
> + return (strncmp(fsname, fusefs_dot, strlen(fusefs_dot)) == 0 &&
strlen() is not needed, you can use sizeof() - 1.
> + strcmp(fusefs, vfc_name) == 0);
> +}
More information about the svn-src-projects
mailing list