Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/utils/losetup.c

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

revision 1296 by niro, Wed Aug 18 21:11:40 2010 UTC revision 1297 by niro, Fri May 27 15:12:11 2011 UTC
# Line 17  Line 17 
17  #include <sys/stat.h>  #include <sys/stat.h>
18  #include <sys/mman.h>  #include <sys/mman.h>
19  #include <sys/sysmacros.h>  #include <sys/sysmacros.h>
20    #include <stdarg.h>
21  #include <string.h>  #include <string.h>
22    
23  #include "loop.h"  #include "loop.h"
# Line 339  int del_loop (const char *device) Line 340  int del_loop (const char *device)
340   }   }
341   if (ioctl (fd, LOOP_CLR_FD, 0) < 0) {   if (ioctl (fd, LOOP_CLR_FD, 0) < 0) {
342   perror ("ioctl: LOOP_CLR_FD");   perror ("ioctl: LOOP_CLR_FD");
343     close (fd);
344   return 1;   return 1;
345   }   }
346   close (fd);   close (fd);
# Line 348  int del_loop (const char *device) Line 350  int del_loop (const char *device)
350  }  }
351    
352    
 #include <getopt.h>  
 #include <stdarg.h>  
   
353  int verbose = 0;  int verbose = 0;
354  char *progname;  char *progname;
355    

Legend:
Removed from v.1296  
changed lines
  Added in v.1297