Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/debianutils/pipe_progress.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 815 by niro, Sat Sep 1 22:45:15 2007 UTC revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC
# Line 7  Line 7 
7   * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.   * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8   */   */
9    
10  #include "busybox.h"  #include "libbb.h"
 #include <stdio.h>  
 #include <stdlib.h>  
 #include <unistd.h>  
 #include <time.h>  
11    
12  #define PIPE_PROGRESS_SIZE 4096  #define PIPE_PROGRESS_SIZE 4096
13    
14  /* Read a block of data from stdin, write it to stdout.  /* Read a block of data from stdin, write it to stdout.
15   * Activity is indicated by a '.' to stderr   * Activity is indicated by a '.' to stderr
16   */   */
17  int pipe_progress_main(int argc, char **argv)  int pipe_progress_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
18    int pipe_progress_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
19  {  {
20   RESERVE_CONFIG_BUFFER(buf, PIPE_PROGRESS_SIZE);   RESERVE_CONFIG_BUFFER(buf, PIPE_PROGRESS_SIZE);
21   time_t t = time(NULL);   time_t t = time(NULL);

Legend:
Removed from v.815  
changed lines
  Added in v.816