Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_widget_fsel.c Log Message: Remove unused variable for for format. Remove return value. Fix format for long value. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_fsel.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- e_widget_fsel.c 18 Sep 2006 03:49:44 -0000 1.39 +++ e_widget_fsel.c 21 Sep 2006 20:01:50 -0000 1.40 @@ -98,8 +98,7 @@ } fname = alloca(strlen(ecore_file_get_file(buf)) + 1); strcpy(fname, ecore_file_get_file(buf)); - snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/.order", - homedir, ecore_file_get_file(current_path)); + snprintf(buf, sizeof(buf), "%s/.e/e/fileman/favorites/.order", homedir); if (ecore_file_exists(buf)) { f = fopen(buf, "a"); @@ -547,7 +546,7 @@ { E_Widget_Data *wd; - if (!obj) return NULL; + if (!obj) return; wd = e_widget_data_get(obj); e_fm2_window_object_set(wd->o_favorites_fm, eobj); e_fm2_window_object_set(wd->o_files_fm, eobj); @@ -658,7 +657,6 @@ int group_write = 0; int other_read = 0; int other_write = 0; - int i; if (getuid() == st_uid) owner = 1; @@ -732,17 +730,17 @@ if (diff <= 60) snprintf(modtime, sizeof(modtime), _("In the last Minute")); else if (diff >= 31526000) - snprintf(modtime, sizeof(modtime), _("%i Years ago"), (diff / 31526000)); + snprintf(modtime, sizeof(modtime), _("%li Years ago"), (diff / 31526000)); else if (diff >= 2592000) - snprintf(modtime, sizeof(modtime), _("%i Months ago"), (diff / 2592000)); + snprintf(modtime, sizeof(modtime), _("%li Months ago"), (diff / 2592000)); else if (diff >= 604800) - snprintf(modtime, sizeof(modtime), _("%i Weeks ago"), (diff / 604800)); + snprintf(modtime, sizeof(modtime), _("%li Weeks ago"), (diff / 604800)); else if (diff >= 86400) - snprintf(modtime, sizeof(modtime), _("%i Days ago"), (diff / 86400)); + snprintf(modtime, sizeof(modtime), _("%li Days ago"), (diff / 86400)); else if (diff >= 3600) - snprintf(modtime, sizeof(modtime), _("%i Hours ago"), (diff / 3600)); + snprintf(modtime, sizeof(modtime), _("%li Hours ago"), (diff / 3600)); else if (diff > 60) - snprintf(modtime, sizeof(modtime), _("%i Minutes ago"), (diff / 60)); + snprintf(modtime, sizeof(modtime), _("%li Minutes ago"), (diff / 60)); } if (modtime) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs