[Ocfs2-tools-commits] manish commits r912 - in trunk: ocfs2_hb_ctl
tunefs.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon May 23 19:42:41 CDT 2005
Author: manish
Date: 2005-05-23 19:42:39 -0500 (Mon, 23 May 2005)
New Revision: 912
Modified:
trunk/ocfs2_hb_ctl/ocfs2_hb_ctl.c
trunk/tunefs.ocfs2/tunefs.c
Log:
Clean up block_signals functions. Perhaps this should go in some library.
Modified: trunk/ocfs2_hb_ctl/ocfs2_hb_ctl.c
===================================================================
--- trunk/ocfs2_hb_ctl/ocfs2_hb_ctl.c 2005-05-24 00:31:02 UTC (rev 911)
+++ trunk/ocfs2_hb_ctl/ocfs2_hb_ctl.c 2005-05-24 00:42:39 UTC (rev 912)
@@ -28,13 +28,14 @@
static char *progname = "ocfs2_hb_ctl";
-void block_signals (int how) {
+static void block_signals(int how)
+{
sigset_t sigs;
- sigfillset (&sigs);
+ sigfillset(&sigs);
sigdelset(&sigs, SIGTRAP);
sigdelset(&sigs, SIGSEGV);
- sigprocmask (how, &sigs, (sigset_t *) 0);
+ sigprocmask(how, &sigs, NULL);
}
static errcode_t get_uuid(char *dev, char *uuid)
Modified: trunk/tunefs.ocfs2/tunefs.c
===================================================================
--- trunk/tunefs.ocfs2/tunefs.c 2005-05-24 00:31:02 UTC (rev 911)
+++ trunk/tunefs.ocfs2/tunefs.c 2005-05-24 00:42:39 UTC (rev 912)
@@ -126,9 +126,7 @@
sigfillset(&sigs);
sigdelset(&sigs, SIGTRAP);
sigdelset(&sigs, SIGSEGV);
- sigprocmask(how, &sigs, (sigset_t *) 0);
-
- return ;
+ sigprocmask(how, &sigs, NULL);
}
static int get_number(char *arg, uint64_t *res)
More information about the Ocfs2-tools-commits
mailing list