patch-src_hpls_c 895 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_hpls_c,v 1.3 2007/11/21 14:30:36 ajacoutot Exp $
  2. --- src/hpls.c.orig Sun Mar 17 18:20:39 2002
  3. +++ src/hpls.c Wed Nov 21 13:55:02 2007
  4. @@ -417,7 +417,7 @@ void showmisc(record *ent, int flags)
  5. {
  6. size = ent->record.u.file.data_fork.total_size +
  7. ent->record.u.file.res_fork.total_size;
  8. - printf("%4Lu ", size / 1024 + (size % 1024 != 0));
  9. + printf("%4llu ", size / 1024 + (size % 1024 != 0));
  10. }
  11. }
  12. @@ -484,7 +484,7 @@ void show_long(int sz, queueent *ents, char **strs,
  13. else if (ent->record.type == HFSP_FILE)
  14. {
  15. hfsp_cat_file* f = &ent->record.u.file;
  16. - printf("%c%c %4.4s/%4.4s %9Lu %9Lu %s %s\n",
  17. + printf("%c%c %4.4s/%4.4s %9llu %9llu %s %s\n",
  18. f->flags & HFSP_FILE_LOCKED ? 'F' : 'f',
  19. f->user_info.fdFlags & HFS_FNDR_ISINVISIBLE ? 'i' : ' ',
  20. (char*) &f->user_info.fdType, (char*) &f->user_info.fdCreator,