r23792: convert Samba4 to GPLv3
[jelmer/samba4-debian.git] / source / libcli / raw / rawdate.c
index bfb7465bd59b5611c68e621ce23812c71ce1aed9..9a86c8869719bd7578a66b238040b7d37a0e3712 100644 (file)
@@ -7,7 +7,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "includes.h"
+#include "libcli/raw/libcliraw.h"
 
 /*******************************************************************
 put a dos date into a buffer (time/date format)
@@ -37,7 +37,7 @@ put a dos date into a buffer (date/time format)
 This takes GMT time and puts local time in the buffer
 ********************************************************************/
 void raw_push_dos_date2(struct smbcli_transport *transport,
-                      char *buf, int offset, time_t unixdate)
+                      uint8_t *buf, int offset, time_t unixdate)
 {
        push_dos_date2(buf, offset, unixdate, transport->negotiate.server_zone);
 }
@@ -47,7 +47,7 @@ put a dos 32 bit "unix like" date into a buffer. This routine takes
 GMT and converts it to LOCAL time in zone_offset before putting it
 ********************************************************************/
 void raw_push_dos_date3(struct smbcli_transport *transport,
-                      char *buf, int offset, time_t unixdate)
+                      uint8_t *buf, int offset, time_t unixdate)
 {
        push_dos_date3(buf, offset, unixdate, transport->negotiate.server_zone);
 }