Fix service classes decoding

This commit is contained in:
Marcel Holtmann 2006-02-23 21:14:23 +00:00
parent 7021f61d99
commit 1670b1237d

View File

@ -666,7 +666,7 @@ static void cmd_class(int ctl, int hdev, char *opt)
printf("\tService Classes: ");
if (cls[2]) {
int first = 1;
for (s = 0; s < sizeof(*services); s++)
for (s = 0; s < (sizeof(services) / sizeof(*services)); s++)
if (cls[2] & (1 << s)) {
if (!first)
printf(", ");