pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/modeline Fix prototype of main
details: https://anonhg.NetBSD.org/pkgsrc/rev/4c449e1a6a57
branches: trunk
changeset: 607373:4c449e1a6a57
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Aug 10 18:00:14 2012 +0000
description:
Fix prototype of main
diffstat:
x11/modeline/distinfo | 4 ++--
x11/modeline/patches/patch-aa | 19 ++++++++++++++-----
2 files changed, 16 insertions(+), 7 deletions(-)
diffs (55 lines):
diff -r cd7f07a29ccb -r 4c449e1a6a57 x11/modeline/distinfo
--- a/x11/modeline/distinfo Fri Aug 10 17:59:45 2012 +0000
+++ b/x11/modeline/distinfo Fri Aug 10 18:00:14 2012 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 17:36:17 wiz Exp $
+$NetBSD: distinfo,v 1.4 2012/08/10 18:00:14 joerg Exp $
SHA1 (modeline_vfr.c) = 8db682f68362679938886a27068d3044ae643011
RMD160 (modeline_vfr.c) = 9c0e9c5b66ec585fa8edeae41784f8bb4516cc01
Size (modeline_vfr.c) = 2416 bytes
-SHA1 (patch-aa) = 807922d09951c992b2c2e92d0570b2b2dfe9d6de
+SHA1 (patch-aa) = d8d425c25814f23e0bec4cc1b3cbff8405e9cdec
diff -r cd7f07a29ccb -r 4c449e1a6a57 x11/modeline/patches/patch-aa
--- a/x11/modeline/patches/patch-aa Fri Aug 10 17:59:45 2012 +0000
+++ b/x11/modeline/patches/patch-aa Fri Aug 10 18:00:14 2012 +0000
@@ -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 @@
* 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 @@
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);
Home |
Main Index |
Thread Index |
Old Index