1
0

patch-repair_progress_c 1.1 KB

1234567891011121314151617181920212223242526272829
  1. --- xfsprogs-3.0.0.orig/repair/progress.c 2009-02-04 23:29:26.000000000 +0100
  2. +++ xfsprogs-3.0.0/repair/progress.c 2009-12-12 00:53:54.000000000 +0100
  3. @@ -117,7 +117,7 @@ init_progress_rpt (void)
  4. malloc(sizeof(__uint64_t)*glob_agcount)) == NULL ) {
  5. do_error(_("cannot malloc pointer to done vector\n"));
  6. }
  7. - bzero(prog_rpt_done, sizeof(__uint64_t)*glob_agcount);
  8. + memset(prog_rpt_done, 0, sizeof(__uint64_t)*glob_agcount);
  9. /*
  10. * Setup comm block, start the thread
  11. @@ -296,7 +296,7 @@ set_progress_msg (int report, __uint64_t
  12. /* reset all the accumulative totals */
  13. if (prog_rpt_done)
  14. - bzero(prog_rpt_done, sizeof(__uint64_t)*glob_agcount);
  15. + memset(prog_rpt_done, 0, sizeof(__uint64_t)*glob_agcount);
  16. if (pthread_mutex_unlock(&global_msgs.mutex))
  17. do_error(_("set_progress_msg: cannot unlock progress mutex\n"));
  18. @@ -321,7 +321,7 @@ print_final_rpt(void)
  19. if (pthread_mutex_lock(&global_msgs.mutex))
  20. do_error(_("print_final_rpt: cannot lock progress mutex\n"));
  21. - bzero(&msgbuf, sizeof(msgbuf));
  22. + memset(&msgbuf, 0, sizeof(msgbuf));
  23. now = time (NULL);
  24. tmp = localtime ((const time_t *) &now);