*
* Copyright (C) 2002 Matt Kraai.
*
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
#include "libbb.h"
};
/* max 2 args, all opts are mutually exclusive */
- opt_complementary = "?2:d--of:o--df:f-do";
+ opt_complementary = "?2:d--of:o--df:f--do";
opt = getopt32(argv, "do:f", &opt_o);
argv += optind;
n = 0;
while (1) {
char *s;
- char dev[sizeof(LOOP_NAME) + sizeof(int)*3];
+ char dev[LOOP_NAMESIZE];
- sprintf(dev, LOOP_NAME"%u", n);
+ sprintf(dev, LOOP_FORMAT, n);
s = query_loop(dev);
n++;
if (!s) {