Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio
nwipe
fix_not_used_variables.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_not_used_variables.patch of Package nwipe
diff -urN nwipe-0.34/src/gui.c nwipe-0.34-patch/src/gui.c --- nwipe-0.34/src/gui.c 2022-07-08 14:18:18.000000000 +0300 +++ nwipe-0.34-patch/src/gui.c 2023-08-10 09:41:38.111782877 +0300 @@ -1538,9 +1538,6 @@ /* The first tabstop. */ const int tab1 = 2; - /* The second tabstop. */ - const int tab2 = 30; - /* Set the initial focus. */ int focus = 0; @@ -1756,9 +1753,6 @@ /* The first tabstop. */ const int tab1 = 2; - /* The second tabstop. */ - const int tab2 = 30; - /* Set the initial focus. */ int focus = nwipe_options.verify; @@ -1925,9 +1919,6 @@ /* The first tabstop. */ const int tab1 = 2; - /* The second tabstop. */ - const int tab2 = 40; - /* Set the initial focus. */ int focus = nwipe_options.noblank; @@ -2531,10 +2522,6 @@ int nwipe_mm; int nwipe_ss; - struct timespec tim, tim2; - tim.tv_sec = 0; - tim.tv_nsec = 100000000L; /* sleep for 0.1 seconds */ - /* Throughput variables */ u64 nwipe_throughput; diff -urN nwipe-0.34/src/logging.c nwipe-0.34-patch/src/logging.c --- nwipe-0.34/src/logging.c 2022-07-08 14:18:18.000000000 +0300 +++ nwipe-0.34-patch/src/logging.c 2023-08-10 10:00:26.542753323 +0300 @@ -643,12 +643,8 @@ char status[9]; char throughput[13]; char total_throughput_string[13]; - char summary_top_border[256]; - char summary_top_column_titles[256]; char blank[3]; char verify[3]; - // char duration[5]; - char duration[314]; char model[18]; char serial_no[20]; char exclamation_flag[2]; @@ -664,11 +660,8 @@ device[0] = 0; status[0] = 0; throughput[0] = 0; - summary_top_border[0] = 0; - summary_top_column_titles[0] = 0; blank[0] = 0; verify[0] = 0; - duration[0] = 0; model[0] = 0; serial_no[0] = 0; hours = 0; @@ -1004,4 +997,6 @@ output[idx_dest--] = input[idx_src--]; } } + +return 0; } diff -urN nwipe-0.34/src/nwipe.c nwipe-0.34-patch/src/nwipe.c --- nwipe-0.34/src/nwipe.c 2022-07-08 14:18:18.000000000 +0300 +++ nwipe-0.34-patch/src/nwipe.c 2023-08-10 09:41:42.218524483 +0300 @@ -821,7 +821,6 @@ sigaddset( &sigset, SIGUSR1 ); int i; - char eta[9]; /* Set up the structs we will use for the data required. */ nwipe_thread_data_ptr_t* nwipe_thread_data_ptr; @@ -978,5 +977,9 @@ return; } r = pclose( fp ); + if( r < 0 ) + { + nwipe_log( NWIPE_LOG_ERROR, "Failed to close process pipe %s", cmd ); + } } } diff -urN nwipe-0.34/src/temperature.c nwipe-0.34-patch/src/temperature.c --- nwipe-0.34/src/temperature.c 2022-07-08 14:18:18.000000000 +0300 +++ nwipe-0.34-patch/src/temperature.c 2023-08-10 09:41:42.218524483 +0300 @@ -239,6 +239,11 @@ /* Acquire data until we reach a newline */ result = fscanf( fptr, "%[^\n]", temperature ); + if(result == EOF) + { + nwipe_log( NWIPE_LOG_ERROR, "hwmon: EOF in fscanf"); + } + /* Convert numeric ascii to binary integer */ *( temperature_pcontext[idx] ) = atoi( temperature );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor