File: conflicting-function-declarations.patch

package info (click to toggle)
avra 1.3.0-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 2,704 kB
  • sloc: pascal: 31,903; ansic: 6,415; asm: 758; sh: 84; makefile: 46
file content (19 lines) | stat: -rw-r--r-- 633 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Use proper function return types
 Function declaration and definition return types should not differ.
Author: Michael Tautschnig <mt@debian.org>
Bug: http://sourceforge.net/p/avra/patches/15/
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/avra.h
+++ b/src/avra.h
@@ -347,8 +347,8 @@
 char *Space(char *n);
 
 /* stdextra.c */
-char *nocase_strcmp(char *s, char *t);
-char *nocase_strncmp(char *s, char *t, int n);
+int nocase_strcmp(char *s, char *t);
+int nocase_strncmp(char *s, char *t, int n);
 char *nocase_strstr(char *s, char *t);
 int atox(char *s);
 int atoi_n(char *s, int n);