10.03.2015 20:30, Aneesh Kumar K.V wrote:
Michael Tokarev m...@tls.msk.ru writes:
Omit one unnecessary memory allocation for components of the path
and create the resulting path directly given lengths of the components.
This uses (char*) cast because basename() accepts a char* without
05.03.2015 04:13, Fam Zheng wrote:
On Thu, 03/05 00:03, Michael Tokarev wrote:
+const char *name = basename((char*)path);
checkpatch.pl complained this, s/char*/char */
I've fixed it in git. Thank you for spotting this.
/mjt
Michael Tokarev m...@tls.msk.ru writes:
Omit one unnecessary memory allocation for components of the path
and create the resulting path directly given lengths of the components.
This uses (char*) cast because basename() accepts a char* without const,
for unknown reason. Maybe it is better
Omit one unnecessary memory allocation for components of the path
and create the resulting path directly given lengths of the components.
This uses (char*) cast because basename() accepts a char* without const,
for unknown reason. Maybe it is better to use strrchr(), but I'm not
sure for various
On Thu, 03/05 00:03, Michael Tokarev wrote:
+const char *name = basename((char*)path);
checkpatch.pl complained this, s/char*/char */