diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-09-05 05:23:31 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-09-05 05:23:31 +0000 |
commit | eda37108f2a83c7944b1c0f63162647eddc9960d (patch) | |
tree | fd5990953d5dd017796554ff5d0c7efd407e64fa /src/sg_dd.c | |
parent | 7e7308a2dbdec4c900b0805ad94324d3a288a163 (diff) | |
download | sg3_utils-eda37108f2a83c7944b1c0f63162647eddc9960d.tar.gz |
sg_inq+sg_vpd: ongoing updates; rescan_scsi_bus.sh
https://github.com/doug-gilbert/sg3_utils/pull/21
change to rescan_scsi_bus.sh was applied in an
earlier commit but not noted.
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@970 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_dd.c')
-rw-r--r-- | src/sg_dd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sg_dd.c b/src/sg_dd.c index 8392f31d..e099c335 100644 --- a/src/sg_dd.c +++ b/src/sg_dd.c @@ -70,7 +70,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "6.34 20220729"; +static const char * version_str = "6.35 20220826"; #define ME "sg_dd: " @@ -214,16 +214,16 @@ static void calc_duration_throughput(bool contin); static void -install_handler(int sig_num, void (*sig_handler) (int sig)) +install_handler(int sig_num, void (*sig_handler)(int sig)) { struct sigaction sigact; - sigaction (sig_num, NULL, &sigact); - if (sigact.sa_handler != SIG_IGN) - { + + sigaction(sig_num, NULL, &sigact); + if (sigact.sa_handler != SIG_IGN) { sigact.sa_handler = sig_handler; - sigemptyset (&sigact.sa_mask); + sigemptyset(&sigact.sa_mask); sigact.sa_flags = 0; - sigaction (sig_num, &sigact, NULL); + sigaction(sig_num, &sigact, NULL); } } |