~ubuntu-branches/ubuntu/lucid/incron/lucid

« back to all changes in this revision

Viewing changes to debian/patches/fix_ftbfs_gcc44

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Bouthenot
  • Date: 2009-11-24 21:14:25 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091124211425-0s2d4u2lmjrvx4to
Tags: 0.5.9-4
Add status command to init script (Closes: #557805).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 #include <fcntl.h>
22
22
--- a/usertable.cpp
23
23
+++ b/usertable.cpp
24
 
@@ -26,6 +26,7 @@
 
24
@@ -27,6 +27,7 @@
25
25
 #include <stdlib.h>
26
26
 #include <sys/stat.h>
27
27
 #include <cstring>
39
39
 
40
40
 #include "strtok.h"
41
41
 
 
42
--- a/incroncfg.cpp
 
43
+++ b/incroncfg.cpp
 
44
@@ -181,10 +181,10 @@
 
45
 
 
46
 bool IncronCfg::IsComment(const char* s)
 
47
 {
 
48
-  char* sx = strchr(s, '#');
 
49
+  const char* sx = strchr(s, '#');
 
50
   if (sx == NULL)
 
51
     return false;
 
52
-    
 
53
+
 
54
   size_t len = sx - s;
 
55
   for (size_t i = 0; i < len; i++) {
 
56
     if (!(s[i] == ' ' || s[i] == '\t'))