diff options
Diffstat (limited to 'toys/pending/mdev.c')
-rw-r--r-- | toys/pending/mdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/pending/mdev.c b/toys/pending/mdev.c index d0bb0681..eb44d9d3 100644 --- a/toys/pending/mdev.c +++ b/toys/pending/mdev.c @@ -103,7 +103,7 @@ static void make_device(char *path) for(end = pos; end-conf<len && *end!='\n'; end++); // Four fields (last is optional): regex, uid:gid, mode [, name|path ] - // For example: (sd[a-z])1 root:disk 660 =usb_storage_p1 + // For example: (sd[a-z])1 root:disk 660 =usb_storage_p1 for (field = 4; field; field--) { // Skip whitespace while (pos<end && isspace(*pos)) pos++; @@ -169,11 +169,11 @@ static void make_device(char *path) { char *beg_pos = pos; mode = strtoul(pos, &pos, 8); - if(pos == beg_pos) { + if (pos == beg_pos) { // The line is bad because mode setting could not be // converted to numeric value. goto end_line; - } + } break; } // Try to look for name or path (optional field) |