Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/examples/libsmbclient/testctx.c

    r414 r740  
    11#include <libsmbclient.h>
     2#include <stdlib.h>
     3#include <stdio.h>
    24
    35void create_and_destroy_context (void)
    46{
     7  int i;
    58  SMBCCTX *ctx;
    69  ctx = smbc_new_context ();
     10  /* Both should do the same thing */
     11  smbc_setOptionDebugToStderr(ctx, 1);
     12  smbc_option_set(ctx, "debug_to_stderr", 1);
     13  smbc_setDebug(ctx, 1);
     14  i = smbc_getDebug(ctx);
     15  if (i != 1) {
     16          printf("smbc_getDebug() did not return debug level set\n");
     17          exit(1);
     18  }
     19  if (!smbc_getOptionDebugToStderr(ctx)) {
     20          printf("smbc_setOptionDebugToStderr() did not stick\n");
     21          exit(1);
     22  }
    723  smbc_init_context (ctx);
    8 
    924  smbc_free_context (ctx, 1);
    1025}
Note: See TracChangeset for help on using the changeset viewer.