PERFORCE change 131991 for review
Garrett Cooper
gcooper at FreeBSD.org
Sat Dec 29 14:09:40 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=131991
Change 131991 by gcooper at shiina-ibook on 2007/12/29 22:08:45
Style and convert follow_link from int to unsigned char to save memory in pkgfile struct.
Affected files ...
.. //depot/projects/soc2007/revised_fbsd_pkgtools/pkg_revised/v2/contrib/libpkg/pkgfile.c#5 edit
Differences ...
==== //depot/projects/soc2007/revised_fbsd_pkgtools/pkg_revised/v2/contrib/libpkg/pkgfile.c#5 (text+ko) ====
@@ -142,7 +142,7 @@
return -1;
if (S_ISREG(sb.st_mode) ||
- (file->follow_link && S_ISLNK(sb.st_mode))) {
+ (file->follow_link != 0 && S_ISLNK(sb.st_mode))) {
file->type = pkgfile_regular;
file->length = sb.st_size;
} else if(S_ISLNK(sb.st_mode)) {
@@ -221,7 +221,7 @@
* @return A new pkgfile object or NULL
*/
struct pkgfile *
-pkgfile_new_from_disk(const char *filename, int follow_link)
+pkgfile_new_from_disk(const char *filename, unsigned char follow_link)
{
struct pkgfile *file;
More information about the p4-projects
mailing list