diff options
author | joerg <joerg@pkgsrc.org> | 2013-03-02 17:55:27 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-03-02 17:55:27 +0000 |
commit | 252e28a9c69f62cdbb21a7f663b9e1d344a36a1a (patch) | |
tree | ce835ebfa3c3b997245f83f8c91a0a0fc97050b8 /sysutils | |
parent | f0264b7ad6ba1be10d7ca979d5dd1089d0ec8ecb (diff) | |
download | pkgsrc-252e28a9c69f62cdbb21a7f663b9e1d344a36a1a.tar.gz |
ANSIfy do_work.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/mesure/distinfo | 3 | ||||
-rw-r--r-- | sysutils/mesure/patches/patch-src_main.c | 33 |
2 files changed, 35 insertions, 1 deletions
diff --git a/sysutils/mesure/distinfo b/sysutils/mesure/distinfo index 8cae578de47..3a22887fd74 100644 --- a/sysutils/mesure/distinfo +++ b/sysutils/mesure/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2006/03/25 17:14:40 joerg Exp $ +$NetBSD: distinfo,v 1.3 2013/03/02 17:55:27 joerg Exp $ SHA1 (mesure-0.5.tar.gz) = 587f4cb2132b748cd127b0307269e658756a6ae3 RMD160 (mesure-0.5.tar.gz) = 8c8a60fe903bdb220f427f444b3fc80b840f5b38 Size (mesure-0.5.tar.gz) = 13374 bytes SHA1 (patch-aa) = 4f3692cf816c208178730ba3033700b840690c27 SHA1 (patch-ab) = 9a350289e763bdf60cae78eb6e827181b6d1d9c8 +SHA1 (patch-src_main.c) = c82f325885c371715540a924dc7e90fafe6a70dd diff --git a/sysutils/mesure/patches/patch-src_main.c b/sysutils/mesure/patches/patch-src_main.c new file mode 100644 index 00000000000..642d75dff7c --- /dev/null +++ b/sysutils/mesure/patches/patch-src_main.c @@ -0,0 +1,33 @@ +$NetBSD: patch-src_main.c,v 1.1 2013/03/02 17:55:27 joerg Exp $ + +--- src/main.c.orig 2013-03-01 14:14:10.000000000 +0000 ++++ src/main.c +@@ -107,8 +107,8 @@ int show_usage(char *argv0) + } + + +-int +-do_work() ++static void ++do_work(int dummy) + { + if (count != -1) + count--; +@@ -462,7 +462,7 @@ main(int argc,char **argv) + vstring[0]='\0'; + } + +- signal(SIGALRM,(void *)do_work); ++ signal(SIGALRM, do_work); + + /* init counters */ + #if HAVE_GMP +@@ -477,7 +477,7 @@ main(int argc,char **argv) + tmp = 0; + #endif + +- do_work(); ++ do_work(0); + + while(count!=0) + { |