~ubuntu-branches/ubuntu/gutsy/skksearch/gutsy

« back to all changes in this revision

Viewing changes to debian/patches/clean-build-errors-and-warnings.diff

  • Committer: Bazaar Package Importer
  • Author(s): Noritada Kobayashi
  • Date: 2007-04-23 23:31:41 UTC
  • Revision ID: james.westby@ubuntu.com-20070423233141-c4g4011ogbezfe0v
Tags: 0.0-14
* Switch the patch management system from dpatch to quilt.
* debian/patches/clean-build-errors-and-warnings.diff: A new patch to clean
  build errors and warnings from gcc (currently gcc 4.1.1).
* debian/skksearch.install: A new file to clean up the installation of
  debhelper-independently installed files.
* debian/skksearch.conf: Add an entry for SKK-JISYO.JIS2004, a new
  dictionary provided by the skkdic-extra package since its version
  20070411-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
clean-build-errors-and-warnings.diff by Noritada Kobayashi
 
2
<nori1@dolphin.c.u-tokyo.ac.jp>
 
3
 
 
4
Clean build errors and warnings from gcc.
 
5
Index: skksearch-0.0/main.c
 
6
===================================================================
 
7
--- skksearch-0.0.orig/main.c   2007-04-23 21:41:05.000000000 +0900
 
8
+++ skksearch-0.0/main.c        2007-04-23 21:41:05.000000000 +0900
 
9
@@ -15,6 +15,7 @@
 
10
 #include <stdio.h>
 
11
 #include <stdlib.h>
 
12
 #include <string.h>
 
13
+#include <unistd.h>
 
14
 
 
15
 #include "config.h"
 
16
 
 
17
@@ -60,11 +61,10 @@
 
18
 void searchdicts();
 
19
 
 
20
 
 
21
-main(int argc, char *argv[]) {
 
22
+int main(int argc, char *argv[]) {
 
23
   int c;
 
24
   int s;
 
25
   int i;
 
26
-  char *p;
 
27
   int errflag = 0;
 
28
   int terminal = 0;
 
29
   char *conf = NULL;
 
30
Index: skksearch-0.0/dic_cdb.c
 
31
===================================================================
 
32
--- skksearch-0.0.orig/dic_cdb.c        2007-04-23 21:40:22.000000000 +0900
 
33
+++ skksearch-0.0/dic_cdb.c     2007-04-23 21:48:04.000000000 +0900
 
34
@@ -15,6 +15,7 @@
 
35
 #include <stdlib.h>
 
36
 #include <sys/types.h>
 
37
 #include <sys/stat.h>
 
38
+#include <unistd.h>
 
39
 #include <fcntl.h>
 
40
 #include <errno.h>
 
41
 #include <string.h>
 
42
@@ -42,7 +43,7 @@
 
43
 }
 
44
 
 
45
 char *dic_cdb_search(struct dic *d, char *key, int keylen) {
 
46
-  int dlen;
 
47
+  unsigned int dlen;
 
48
   int fd = ((struct dic_cdb_internal *)(d->internal))->fd;
 
49
   char *buf = d->buf;
 
50