Commit a71a4aab authored by ChenXiaoSong's avatar ChenXiaoSong Committed by Steve French
Browse files

smb/client: add parentheses to NT error code definitions containing bitwise OR operator



Use the following shell commands:

  # Add "("
  sed -i '/|/s/ 0x/ (0x/' fs/smb/client/nterr.h
  # Add ")" if line does not end with a comment
  sed -i '/|/ { /.*\*\/$/! s/$/)/ }' fs/smb/client/nterr.h
  # Add ")" if line end with a comment
  sed -i '/|/ s/[[:space:]]*\/\*/)&/' fs/smb/client/nterr.h

Signed-off-by: default avatarChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: default avatarPaulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent bcdd6cfa
Loading
Loading
Loading
Loading
+506 −506

File changed.

Preview size limit exceeded, changes collapsed.