s3:libads: Fix creating machine account using LDAP
[bbaumbach/samba-autobuild/.git] / source3 / libads / ldap_printer.c
index e9eb41967f2eb13af97bfb07df59bafd486b54ef..e610893ac4e469acf111aec9984bfbd9c8595c35 100644 (file)
@@ -146,7 +146,7 @@ static bool map_dword(TALLOC_CTX *ctx, ADS_MODLIST *mods,
        if (value->type != REG_DWORD) {
                return false;
        }
-       if (value->data.length != sizeof(uint32)) {
+       if (value->data.length != sizeof(uint32_t)) {
                return false;
        }
        str_value = talloc_asprintf(ctx, "%d", IVAL(value->data.data, 0));
@@ -292,13 +292,13 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli,
        char *printername;
        struct spoolss_PrinterEnumValues *info;
        uint32_t count;
-       uint32 i;
+       uint32_t i;
        struct policy_handle pol;
        WERROR werr;
 
        if ((asprintf(&printername, "%s\\%s", cli->srv_name_slash, printer) == -1)) {
                DEBUG(3, ("Insufficient memory\n"));
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        result = rpccli_spoolss_openprinter_ex(cli, mem_ctx,