libcli: fix a "not handled in switch" compile warning
[ira/wip.git] / source4 / libcli / raw / rawfile.c
index d174fbfc28d5aff3c3a3a316975d585f9bf0c86d..6fac7b8605cb7742ec765efbd1c361d2d1023df7 100644 (file)
@@ -33,7 +33,7 @@
 /**
  Return a string representing a CIFS attribute for a file.
 **/
-_PUBLIC_ char *attrib_string(TALLOC_CTX *mem_ctx, uint32_t attrib)
+char *attrib_string(TALLOC_CTX *mem_ctx, uint32_t attrib)
 {
        int i, len;
        const struct {
@@ -71,6 +71,8 @@ _PUBLIC_ char *attrib_string(TALLOC_CTX *mem_ctx, uint32_t attrib)
 
        ret[len] = 0;
 
+       talloc_set_name_const(ret, ret);
+
        return ret;
 }
 
@@ -794,6 +796,7 @@ _PUBLIC_ struct smbcli_request *smb_raw_close_send(struct smbcli_tree *tree, uni
                break;
 
        case RAW_CLOSE_SMB2:
+       case RAW_CLOSE_GENERIC:
                return NULL;
        }