summaryrefslogtreecommitdiffstats
path: root/util/diskstat.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-10 00:06:52 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-10 00:06:52 +0800
commit56e7ec2edacc18f3b323a35544dc577545eb24d4 (patch)
tree6ef013967bd762a48bfe0d003da51af614327600 /util/diskstat.c
parent428f0736872120d93a2820d5012908f1f0ab6944 (diff)
downloadpttbbs-56e7ec2edacc18f3b323a35544dc577545eb24d4.tar
pttbbs-56e7ec2edacc18f3b323a35544dc577545eb24d4.tar.gz
pttbbs-56e7ec2edacc18f3b323a35544dc577545eb24d4.tar.bz2
pttbbs-56e7ec2edacc18f3b323a35544dc577545eb24d4.tar.lz
pttbbs-56e7ec2edacc18f3b323a35544dc577545eb24d4.tar.xz
pttbbs-56e7ec2edacc18f3b323a35544dc577545eb24d4.tar.zst
pttbbs-56e7ec2edacc18f3b323a35544dc577545eb24d4.zip
use Signal instead of signal, and define the correct one in osdep.hvictor.solaris
fix compile error git-svn-id: http://opensvn.csie.org/pttbbs/branches/victor.solaris@2188 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/diskstat.c')
-rw-r--r--util/diskstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/diskstat.c b/util/diskstat.c
index 370c1a7b..1b785120 100644
--- a/util/diskstat.c
+++ b/util/diskstat.c
@@ -305,7 +305,7 @@ main(int argc, char **argv)
}
#endif
- signal(SIGINT, printresult);
+ Signal(SIGINT, printresult);
/* find out how many devices we have */
if ((num_devices = getnumdevs()) < 0)
err(1, "can't get number of devices");
@@ -424,7 +424,7 @@ main(int argc, char **argv)
* If the user stops the program (control-Z) and then resumes it,
* print out the header again.
*/
- (void)signal(SIGCONT, phdr);
+ (void)Signal(SIGCONT, phdr);
for (headercount = 1;;) {
struct devinfo *tmp_dinfo;