make disk_norm() static
authorUri Simchoni <uri@samba.org>
Sun, 10 Jan 2016 17:54:06 +0000 (19:54 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 26 Jan 2016 14:58:12 +0000 (15:58 +0100)
Now that disk_norm() is being run centrally from the SMB layer
it can be made static.

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/dfree.c
source3/smbd/proto.h

index 6b7993c16b8305330519969e4e3eee0fc0b067cb..62d2ea4791abacfb4d76f9bd91ca12778bda107a 100644 (file)
@@ -25,7 +25,7 @@
  Normalise for DOS usage.
 ****************************************************************************/
 
-void disk_norm(uint64_t *bsize, uint64_t *dfree, uint64_t *dsize)
+static void disk_norm(uint64_t *bsize, uint64_t *dfree, uint64_t *dsize)
 {
        /* check if the disk is beyond the max disk size */
        uint64_t maxdisksize = lp_max_disk_size();
index 3479b3b5096f90e9d1ce24b3d612099c9f88f0ff..9b9c9245f1ac0162b7d33c1c60f732c3ca23339f 100644 (file)
@@ -171,7 +171,6 @@ bool connections_snum_used(struct smbd_server_connection *unused, int snum);
 
 /* The following definitions come from smbd/dfree.c  */
 
-void disk_norm(uint64_t *bsize,uint64_t *dfree,uint64_t *dsize);
 uint64_t sys_disk_free(connection_struct *conn, const char *path,
                               uint64_t *bsize,uint64_t *dfree,uint64_t *dsize);
 uint64_t get_dfree_info(connection_struct *conn,