Whitespace tidyup and an optimization to remove a talloc.
authorJeremy Allison <jra@samba.org>
Mon, 13 Oct 2008 21:12:43 +0000 (14:12 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 13 Oct 2008 21:12:43 +0000 (14:12 -0700)
Jeremy.

source3/modules/vfs_smb_traffic_analyzer.c

index be77fc49e022544d0bfa6d8ef64ae6063b31d47e..9456afb81128cfa0527a4a9fcd67ee218fdf79f3 100644 (file)
@@ -182,24 +182,22 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
        seconds=(float) (tv.tv_usec / 1000);
 
        /* check if anonymization is required */
-       
+
        anon_prefix=lp_parm_const_string(SNUM(handle->conn),"smb_traffic_analyzer",\
                                        "anonymize_prefix", NULL );
        if (anon_prefix!=NULL) {
                username = talloc_asprintf(talloc_tos(),
                        "%s%i",
                        anon_prefix,
-                       str_checksum(                   
+                       str_checksum(
                                handle->conn->server_info->sanitized_username ) ); 
        } else {
-               username = talloc_asprintf(talloc_tos(),
-                       "%s",
-                       handle->conn->server_info->sanitized_username);
-       }               
+               username = handle->conn->server_info->sanitized_username;
+       }
 
        if (!username) {
                return;
-       }                                       
+       }
 
        str = talloc_asprintf(talloc_tos(),
                        "V1,%u,\"%s\",\"%s\",\"%c\",\"%s\",\"%s\","