summaryrefslogtreecommitdiff
path: root/misc/snowflake/files
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-11-10 19:31:11 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-11-10 19:31:11 +0000
commitff283bd66d5a112bea98f901f4bfe72552a3794c (patch)
tree7dafaca3211e60955df15fc3d871a68963d88c80 /misc/snowflake/files
parent* Update to 0.132 (diff)
- Fix MASTER_SITES
- Avoid some compiler warnings - Remove obsolete WWW: line - Bump PORTREVISION PR: 59129 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=93686
Diffstat (limited to 'misc/snowflake/files')
-rw-r--r--misc/snowflake/files/patch-sf.c44
-rw-r--r--misc/snowflake/files/patch-sf.h10
-rw-r--r--misc/snowflake/files/patch-sf_control.c11
3 files changed, 65 insertions, 0 deletions
diff --git a/misc/snowflake/files/patch-sf.c b/misc/snowflake/files/patch-sf.c
new file mode 100644
index 000000000000..2731b1a53807
--- /dev/null
+++ b/misc/snowflake/files/patch-sf.c
@@ -0,0 +1,44 @@
+--- sf.c.orig Mon Dec 21 08:18:55 1998
++++ sf.c Sat Nov 8 21:20:24 2003
+@@ -47,6 +47,7 @@
+
+ struct option long_options[] =
+ {
++ { "version", 0, 0, c_VERSION },
+ { "view-geometry", 1, 0, c_VIEW_GEOMETRY },
+ { "control-geometry", 1, 0, c_CONTROL_GEOMETRY },
+ { "minimize", 0, 0, c_MINIMIZE },
+@@ -77,6 +78,8 @@
+
+ help_info_line help_info[] =
+ {
++ { "version", c_VERSION, " ",
++ "show program version" },
+ { "view-geometry", c_VIEW_GEOMETRY, "+x+y",
+ "Control window placement" },
+ { "control-geometry", c_CONTROL_GEOMETRY, "+x+y",
+@@ -134,7 +137,7 @@
+
+ /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
+
+-void main( int argc,char* argv[] )
++int main( int argc,char* argv[] )
+ {
+ int i;
+ char* shop;
+@@ -175,7 +178,14 @@
+ help_info[i].description );
+
+ exit( 0 );
+- }
++ }
++ /* asking for version? */
++ if ( ( strncmp( argv[1], "-V", 2 ) == 0 ) ||
++ ( strncmp( argv[1],"--version",3 ) == 0 ) )
++ {
++ printf( "%s - %s\n",program_name,version );
++ exit( 0 );
++ }
+ }
+
+ /* create shared memory image and mutex */
diff --git a/misc/snowflake/files/patch-sf.h b/misc/snowflake/files/patch-sf.h
new file mode 100644
index 000000000000..b6ef9deb2c58
--- /dev/null
+++ b/misc/snowflake/files/patch-sf.h
@@ -0,0 +1,10 @@
+--- sf.h.orig Mon Dec 21 08:18:55 1998
++++ sf.h Sat Nov 8 21:20:24 2003
+@@ -17,6 +17,7 @@
+
+ typedef enum
+ {
++ c_VERSION = 'V',
+ c_VIEW_GEOMETRY = 'v',
+ c_CONTROL_GEOMETRY = 'c',
+ c_MINIMIZE = 'm',
diff --git a/misc/snowflake/files/patch-sf_control.c b/misc/snowflake/files/patch-sf_control.c
new file mode 100644
index 000000000000..364d3dd000b5
--- /dev/null
+++ b/misc/snowflake/files/patch-sf_control.c
@@ -0,0 +1,11 @@
+--- sf_control.c.orig Mon Dec 21 08:18:55 1998
++++ sf_control.c Sat Nov 8 21:20:24 2003
+@@ -266,7 +266,7 @@
+ static char xpm_filespec[MAX_FILESPEC+1] = { 0 };
+
+ static char design_filespec[MAX_FILESPEC+1] = { 0 };
+-static char design_line = -1;
++static signed char design_line = -1;
+ static FILE* design_file = (FILE*)0;
+
+ /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */