Browse Source

Rename directory removal function

Jean-Baptiste Kempf 9 years ago
parent
commit
e4523ac044
3 changed files with 7 additions and 7 deletions
  1. 1 1
      include/bdsm/smb_dir.h
  2. 4 4
      src/smb_dir.c
  3. 2 2
      src/smb_packets.h

+ 1 - 1
include/bdsm/smb_dir.h

@@ -48,7 +48,7 @@
  * @param path The path of the file to delete
  * @return 0 if delete OK or "NT" error code
  */
-uint32_t  smb_rm_dir(smb_session *s, smb_tid tid, const char *path);
+uint32_t  smb_directory_rm(smb_session *s, smb_tid tid, const char *path);
 
 /**
  * @brief create a directory on a share.

+ 4 - 4
src/smb_dir.c

@@ -39,11 +39,11 @@
 #include "smb_utils.h"
 #include "smb_dir.h"
 
-uint32_t  smb_rm_dir(smb_session *s, smb_tid tid, const char *path)
+uint32_t  smb_directory_rm(smb_session *s, smb_tid tid, const char *path)
 {
     smb_message           *req_msg, resp_msg;
-    smb_rm_dir_req        req;
-    smb_rm_dir_resp       *resp;
+    smb_directory_rm_req  req;
+    smb_directory_rm_resp *resp;
     size_t                utf_pattern_len;
     char                  *utf_pattern;
 
@@ -85,7 +85,7 @@ uint32_t  smb_rm_dir(smb_session *s, smb_tid tid, const char *path)
     if (resp_msg.packet->header.status != NT_STATUS_SUCCESS)
         return (resp_msg.packet->header.status);
 
-    resp = (smb_rm_dir_resp *)resp_msg.packet->payload;
+    resp = (smb_directory_rm_resp *)resp_msg.packet->payload;
     if ((resp->wct != 0) || (resp->bct != 0))
         return DSM_ERROR_INVALID_RCV_MESS;
 

+ 2 - 2
src/smb_packets.h

@@ -296,14 +296,14 @@ typedef struct
     uint8_t         wct;                // 0x00
     uint16_t        bct;                // >= 2
     uint8_t         buffer_format;      // 0x04
-} __attribute__((packed))   smb_rm_dir_req;
+} __attribute__((packed))   smb_directory_rm_req;
 
 //<- Remove Directory
 typedef struct
 {
     uint8_t         wct;                // 0x00
     uint16_t        bct;                // 0x0000
-} __attribute__((packed))   smb_rm_dir_resp;
+} __attribute__((packed))   smb_directory_rm_resp;
 
 //-> Trans
 typedef struct