summaryrefslogtreecommitdiff
path: root/src/htsbase.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-04-21 18:46:35 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-04-21 18:46:35 +0000
commit78173ef8190a1d5f9bab28053b0c274329533e59 (patch)
treebcb808532b5217262ccd1cfc08a33c4af30be108 /src/htsbase.h
parentaad018682d4298a476e2bca6eb8756de41fa8ca0 (diff)
Build warning cleanup.
* introduced SOClen type (aka. socklen_t)
Diffstat (limited to 'src/htsbase.h')
-rw-r--r--src/htsbase.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/htsbase.h b/src/htsbase.h
index 8bf7e2e..e144991 100644
--- a/src/htsbase.h
+++ b/src/htsbase.h
@@ -237,7 +237,7 @@ extern HTSEXT_API int htsMemoryFastXfr;
/* protected strcat, strncat and strcpy - definitely useful */
#define strcatbuff(A, B) do { \
assertf( (A) != NULL ); \
- if ( ! (B) ) { assertf( 0 ); } \
+ assertf( (B) != NULL ); \
if (htsMemoryFastXfr) { \
if (sizeof(A) != sizeof(char*)) { \
(A)[sizeof(A) - 1] = '\0'; \
@@ -263,7 +263,7 @@ extern HTSEXT_API int htsMemoryFastXfr;
} while(0)
#define strncatbuff(A, B, N) do { \
assertf( (A) != NULL ); \
- if ( ! (B) ) { assertf( 0 ); } \
+ assertf( (B) != NULL ); \
if (htsMemoryFastXfr) { \
if (sizeof(A) != sizeof(char*)) { \
(A)[sizeof(A) - 1] = '\0'; \
@@ -292,7 +292,7 @@ extern HTSEXT_API int htsMemoryFastXfr;
} while(0)
#define strcpybuff(A, B) do { \
assertf( (A) != NULL ); \
- if ( ! (B) ) { assertf( 0 ); } \
+ assertf( (const char*) (B) != NULL ); \
if (htsMemoryFastXfr) { \
if (sizeof(A) != sizeof(char*)) { \
(A)[sizeof(A) - 1] = '\0'; \
@@ -327,7 +327,7 @@ extern HTSEXT_API int htsMemoryFastXfr;
/* protected strcat, strncat and strcpy - definitely useful */
#define strcatbuff(A, B) do { \
assertf( (A) != NULL ); \
- if ( ! (B) ) { assertf( 0 ); } \
+ assertf( (B) != NULL ); \
if (sizeof(A) != sizeof(char*)) { \
(A)[sizeof(A) - 1] = '\0'; \
} \
@@ -338,7 +338,7 @@ extern HTSEXT_API int htsMemoryFastXfr;
} while(0)
#define strncatbuff(A, B, N) do { \
assertf( (A) != NULL ); \
- if ( ! (B) ) { assertf( 0 ); } \
+ assertf( (B) != NULL ); \
if (sizeof(A) != sizeof(char*)) { \
(A)[sizeof(A) - 1] = '\0'; \
} \
@@ -349,7 +349,7 @@ extern HTSEXT_API int htsMemoryFastXfr;
} while(0)
#define strcpybuff(A, B) do { \
assertf( (A) != NULL ); \
- if ( ! (B) ) { assertf( 0 ); } \
+ assertf( (B) != NULL ); \
if (sizeof(A) != sizeof(char*)) { \
(A)[sizeof(A) - 1] = '\0'; \
} \