rpms/feh/devel feh-1.3.4-missing-protos.patch, NONE, 1.1 feh.spec, 1.11, 1.12

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Thu Apr 3 11:11:12 UTC 2008


Author: jwrdegoede

Update of /cvs/extras/rpms/feh/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8623

Modified Files:
	feh.spec 
Added Files:
	feh-1.3.4-missing-protos.patch 
Log Message:
* Thu Apr  3 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.3.4-7
- Fix missing prototype compiler warnings


feh-1.3.4-missing-protos.patch:

--- NEW FILE feh-1.3.4-missing-protos.patch ---
diff -up feh-1.3.4/src/md5.c~ feh-1.3.4/src/md5.c
--- feh-1.3.4/src/md5.c~	2008-04-03 12:04:52.000000000 +0200
+++ feh-1.3.4/src/md5.c	2008-04-03 12:04:52.000000000 +0200
@@ -39,6 +39,7 @@
  */
 
 #include "md5.h"
+#include <string.h>
 
 #ifdef TEST
 /*
@@ -46,7 +47,6 @@
  * The test program should print out the same values as given in section
  * A.5 of RFC 1321, reproduced below.
  */
-#include <string.h>
 main()
 {
     static const char *const test[7] = {
diff -up feh-1.3.4/src/support.c~ feh-1.3.4/src/support.c
--- feh-1.3.4/src/support.c~	2008-04-03 12:04:32.000000000 +0200
+++ feh-1.3.4/src/support.c	2008-04-03 12:04:32.000000000 +0200
@@ -233,7 +233,7 @@ feh_wm_set_bg(char *fil, Imlib_Image im,
           char *path;
           path = estrjoin("/", home, ".fehbg", NULL);
           if ((fp = fopen(path, "w")) == NULL) {
-	     wprintf("Can't open %s for write", path);
+	     weprintf("Can't open %s for write", path);
           } else {
              fprintf(fp, "%s\n", fehbg);
              fclose(fp);
diff -up feh-1.3.4/src/feh.h~ feh-1.3.4/src/feh.h
--- feh-1.3.4/src/feh.h~	2008-04-03 11:56:29.000000000 +0200
+++ feh-1.3.4/src/feh.h	2008-04-03 11:56:29.000000000 +0200
@@ -148,7 +148,7 @@ void feh_edit_inplace_lossless_rotate(wi
 gib_list * feh_wrap_string(char *text, int wrap_width, int max_height, Imlib_Font fn, gib_style * style);
 char *build_caption_filename(feh_file *file);
 gib_list * feh_list_jump(gib_list * root, gib_list * l, int direction, int num);
-
+void feh_draw_actions(winwidget w);
 
 /* Imlib stuff */
 extern Display *disp;


Index: feh.spec
===================================================================
RCS file: /cvs/extras/rpms/feh/devel/feh.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- feh.spec	19 Feb 2008 08:21:50 -0000	1.11
+++ feh.spec	3 Apr 2008 11:10:30 -0000	1.12
@@ -3,12 +3,13 @@
 
 Name:         	feh 
 Version:        1.3.4
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Fast command line image viewer using Imlib2
 Group:          Applications/Multimedia
 License:        MIT
 URL:            http://linuxbrit.co.uk/feh/
 Source0:        http://linuxbrit.co.uk/downloads/feh-%{version}.tar.gz
+Patch0:         feh-1.3.4-missing-protos.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  giblib-devel imlib2-devel libjpeg-devel libpng-devel
 BuildRequires:  libXt-devel
@@ -23,6 +24,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 
 %build
@@ -49,6 +51,9 @@
 %{_mandir}/man[^3]/*
 
 %changelog
+* Thu Apr  3 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.3.4-7
+- Fix missing prototype compiler warnings
+
 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 1.3.4-6
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list