diff options
author | joerg <joerg@pkgsrc.org> | 2012-08-10 18:00:14 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-08-10 18:00:14 +0000 |
commit | c1a23979a590ed76ef7c3332dbf20f1716038e80 (patch) | |
tree | d42187c1b78ee72eb403b13beb664a5857b308b8 /x11/modeline/patches/patch-aa | |
parent | 53c1112fc7307c1d86e5b71804ee488e97ccad60 (diff) | |
download | pkgsrc-c1a23979a590ed76ef7c3332dbf20f1716038e80.tar.gz |
Fix prototype of main
Diffstat (limited to 'x11/modeline/patches/patch-aa')
-rw-r--r-- | x11/modeline/patches/patch-aa | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/x11/modeline/patches/patch-aa b/x11/modeline/patches/patch-aa index 0c090b5d205..e5663321645 100644 --- a/x11/modeline/patches/patch-aa +++ b/x11/modeline/patches/patch-aa @@ -1,9 +1,9 @@ -$NetBSD: patch-aa,v 1.1.1.1 2000/11/28 16:34:11 agc Exp $ +$NetBSD: patch-aa,v 1.2 2012/08/10 18:00:14 joerg Exp $ Check that the proper arguments are given. ---- modeline_vfr.c 2000/11/28 16:11:46 1.1 -+++ modeline_vfr.c 2000/11/28 16:13:41 +--- modeline_vfr.c.orig 2012-08-10 12:53:32.000000000 +0000 ++++ modeline_vfr.c @@ -6,7 +6,7 @@ * * Use on your own risk. @@ -13,7 +13,16 @@ Check that the proper arguments are given. * Output: Modeline * * Example use: -@@ -44,6 +44,12 @@ +@@ -20,7 +20,7 @@ + #include<stdlib.h> + + int +-main( char argc, char** argv ) ++main( int argc, char** argv ) + { + float hr,vr; + float dcf; +@@ -44,6 +44,12 @@ main( char argc, char** argv ) float step =10; float s_rr; @@ -26,7 +35,7 @@ Check that the proper arguments are given. sscanf(argv[1],"%f",&hr); sscanf(argv[2],"%f",&vr); sscanf(argv[3],"%f",&s_rr); -@@ -88,7 +94,7 @@ +@@ -88,7 +94,7 @@ do{ printf(" Vertical Resolution: %4.0f \n",vr); printf(" Vertical Refresh Rate: %4.2f Hz \n",rr); printf(" Horizontal Refresh Rate: %4.2f KHz \n",hsf); |