diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2012-09-18 11:23:15 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2012-09-18 11:23:15 +0000 |
commit | 7653a636e4813a6daf049f4ebaff8a51a512493b (patch) | |
tree | 61b63641721e26c2d73bae38861d970a4fc0a544 | |
parent | 7b2c579132e2e40c1d07a8f35a2f53a2c5cb8de7 (diff) |
- use nitems() here; no binary change.
ok mglocker@
-rw-r--r-- | sys/dev/usb/udl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/udl.h b/sys/dev/usb/udl.h index d3bda91d6c6..2788c9f0477 100644 --- a/sys/dev/usb/udl.h +++ b/sys/dev/usb/udl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: udl.h,v 1.17 2010/06/27 12:05:18 maja Exp $ */ +/* $OpenBSD: udl.h,v 1.18 2012/09/18 11:23:14 jasper Exp $ */ /* * Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org> @@ -304,7 +304,7 @@ static const struct udl_mode udl_modes[] = { { 1600, 1200, 60, DL160, 16200, udl_reg_vals_1600x1200_60 }, { 1920, 1080, 60, DL165, 13850, udl_reg_vals_1920x1080_60 } }; -#define MAX_DL_MODES (sizeof(udl_modes) / sizeof(struct udl_mode)) +#define MAX_DL_MODES nitems(udl_modes) /* * Encryption. |