Skip to content

Commit 0ea216c

Browse files
author
Alexey Pechnikov
committed
Fix gcc compilation warnings. Add compilation instruction to README
1 parent ef7d368 commit 0ea216c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Converter of XBase/FoxPro tables to SQLite
66
SQLiteDBF converts XBase databases, particularly FoxPro tables with memo files, into a SQL dump. It has no dependencies other than standard Unix libraries.
77
This use codebase of the PgDBF project (http://pgdbf.sourceforge.net/) which designed to be incredibly fast and as efficient as possible.
88

9+
# Compilation
10+
11+
```gcc sqlite3-dbf.c -o sqlite3-dbf```
12+
913
# Usage
1014

1115
When terminal encoding is same to dBase file encoding the usage is very simple:

sqlite3-dbf.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ int main(int argc, char **argv)
126126
printf(" -h print this message and exit\n");
127127
printf(" -m the name of the associated memo file (if necessary)\n");
128128
printf("\n");
129-
printf("%s is copyright 2010 Alexey Pechnikov\n");
129+
printf("SQLite3-DBF is copyright 2010 Alexey Pechnikov\n");
130130
printf("Utility based on source code of PgDBF (c) 2009 Daycos\n");
131131
printf("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n");
132132
printf("This is free software: you are free to change and redistribute it.\n");
@@ -493,7 +493,7 @@ int main(int argc, char **argv)
493493
break;
494494
case 'Y':
495495
/* Currency */
496-
t = outputbuffer + sprintf(outputbuffer, "%05jd", slittleint64_t(bufoffset));
496+
t = outputbuffer + sprintf(outputbuffer, "%05jd", (intmax_t)slittleint64_t(bufoffset));
497497
*(t + 1) = '\0';
498498
*(t) = *(t - 1);
499499
*(t - 1) = *(t - 2);

0 commit comments

Comments
 (0)