summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-23 13:33:10 +0100
committerVolker Lendecke <vl@samba.org>2010-01-23 14:35:37 +0100
commit8905b599b467f0595cf5874b7e36d9a650f8544a (patch)
tree7b03b168fabe2742d044923c6722072759a070cd /source3/lib
parent4c548048c55ab3b7c79f5317281988b446c7fbf2 (diff)
downloadsamba-8905b599b467f0595cf5874b7e36d9a650f8544a.tar.gz
samba-8905b599b467f0595cf5874b7e36d9a650f8544a.tar.bz2
samba-8905b599b467f0595cf5874b7e36d9a650f8544a.zip
s3: Fix some nonempty blank lines
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sid.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index 1f47bf35f0..a181502a89 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -7,17 +7,17 @@
Copyright (C) Stefan (metze) Metzmacher 2002
Copyright (C) Simo Sorce 2002
Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2005
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -216,14 +216,14 @@ char *sid_string_tos(const DOM_SID *sid)
/*****************************************************************
Convert a string to a SID. Returns True on success, False on fail.
*****************************************************************/
-
+
bool string_to_sid(DOM_SID *sidout, const char *sidstr)
{
const char *p;
char *q;
/* BIG NOTE: this function only does SIDS where the identauth is not >= 2^32 */
uint32 conv;
-
+
if ((sidstr[0] != 'S' && sidstr[0] != 's') || sidstr[1] != '-') {
DEBUG(3,("string_to_sid: Sid %s does not start with 'S-'.\n", sidstr));
return False;
@@ -267,7 +267,7 @@ bool string_to_sid(DOM_SID *sidout, const char *sidstr)
break;
q++;
}
-
+
return True;
}
@@ -325,7 +325,7 @@ bool sid_peek_rid(const DOM_SID *sid, uint32 *rid)
{
if (!sid || !rid)
return False;
-
+
if (sid->num_auths > 0) {
*rid = sid->sub_auths[sid->num_auths - 1];
return True;
@@ -342,7 +342,7 @@ bool sid_peek_check_rid(const DOM_SID *exp_dom_sid, const DOM_SID *sid, uint32 *
{
if (!exp_dom_sid || !sid || !rid)
return False;
-
+
if (sid->num_auths != (exp_dom_sid->num_auths+1)) {
return False;
}
@@ -351,7 +351,7 @@ bool sid_peek_check_rid(const DOM_SID *exp_dom_sid, const DOM_SID *sid, uint32 *
*rid=(-1);
return False;
}
-
+
return sid_peek_rid(sid, rid);
}
@@ -635,7 +635,7 @@ void del_sid_from_array(const DOM_SID *sid, DOM_SID **sids, size_t *num)
for ( ; i<*num; i++ )
sid_copy( &sid_list[i], &sid_list[i+1] );
-
+
return;
}
@@ -648,7 +648,7 @@ bool add_rid_to_array_unique(TALLOC_CTX *mem_ctx,
if ((*pp_rids)[i] == rid)
return True;
}
-
+
*pp_rids = TALLOC_REALLOC_ARRAY(mem_ctx, *pp_rids, uint32, *p_num+1);
if (*pp_rids == NULL) {