From b1ce226af8b61ad7e3c37860a59c6715012e738b Mon Sep 17 00:00:00 2001 From: James Peach Date: Fri, 15 Jun 2007 21:58:49 +0000 Subject: r23510: Tidy calls to smb_panic by removing trailing newlines. Print the failed expression in SMB_ASSERT. (This used to be commit 171dc060e2a576d724eed1ca65636bdafffd7713) --- source3/lib/smbldap.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'source3/lib/smbldap.c') diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index f8cb8f4a25..1cfb5f89a7 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -409,9 +409,8 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = { if (mods == NULL) { mods = SMB_MALLOC_P(LDAPMod *); if (mods == NULL) { - smb_panic("smbldap_set_mod: out of memory!\n"); + smb_panic("smbldap_set_mod: out of memory!"); /* notreached. */ - abort(); } mods[0] = NULL; } @@ -424,15 +423,13 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = { if (mods[i] == NULL) { mods = SMB_REALLOC_ARRAY (mods, LDAPMod *, i + 2); if (mods == NULL) { - smb_panic("smbldap_set_mod: out of memory!\n"); + smb_panic("smbldap_set_mod: out of memory!"); /* notreached. */ - abort(); } mods[i] = SMB_MALLOC_P(LDAPMod); if (mods[i] == NULL) { - smb_panic("smbldap_set_mod: out of memory!\n"); + smb_panic("smbldap_set_mod: out of memory!"); /* notreached. */ - abort(); } mods[i]->mod_op = modop; mods[i]->mod_values = NULL; @@ -450,15 +447,13 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = { mods[i]->mod_values = SMB_REALLOC_ARRAY(mods[i]->mod_values, char *, j + 2); if (mods[i]->mod_values == NULL) { - smb_panic("smbldap_set_mod: out of memory!\n"); + smb_panic("smbldap_set_mod: out of memory!"); /* notreached. */ - abort(); } if (push_utf8_allocate(&utf8_value, value) == (size_t)-1) { - smb_panic("smbldap_set_mod: String conversion failure!\n"); + smb_panic("smbldap_set_mod: String conversion failure!"); /* notreached. */ - abort(); } mods[i]->mod_values[j] = utf8_value; -- cgit