@@ -74,12 +74,9 @@ static HINSTANCE libjvm_handle = NULL;
7474// NOTE(wesm): cpplint does not like use of short and other imprecise C types
7575
7676static hdfsBuilder* (*ptr_hdfsNewBuilder)(void ) = NULL ;
77- static void (*ptr_hdfsBuilderSetNameNode)(
78- hdfsBuilder* bld, const char * nn) = NULL;
79- static void (*ptr_hdfsBuilderSetNameNodePort)(
80- hdfsBuilder* bld, tPort port) = NULL;
81- static void (*ptr_hdfsBuilderSetUserName)(
82- hdfsBuilder* bld, const char * userName) = NULL;
77+ static void (*ptr_hdfsBuilderSetNameNode)(hdfsBuilder* bld, const char * nn) = NULL;
78+ static void (*ptr_hdfsBuilderSetNameNodePort)(hdfsBuilder* bld, tPort port) = NULL;
79+ static void (*ptr_hdfsBuilderSetUserName)(hdfsBuilder* bld, const char * userName) = NULL;
8380static void (*ptr_hdfsBuilderSetKerbTicketCachePath)(
8481 hdfsBuilder* bld, const char * kerbTicketCachePath) = NULL;
8582static hdfsFS (*ptr_hdfsBuilderConnect)(hdfsBuilder* bld) = NULL;
@@ -173,9 +170,9 @@ void hdfsBuilderSetUserName(hdfsBuilder* bld, const char* userName) {
173170 ptr_hdfsBuilderSetUserName (bld, userName);
174171}
175172
176- void hdfsBuilderSetKerbTicketCachePath (hdfsBuilder* bld,
177- const char * kerbTicketCachePath) {
178- ptr_hdfsBuilderSetKerbTicketCachePath (bld , kerbTicketCachePath);
173+ void hdfsBuilderSetKerbTicketCachePath (
174+ hdfsBuilder* bld, const char * kerbTicketCachePath) {
175+ ptr_hdfsBuilderSetKerbTicketCachePath (bld, kerbTicketCachePath);
179176}
180177
181178hdfsFS hdfsBuilderConnect (hdfsBuilder* bld) {
@@ -364,7 +361,7 @@ static std::vector<fs::path> get_potential_libhdfs_paths() {
364361 std::vector<fs::path> libhdfs_potential_paths;
365362 std::string file_name;
366363
367- // OS-specific file name
364+ // OS-specific file name
368365#ifdef __WIN32
369366 file_name = " hdfs.dll" ;
370367#elif __APPLE__
@@ -374,10 +371,7 @@ static std::vector<fs::path> get_potential_libhdfs_paths() {
374371#endif
375372
376373 // Common paths
377- std::vector<fs::path> search_paths = {
378- fs::path (" " ),
379- fs::path (" ." )
380- };
374+ std::vector<fs::path> search_paths = {fs::path (" " ), fs::path (" ." )};
381375
382376 // Path from environment variable
383377 const char * hadoop_home = std::getenv (" HADOOP_HOME" );
@@ -387,9 +381,7 @@ static std::vector<fs::path> get_potential_libhdfs_paths() {
387381 }
388382
389383 const char * libhdfs_dir = std::getenv (" ARROW_LIBHDFS_DIR" );
390- if (libhdfs_dir != nullptr ) {
391- search_paths.push_back (fs::path (libhdfs_dir));
392- }
384+ if (libhdfs_dir != nullptr ) { search_paths.push_back (fs::path (libhdfs_dir)); }
393385
394386 // All paths with file name
395387 for (auto & path : search_paths) {
0 commit comments