diff options
| author | Paul Eggert | 2014-04-05 12:30:36 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-04-05 12:30:36 -0700 |
| commit | faa521749378dbfd97f49a0e5c48f6da2ce1ddba (patch) | |
| tree | d470dbfa3328aaeffe5cba065103e237238a13be /src/process.c | |
| parent | 1b058e42524353c9ff133ea330876ed2d39b6515 (diff) | |
| download | emacs-faa521749378dbfd97f49a0e5c48f6da2ce1ddba.tar.gz emacs-faa521749378dbfd97f49a0e5c48f6da2ce1ddba.zip | |
Prefer 'ARRAYELTS (x)' to 'sizeof x / sizeof *x'.
* alloc.c (memory_full):
* charset.c (syms_of_charset):
* doc.c (Fsnarf_documentation):
* emacs.c (main):
* font.c (BUILD_STYLE_TABLE):
* keyboard.c (make_lispy_event):
* profiler.c (setup_cpu_timer):
* xgselect.c (xg_select):
* xterm.c (record_event, STORE_KEYSYM_FOR_DEBUG):
Use ARRAYELTS.
* font.c (FONT_PROPERTY_TABLE_SIZE): Remove.
Replace the only use with ARRAYELTS (font_property_table).
* xfaces.c (DIM): Remove. All uses replaced by ARRAYELTS.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index fe365a136de..5a5ce0ce674 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2022,11 +2022,11 @@ conv_sockaddr_to_lisp (struct sockaddr *sa, int len) | |||
| 2022 | terminator, however. */ | 2022 | terminator, however. */ |
| 2023 | if (name_length > 0 && sockun->sun_path[0] != '\0') | 2023 | if (name_length > 0 && sockun->sun_path[0] != '\0') |
| 2024 | { | 2024 | { |
| 2025 | const char* terminator = | 2025 | const char *terminator |
| 2026 | memchr (sockun->sun_path, '\0', name_length); | 2026 | = memchr (sockun->sun_path, '\0', name_length); |
| 2027 | 2027 | ||
| 2028 | if (terminator) | 2028 | if (terminator) |
| 2029 | name_length = terminator - (const char*) sockun->sun_path; | 2029 | name_length = terminator - (const char *) sockun->sun_path; |
| 2030 | } | 2030 | } |
| 2031 | 2031 | ||
| 2032 | return make_unibyte_string (sockun->sun_path, name_length); | 2032 | return make_unibyte_string (sockun->sun_path, name_length); |