Skip to content

Commit

Permalink
Address clang-tidy modernize-deprecated-headers (s3fs-fuse#2370)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaul authored Nov 19, 2023
1 parent ec8caf6 commit 68bbfee
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 32 deletions.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ Checks: '
-misc-use-anonymous-namespace,
modernize-*,
-modernize-avoid-c-arrays,
-modernize-deprecated-headers,
-modernize-loop-convert,
-modernize-make-unique,
-modernize-raw-string-literal,
Expand Down
2 changes: 1 addition & 1 deletion src/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <errno.h>
#include <memory>
#include <unistd.h>
#include <fstream>
Expand Down
4 changes: 2 additions & 2 deletions src/fdcache_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cerrno>
#include <climits>
#include <memory>
#include <unistd.h>
#include <limits.h>
#include <sys/stat.h>

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion src/fdcache_fdinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
*/

#include <algorithm>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <errno.h>
#include <memory>
#include <sys/stat.h>
#include <unistd.h>
Expand Down
8 changes: 4 additions & 4 deletions src/gnutls_auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <pthread.h>
#include <unistd.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <gcrypt.h>
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
Expand Down
8 changes: 4 additions & 4 deletions src/nss_auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <pthread.h>
#include <unistd.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <nss.h>
#include <pk11pub.h>
#include <hasht.h>
Expand Down
2 changes: 1 addition & 1 deletion src/s3fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
*/

#include <algorithm>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <errno.h>
#include <memory>
#include <set>
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/s3fs_cred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <errno.h>
#include <cerrno>
#include <unistd.h>
#include <pwd.h>
#include <sys/stat.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test_string_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <cstdint>
#include <cstdlib>
#include <limits>
#include <stdint.h>
#include <string>

#include "s3fs_logger.h"
Expand Down
4 changes: 2 additions & 2 deletions src/threadpoolman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <cerrno>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <errno.h>
#include <stdint.h>

#include "s3fs_logger.h"
#include "threadpoolman.h"
Expand Down
4 changes: 2 additions & 2 deletions test/cr_filename.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
Expand Down
6 changes: 3 additions & 3 deletions test/junk_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

// Generate junk data at high speed. An alternative to dd if=/dev/urandom.

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <cstdint>
#include <cstdio>
#include <cstdlib>

int main(int argc, const char *argv[])
{
Expand Down
9 changes: 4 additions & 5 deletions test/mknod_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#ifndef __APPLE__
#include <sys/sysmacros.h>
#endif
Expand Down
4 changes: 2 additions & 2 deletions test/truncate_read_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
Expand Down
4 changes: 2 additions & 2 deletions test/write_multiblock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <climits>
#include <list>
Expand All @@ -31,8 +33,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>

//---------------------------------------------------------
// Structures and Typedefs
Expand Down

0 comments on commit 68bbfee

Please sign in to comment.