about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-10 17:40:08 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-10 17:40:08 +0000
commitbe769b8db14427fdbecdd869f010b81512b22d0f (patch)
tree4b1f93c04d945c112cfb7bef3579fd4f4dec5034 /src
parent978c3d52701afe5ccd2fcae854b6b2bcc24bc10a (diff)
downloadmdevd-be769b8db14427fdbecdd869f010b81512b22d0f.tar.gz
mdevd-be769b8db14427fdbecdd869f010b81512b22d0f.tar.xz
mdevd-be769b8db14427fdbecdd869f010b81512b22d0f.zip
Prepare for 1.0.4.1
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/mdevd/mdevd-coldplug.c2
-rw-r--r--src/mdevd/mdevd.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mdevd/mdevd-coldplug.c b/src/mdevd/mdevd-coldplug.c
index 720a7cc..596001c 100644
--- a/src/mdevd/mdevd-coldplug.c
+++ b/src/mdevd/mdevd-coldplug.c
@@ -78,7 +78,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
   char const *slashsys = "/sys" ;
   PROG = "mdevd-coldplug" ;
   {
-    subgetopt_t l = SUBGETOPT_ZERO ;
+    subgetopt l = SUBGETOPT_ZERO ;
     for (;;)
     {
       int opt = subgetopt_r(argc, argv, "s:", &l) ;
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c
index 06324eb..cbcf2e6 100644
--- a/src/mdevd/mdevd.c
+++ b/src/mdevd/mdevd.c
@@ -524,14 +524,14 @@ static inline int wait_for_loading (char const *sysdevpath, size_t sysdevpathlen
 {
   int lfd = -1 ;
   unsigned int n = 150 ;
-  static tain_t const period = { .sec = TAI_ZERO, .nano = 200000000 } ;
+  static tain const period = { .sec = TAI_ZERO, .nano = 200000000 } ;
   char loadingfn[sysdevpathlen + 9] ;
   memcpy(loadingfn, sysdevpath, sysdevpathlen) ;
   memcpy(loadingfn + sysdevpathlen, "/loading", 9) ;
   tain_now_g() ;
   while (n--)  /* sysfs doesn't support inotify, so we have to poll -_- */
   {
-    tain_t deadline ;
+    tain deadline ;
     lfd = open_write(loadingfn) ;
     if (lfd >= 0) break ;
     tain_add_g(&deadline, &period) ;
@@ -1021,7 +1021,7 @@ int main (int argc, char const *const *argv)
   int docoldplug = 0 ;
   PROG = "mdevd" ;
   {
-    subgetopt_t l = SUBGETOPT_ZERO ;
+    subgetopt l = SUBGETOPT_ZERO ;
     for (;;)
     {
       int opt = subgetopt_r(argc, argv, "nv:D:o:b:f:s:d:F:C", &l) ;
@@ -1076,14 +1076,14 @@ int main (int argc, char const *const *argv)
   if (x[1].fd < 0) strerr_diefu1sys(111, "init netlink") ;
   x[0].fd = selfpipe_init() ;
   if (x[0].fd < 0) strerr_diefu1sys(111, "init selfpipe") ;
-  if (sig_ignore(SIGPIPE) < 0) strerr_diefu1sys(111, "ignore SIGPIPE") ;
+  if (sig_altignore(SIGPIPE) < 0) strerr_diefu1sys(111, "ignore SIGPIPE") ;
   {
     sigset_t set ;
     sigemptyset(&set) ;
     sigaddset(&set, SIGTERM) ;
     sigaddset(&set, SIGCHLD) ;
     sigaddset(&set, SIGHUP) ;
-    if (selfpipe_trapset(&set) < 0)
+    if (!selfpipe_trapset(&set))
       strerr_diefu1sys(111, "trap signals") ;
   }