Displaying 2 results from an estimated 2 matches for "59030d7".
Did you mean:
59007
2011 Jul 05
0
[PATCH] losetup: use stdout and return 0 for -h
...lt;max at stro.at>
---
Other patches might be useful too, that one just triggered
the easy to port and useful treshold. (:
usr/utils/losetup.c | 29 +++++++++++++++++------------
1 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/usr/utils/losetup.c b/usr/utils/losetup.c
index 59030d7..9deacd4 100644
--- a/usr/utils/losetup.c
+++ b/usr/utils/losetup.c
@@ -353,14 +353,16 @@ int del_loop (const char *device)
int verbose = 0;
char *progname;
-static void usage(void) {
- fprintf(stderr, "usage:\n\
+static void usage(FILE *f)
+{
+ fprintf(f, "usage:\n\
%s loop_device...
2010 Nov 20
3
[PATCH 1/4] utils: cleanup unused includes
...g.c
index 61e047e..1960713 100644
--- a/usr/utils/dmesg.c
+++ b/usr/utils/dmesg.c
@@ -1,5 +1,4 @@
#include <unistd.h>
-#include <errno.h>
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
diff --git a/usr/utils/losetup.c b/usr/utils/losetup.c
index 1a47fa9..59030d7 100644
--- a/usr/utils/losetup.c
+++ b/usr/utils/losetup.c
@@ -17,6 +17,7 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/sysmacros.h>
+#include <stdarg.h>
#include <string.h>
#include "loop.h"
@@ -349,9 +350,6 @@ int del_loop (const char...