From 7f248b0d78e02035c8d568a10d8d7ffd3792e4b6 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 2 Aug 2010 21:43:29 -0400 Subject: [PATCH] change "\0" to '\0' in the patch as character strings nad sequence of character strings are two different things. --- ocfs2-tools-gcc45.patch | 2 +- ocfs2-tools.spec | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ocfs2-tools-gcc45.patch b/ocfs2-tools-gcc45.patch index a875d78..7b0787c 100644 --- a/ocfs2-tools-gcc45.patch +++ b/ocfs2-tools-gcc45.patch @@ -14,7 +14,7 @@ diff -up ocfs2-tools-1.4.3/mount.ocfs2/mount.ocfs2.c.bak ocfs2-tools-1.4.3/mount int hb_started = 0; struct stat statbuf; -+ stackstr[0] = "\0"; ++ stackstr[0] = '\0'; + initialize_ocfs_error_table(); initialize_o2dl_error_table(); diff --git a/ocfs2-tools.spec b/ocfs2-tools.spec index c54281e..7a57938 100644 --- a/ocfs2-tools.spec +++ b/ocfs2-tools.spec @@ -6,7 +6,7 @@ Summary: Tools for managing the Ocfs2 cluster file system Name: ocfs2-tools Version: 1.4.3 -Release: 7%{?alphatag:.%{alphatag}}%{?dist} +Release: 8%{?alphatag:.%{alphatag}}%{?dist} License: GPLv2 Group: System Environment/Base # The source for this package was pulled from upstream's git repo and manually @@ -217,6 +217,10 @@ fi %{_prefix}/lib/ocf/resource.d/ocfs2 %changelog +* Mon Aug 2 2010 Toshio Kuratomi - 1.4.3-8 +- make the patch use a character string instead of a sequence of characters + string. gcc didn't complain but it seems like a better idea. + * Mon Aug 2 2010 Toshio Kuratomi - 1.4.3-7 - Patch for gcc45 compilation failures