Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_filelist.c Log Message: - formatting =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- ewl_filelist.c 30 Apr 2006 00:50:35 -0000 1.10 +++ ewl_filelist.c 30 Apr 2006 02:32:20 -0000 1.11 @@ -297,11 +297,11 @@ DENTER_FUNCTION(DLEVEL_STABLE); - if ((pwd = getpwuid(st_uid))) + pwd = getpwuid(st_uid); + if (pwd) snprintf(name, PATH_MAX, "%s", pwd->pw_name); - else { + else snprintf(name, PATH_MAX, "%-8d", st_uid); - } DRETURN_PTR(strdup(name), DLEVEL_STABLE); } @@ -314,11 +314,11 @@ DENTER_FUNCTION(DLEVEL_STABLE); - if ((grp = getgrgid(st_gid))) + grp = getgrgid(st_gid); + if (grp) snprintf(name, PATH_MAX, "%s", grp->gr_name); - else { + else snprintf(name, PATH_MAX, "%-8d", st_gid); - } DRETURN_PTR(strdup(name), DLEVEL_STABLE); } @@ -327,14 +327,14 @@ ewl_filelist_modtime_get(time_t st_modtime) { char *time; + DENTER_FUNCTION(DLEVEL_STABLE); + time = ctime(&st_modtime); - if (time) - time = strdup(time); - else { - time = strdup("Ctime Failure"); - } - DRETURN_PTR(strdup(time), DLEVEL_STABLE); + if (time) time = strdup(time); + else time = strdup("unknown"); + + DRETURN_PTR(time, DLEVEL_STABLE); } Ewl_Widget * @@ -342,13 +342,8 @@ { Ewl_Widget *box, *icon, *text, *image; const char *path2; - char path3[PATH_MAX]; - char file_info[PATH_MAX]; - char *size; - char *perms; - char *username; - char *groupname; - char *time; + char path3[PATH_MAX], file_info[PATH_MAX]; + char *size, *perms, *username, *groupname, *time; struct stat buf; DENTER_FUNCTION(DLEVEL_STABLE); ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs