diff options
author | Daniel Colascione <dancol@dancol.org> | 2014-04-03 00:14:02 -0700 |
---|---|---|
committer | Daniel Colascione <dancol@dancol.org> | 2014-04-03 00:14:02 -0700 |
commit | 705cf384bec23354ad22a5c48d3430a96ef70ca1 (patch) | |
tree | 1615876bc7abad32f5e41ea34c5cd1747466798a /src/msdos.c | |
parent | 3a9e7a49deea49088a773c321e52185e922748d6 (diff) | |
download | emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.gz emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.bz2 emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.zip |
Clean up array size calculations
Diffstat (limited to 'src/msdos.c')
-rw-r--r-- | src/msdos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msdos.c b/src/msdos.c index 1af66b391ad..2b636977f61 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -564,7 +564,7 @@ dos_set_window_size (int *rows, int *cols) }; int i = 0; - while (i < sizeof (std_dimension) / sizeof (std_dimension[0])) + while (i < EARRAYSIZE (std_dimension)) { if (std_dimension[i].need_vga <= have_vga && std_dimension[i].rows >= *rows) @@ -3465,7 +3465,7 @@ init_environment (int argc, char **argv, int skip_args) static const char * const tempdirs[] = { "$TMPDIR", "$TEMP", "$TMP", "c:/" }; - const int imax = sizeof (tempdirs) / sizeof (tempdirs[0]); + const int imax = EARRAYSIZE (tempdirs); /* Make sure they have a usable $TMPDIR. Many Emacs functions use temporary files and assume "/tmp" if $TMPDIR is unset, which |