Convert all uses of uint8/16/32 to _t in nmbd and the include file.
[kamenim/samba-autobuild/.git] / source3 / nmbd / nmbd_elections.c
index 04a08071a324317321734277a8151cde48d28666..16988c8aec8c5854ec64d3f1ced6321ecc27eb45 100644 (file)
@@ -31,7 +31,7 @@ extern time_t StartupTime;
 **************************************************************************/
 
 static void send_election_dgram(struct subnet_record *subrec, const char *workgroup_name,
-                                uint32 criterion, int timeup,const char *server_name)
+                                uint32_t criterion, int timeup,const char *server_name)
 {
        char outbuf[1024];
        unstring srv_name;
@@ -214,10 +214,10 @@ yet registered on subnet %s\n", nmb_namestr(&nmbname), subrec->subnet_name ));
 ******************************************************************/
 
 static bool win_election(struct work_record *work, int version,
-                         uint32 criterion, int timeup, const char *server_name)
+                         uint32_t criterion, int timeup, const char *server_name)
 {  
        int mytimeup = time(NULL) - StartupTime;
-       uint32 mycriterion = work->ElectionCriterion;
+       uint32_t mycriterion = work->ElectionCriterion;
 
        /* If local master is false then never win in election broadcasts. */
        if(!lp_local_master()) {
@@ -260,7 +260,7 @@ void process_election(struct subnet_record *subrec, struct packet_struct *p, con
 {
        struct dgram_packet *dgram = &p->packet.dgram;
        int version = CVAL(buf,0);
-       uint32 criterion = IVAL(buf,1);
+       uint32_t criterion = IVAL(buf,1);
        int timeup = IVAL(buf,5)/1000;
        unstring server_name;
        struct work_record *work;