Control: tags -1 patch
A fix for the dbf2mysql FTBFS with gcc 7 is attached.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Description: Make strtoupper/strtolower static inline
This seems to have been intended,
and the static makes gcc 7 happy.
Author: Adrian Bunk <[email protected]>
Bug-Debian: https://bugs.debian.org/853368
--- dbf2mysql-1.14a.orig/dbf2mysql.c
+++ dbf2mysql-1.14a/dbf2mysql.c
@@ -41,21 +41,19 @@ char *convert = NULL;
void do_onlyfields (char *flist, dbhead *dbh);
void do_substitute(char *subarg, dbhead *dbh);
-inline void strtoupper(char *string);
-inline void strtolower(char *string);
void do_create(MYSQL *, char*, dbhead*);
void do_inserts(MYSQL *, char*, dbhead*);
int check_table(MYSQL *, char*);
void usage(void);
-inline void strtoupper(char *string) {
+static inline void strtoupper(char *string) {
while(*string != '\0') {
*string = toupper(*string);
string++;
}
}
-inline void strtolower(char *string) {
+static inline void strtolower(char *string) {
while(*string != '\0') {
*string = tolower(*string);
string++;
--- dbf2mysql-1.14a.orig/mysql2dbf.c
+++ dbf2mysql-1.14a/mysql2dbf.c
@@ -21,18 +21,16 @@ char *table = NULL;
char *pass = NULL;
char *user = NULL;
-inline void strtoupper(char *string);
-inline void strtolower(char *string);
void usage(void);
-inline void strtoupper(char *string) {
+static inline void strtoupper(char *string) {
while(*string != '\0') {
*string = toupper(*string);
string++;
}
}
-inline void strtolower(char *string) {
+static inline void strtolower(char *string) {
while(*string != '\0') {
*string = tolower(*string);
string++;