Statistics
| Branch: | Revision:

imlightsw / patch / ajson-void-flush.patch @ af6f2445

History | View | Annotate | Download (753 Bytes)

1
diff --git a/aJSON.cpp b/aJSON.cpp
2
index 1bb9320..158ff88 100644
3
--- a/aJSON.cpp
4
+++ b/aJSON.cpp
5
@@ -510,7 +510,7 @@ aJsonStream::skip()
6
 // Utility to flush our buffer in case it contains garbage
7
 // since the parser will return the buffer untouched if it
8
 // cannot understand it.
9
-int
10
+void
11
 aJsonStream::flush()
12
 {
13
   int in = this->getch();
14
@@ -518,7 +518,7 @@ aJsonStream::flush()
15
   {
16
     in = this->getch();
17
   }
18
-  return EOF;
19
+  // return EOF;
20
 }
21
 
22
 
23
diff --git a/aJSON.h b/aJSON.h
24
index a409a92..8f60c2f 100644
25
--- a/aJSON.h
26
+++ b/aJSON.h
27
@@ -89,7 +89,7 @@ public:
28
         int printString(aJsonObject *item);
29
 
30
         int skip();
31
-        int flush();
32
+        void flush();
33
 
34
         int parseValue(aJsonObject *item, char** filter);
35
         int printValue(aJsonObject *item);