Fossil SCM
minor pedantic mtime "as int" casts.
Commit
770f9da54a217d3cf7b78de086a926cf1e38bf17
Parent
a52296e03402e19…
2 files changed
+3
-3
+1
-1
+3
-3
| --- src/json_artifact.c | ||
| +++ src/json_artifact.c | ||
| @@ -49,12 +49,12 @@ | ||
| 49 | 49 | artifact_f func; |
| 50 | 50 | } ArtifactDispatchEntry; |
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | /* |
| 54 | -** Generates an artifact Object for the given rid/zUuid. rid | |
| 55 | -** must refer to a Checkin. | |
| 54 | +** Generates an artifact Object for the given rid, | |
| 55 | +** which must refer to a Checkin. | |
| 56 | 56 | ** |
| 57 | 57 | ** Returned value is NULL or an Object owned by the caller. |
| 58 | 58 | */ |
| 59 | 59 | cson_value * json_artifact_for_ci( int rid, char showFiles ){ |
| 60 | 60 | char const * zParent = NULL; |
| @@ -71,11 +71,11 @@ | ||
| 71 | 71 | rid |
| 72 | 72 | ); |
| 73 | 73 | |
| 74 | 74 | db_prepare(&q, |
| 75 | 75 | "SELECT uuid, " |
| 76 | - " strftime('%%s',mtime), " | |
| 76 | + " cast(strftime('%%s',mtime) as int), " | |
| 77 | 77 | " user, " |
| 78 | 78 | " comment," |
| 79 | 79 | " strftime('%%s',omtime)" |
| 80 | 80 | " FROM blob, event" |
| 81 | 81 | " WHERE blob.rid=%d" |
| 82 | 82 |
| --- src/json_artifact.c | |
| +++ src/json_artifact.c | |
| @@ -49,12 +49,12 @@ | |
| 49 | artifact_f func; |
| 50 | } ArtifactDispatchEntry; |
| 51 | |
| 52 | |
| 53 | /* |
| 54 | ** Generates an artifact Object for the given rid/zUuid. rid |
| 55 | ** must refer to a Checkin. |
| 56 | ** |
| 57 | ** Returned value is NULL or an Object owned by the caller. |
| 58 | */ |
| 59 | cson_value * json_artifact_for_ci( int rid, char showFiles ){ |
| 60 | char const * zParent = NULL; |
| @@ -71,11 +71,11 @@ | |
| 71 | rid |
| 72 | ); |
| 73 | |
| 74 | db_prepare(&q, |
| 75 | "SELECT uuid, " |
| 76 | " strftime('%%s',mtime), " |
| 77 | " user, " |
| 78 | " comment," |
| 79 | " strftime('%%s',omtime)" |
| 80 | " FROM blob, event" |
| 81 | " WHERE blob.rid=%d" |
| 82 |
| --- src/json_artifact.c | |
| +++ src/json_artifact.c | |
| @@ -49,12 +49,12 @@ | |
| 49 | artifact_f func; |
| 50 | } ArtifactDispatchEntry; |
| 51 | |
| 52 | |
| 53 | /* |
| 54 | ** Generates an artifact Object for the given rid, |
| 55 | ** which must refer to a Checkin. |
| 56 | ** |
| 57 | ** Returned value is NULL or an Object owned by the caller. |
| 58 | */ |
| 59 | cson_value * json_artifact_for_ci( int rid, char showFiles ){ |
| 60 | char const * zParent = NULL; |
| @@ -71,11 +71,11 @@ | |
| 71 | rid |
| 72 | ); |
| 73 | |
| 74 | db_prepare(&q, |
| 75 | "SELECT uuid, " |
| 76 | " cast(strftime('%%s',mtime) as int), " |
| 77 | " user, " |
| 78 | " comment," |
| 79 | " strftime('%%s',omtime)" |
| 80 | " FROM blob, event" |
| 81 | " WHERE blob.rid=%d" |
| 82 |
+1
-1
| --- src/json_report.c | ||
| +++ src/json_report.c | ||
| @@ -100,11 +100,11 @@ | ||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | db_prepare(&q,"SELECT rn AS report," |
| 103 | 103 | " owner AS owner," |
| 104 | 104 | " title AS title," |
| 105 | - " strftime('%%s',mtime) as mtime," | |
| 105 | + " cast(strftime('%%s',mtime) as int) as mtime," | |
| 106 | 106 | " cols as columns," |
| 107 | 107 | " sqlcode as sqlCode" |
| 108 | 108 | " FROM reportfmt" |
| 109 | 109 | " WHERE rn=%d", |
| 110 | 110 | nReport); |
| 111 | 111 |
| --- src/json_report.c | |
| +++ src/json_report.c | |
| @@ -100,11 +100,11 @@ | |
| 100 | } |
| 101 | |
| 102 | db_prepare(&q,"SELECT rn AS report," |
| 103 | " owner AS owner," |
| 104 | " title AS title," |
| 105 | " strftime('%%s',mtime) as mtime," |
| 106 | " cols as columns," |
| 107 | " sqlcode as sqlCode" |
| 108 | " FROM reportfmt" |
| 109 | " WHERE rn=%d", |
| 110 | nReport); |
| 111 |
| --- src/json_report.c | |
| +++ src/json_report.c | |
| @@ -100,11 +100,11 @@ | |
| 100 | } |
| 101 | |
| 102 | db_prepare(&q,"SELECT rn AS report," |
| 103 | " owner AS owner," |
| 104 | " title AS title," |
| 105 | " cast(strftime('%%s',mtime) as int) as mtime," |
| 106 | " cols as columns," |
| 107 | " sqlcode as sqlCode" |
| 108 | " FROM reportfmt" |
| 109 | " WHERE rn=%d", |
| 110 | nReport); |
| 111 |