[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-79-g382a937

Volker Lendecke vlendec at samba.org
Fri Jun 26 15:44:13 GMT 2009


The branch, master has been updated
       via  382a937800fe3618f8dd0fd17556b4643c96303b (commit)
      from  cfafe9b9a94e2600bfee3c8390a9350d7583524d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 382a937800fe3618f8dd0fd17556b4643c96303b
Author: Volker Lendecke <vl at samba.org>
Date:   Fri Jun 26 17:38:58 2009 +0200

    Fix some dead code warnings from SUN Studio

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/netapi/serverinfo.c |    4 ++--
 source3/lib/netapi/user.c       |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c
index cbb9197..cc2ff52 100644
--- a/source3/lib/netapi/serverinfo.c
+++ b/source3/lib/netapi/serverinfo.c
@@ -77,7 +77,7 @@ WERROR NetServerGetInfo_l(struct libnetapi_ctx *ctx,
 		case 1005:
 			return NetServerGetInfo_l_1005(ctx, r->out.buffer);
 		default:
-			return WERR_UNKNOWN_LEVEL;
+			break;
 	}
 
 	return WERR_UNKNOWN_LEVEL;
@@ -580,7 +580,7 @@ WERROR NetServerSetInfo_l(struct libnetapi_ctx *ctx,
 		case 1005:
 			return NetServerSetInfo_l_1005(ctx, r);
 		default:
-			return WERR_UNKNOWN_LEVEL;
+			break;
 	}
 
 	return WERR_UNKNOWN_LEVEL;
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index 5fb6c20..39472b2 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -1474,10 +1474,10 @@ static WERROR convert_samr_dispinfo_to_NET_DISPLAY(TALLOC_CTX *mem_ctx,
 									  entries_read,
 									  buffer);
 		default:
-			return WERR_UNKNOWN_LEVEL;
+			break;
 	}
 
-	return WERR_OK;
+	return WERR_UNKNOWN_LEVEL;
 }
 
 /****************************************************************


-- 
Samba Shared Repository


More information about the samba-cvs mailing list