Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/public-domain/sqlite/dist Mark the functions get2by...



details:   https://anonhg.NetBSD.org/src/rev/38276695da90
branches:  trunk
changeset: 346239:38276695da90
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Sun Jul 03 09:27:25 2016 +0000

description:
Mark the functions get2byteInt and get4byteInt as static to avoid -Werror=missing-prototypes problems.

diffstat:

 external/public-domain/sqlite/dist/shell.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 6a3956d44e85 -r 38276695da90 external/public-domain/sqlite/dist/shell.c
--- a/external/public-domain/sqlite/dist/shell.c        Sun Jul 03 09:24:29 2016 +0000
+++ b/external/public-domain/sqlite/dist/shell.c        Sun Jul 03 09:27:25 2016 +0000
@@ -2946,10 +2946,10 @@
 /*
 ** Convert a 2-byte or 4-byte big-endian integer into a native integer
 */
-unsigned int get2byteInt(unsigned char *a){
+static unsigned int get2byteInt(unsigned char *a){
   return (a[0]<<8) + a[1];
 }
-unsigned int get4byteInt(unsigned char *a){
+static unsigned int get4byteInt(unsigned char *a){
   return (a[0]<<24) + (a[1]<<16) + (a[2]<<8) + a[3];
 }
 



Home | Main Index | Thread Index | Old Index