Fossil SCM
Add <tt>const</tt> qualifier to the arguments of the <tt>blob_compare()</tt> function.
Commit
2822b63b394adf95e7f61134525901a93387ec22285459aa1321725543868b30
Parent
1787f6df11bbbe4…
1 file changed
+1
-1
+1
-1
| --- src/blob.c | ||
| +++ src/blob.c | ||
| @@ -503,11 +503,11 @@ | ||
| 503 | 503 | |
| 504 | 504 | /* |
| 505 | 505 | ** Compare two blobs. Return negative, zero, or positive if the first |
| 506 | 506 | ** blob is less then, equal to, or greater than the second. |
| 507 | 507 | */ |
| 508 | -int blob_compare(Blob *pA, Blob *pB){ | |
| 508 | +int blob_compare(const Blob *pA, const Blob *pB){ | |
| 509 | 509 | int szA, szB, sz, rc; |
| 510 | 510 | blob_is_init(pA); |
| 511 | 511 | blob_is_init(pB); |
| 512 | 512 | szA = blob_size(pA); |
| 513 | 513 | szB = blob_size(pB); |
| 514 | 514 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -503,11 +503,11 @@ | |
| 503 | |
| 504 | /* |
| 505 | ** Compare two blobs. Return negative, zero, or positive if the first |
| 506 | ** blob is less then, equal to, or greater than the second. |
| 507 | */ |
| 508 | int blob_compare(Blob *pA, Blob *pB){ |
| 509 | int szA, szB, sz, rc; |
| 510 | blob_is_init(pA); |
| 511 | blob_is_init(pB); |
| 512 | szA = blob_size(pA); |
| 513 | szB = blob_size(pB); |
| 514 |
| --- src/blob.c | |
| +++ src/blob.c | |
| @@ -503,11 +503,11 @@ | |
| 503 | |
| 504 | /* |
| 505 | ** Compare two blobs. Return negative, zero, or positive if the first |
| 506 | ** blob is less then, equal to, or greater than the second. |
| 507 | */ |
| 508 | int blob_compare(const Blob *pA, const Blob *pB){ |
| 509 | int szA, szB, sz, rc; |
| 510 | blob_is_init(pA); |
| 511 | blob_is_init(pB); |
| 512 | szA = blob_size(pA); |
| 513 | szB = blob_size(pB); |
| 514 |