And fix the one final use.
Closes: #1280
Approved by: jlebon
@prohibit='\<glnx_throw_errno_prefix *\(.*: ",' halt="don't add trailing : for glnx_throw_errno_prefix" \
$(_sc_search_regexp)
+sc_glnx_no_fd_close:
+ @prohibit='\<glnx_fd_close int' halt="Use glnx_autofd, not glnx_fd_close" \
+ $(_sc_search_regexp)
+
#SHELL=bash -x
show-vc-list-except:
@$(VC_LIST_EXCEPT)
-VC_LIST_ALWAYS_EXCLUDE_REGEX = ^ABOUT-NLS|maint.mk|*.gpg|*.sig|.xz$$
+VC_LIST_ALWAYS_EXCLUDE_REGEX = ^ABOUT-NLS|cfg.mk|maint.mk|*.gpg|*.sig|.xz$$
ot_checksum_init (&hasher);
ot_checksum_update_bytes (&hasher, header);
- glnx_fd_close int fd = -1;
+ glnx_autofd int fd = -1;
if (!glnx_openat_rdonly (dfd, name, FALSE, &fd, error))
return FALSE;