mirror of
https://github.com/sheumann/hush.git
synced 2025-03-11 03:31:40 +00:00
losetup: use LOOP_foo defines
Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5c296de390
commit
7c1b2b5420
@ -65,9 +65,9 @@ int losetup_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
n = 0;
|
n = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
char *s;
|
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);
|
s = query_loop(dev);
|
||||||
n++;
|
n++;
|
||||||
if (!s) {
|
if (!s) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user