s3-talloc Change TALLOC_ARRAY() to talloc_array()
[samba.git] / source3 / utils / eventlogadm.c
index 6ab00eeb69e378d482d9526364e2fea092949421..d170604a1bf6295e806a5a96107ee07d5ecb655a 100644 (file)
@@ -171,7 +171,7 @@ static bool eventlog_add_source( const char *eventlog, const char *sourcename,
 
        if ( !already_in ) {
                /* make a new list with an additional entry; copy values, add another */
-               wp = TALLOC_ARRAY(ctx, const char *, numsources + 2 );
+               wp = talloc_array(ctx, const char *, numsources + 2 );
 
                if ( !wp ) {
                        d_printf("talloc() failed \n");
@@ -365,15 +365,12 @@ static int DoDumpCommand(int argc, char **argv, bool debugflag, char *exename)
 {
        ELOG_TDB *etdb;
        TALLOC_CTX *mem_ctx = talloc_tos();
-       const char *tdb_filename;
        uint32_t count = 1;
 
        if (argc > 2) {
                return -1;
        }
 
-       tdb_filename = argv[0];
-
        if (argc > 1) {
                count = atoi(argv[1]);
        }