Fossil SCM

Add <tt>const</tt> qualifier to the arguments of the <tt>blob_compare()</tt> function.

george 2022-02-08 13:39 markdown-footnotes
Commit 2822b63b394adf95e7f61134525901a93387ec22285459aa1321725543868b30
1 file changed +1 -1
+1 -1
--- src/blob.c
+++ src/blob.c
@@ -503,11 +503,11 @@
503503
504504
/*
505505
** Compare two blobs. Return negative, zero, or positive if the first
506506
** blob is less then, equal to, or greater than the second.
507507
*/
508
-int blob_compare(Blob *pA, Blob *pB){
508
+int blob_compare(const Blob *pA, const Blob *pB){
509509
int szA, szB, sz, rc;
510510
blob_is_init(pA);
511511
blob_is_init(pB);
512512
szA = blob_size(pA);
513513
szB = blob_size(pB);
514514
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button