aboutsummaryrefslogtreecommitdiff
path: root/miscutils/devfsd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-08-30 16:41:17 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2022-08-30 16:41:17 +0200
commitfe73c8d55795a8fe7e95fc2c00af6899817b96b8 (patch)
tree1b772243f00c63d16ee4cf8bf6f80a6c7a53ee91 /miscutils/devfsd.c
parent58598eb7093561d914a6254697e137b815f1fdfc (diff)
downloadbusybox-w32-fe73c8d55795a8fe7e95fc2c00af6899817b96b8.tar.gz
busybox-w32-fe73c8d55795a8fe7e95fc2c00af6899817b96b8.tar.bz2
busybox-w32-fe73c8d55795a8fe7e95fc2c00af6899817b96b8.zip
*: style fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r--miscutils/devfsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index fb9ebcf60..297693f8c 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -976,7 +976,7 @@ static void action_compat(const struct devfsd_notify_struct *info, unsigned int
976 rewind_ = info->devname[info->namelen - 1]; 976 rewind_ = info->devname[info->namelen - 1];
977 if (rewind_ != 'n') 977 if (rewind_ != 'n')
978 rewind_ = '\0'; 978 rewind_ = '\0';
979 mode=0; 979 mode = 0;
980 if (ptr[2] == 'l' /*108*/ || ptr[2] == 'm'/*109*/) 980 if (ptr[2] == 'l' /*108*/ || ptr[2] == 'm'/*109*/)
981 mode = ptr[2] - 107; /* 1 or 2 */ 981 mode = ptr[2] - 107; /* 1 or 2 */
982 if (ptr[2] == 'a') 982 if (ptr[2] == 'a')
@@ -1595,11 +1595,11 @@ static char *write_old_sd_name(char *buffer,
1595 return buffer; 1595 return buffer;
1596 } 1596 }
1597 if ((major > 64) && (major < 72)) { 1597 if ((major > 64) && (major < 72)) {
1598 disc_index = ((major - 64) << 4) +(minor >> 4); 1598 disc_index = ((major - 64) << 4) + (minor >> 4);
1599 if (disc_index < 26) 1599 if (disc_index < 26)
1600 sprintf(buffer, "sd%c%s", 'a' + disc_index, part); 1600 sprintf(buffer, "sd%c%s", 'a' + disc_index, part);
1601 else 1601 else
1602 sprintf(buffer, "sd%c%c%s", 'a' +(disc_index / 26) - 1, 'a' + disc_index % 26, part); 1602 sprintf(buffer, "sd%c%c%s", 'a' + (disc_index / 26) - 1, 'a' + disc_index % 26, part);
1603 return buffer; 1603 return buffer;
1604 } 1604 }
1605 return NULL; 1605 return NULL;