]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Changed instances of TRUE, FALSE to True, False as some compilers don't
authorTim Potter <tpot@samba.org>
Thu, 12 Jul 2001 22:27:00 +0000 (22:27 +0000)
committerTim Potter <tpot@samba.org>
Thu, 12 Jul 2001 22:27:00 +0000 (22:27 +0000)
have the first set of symbols.

source/client/tree.c
source/passdb/pdb_tdb.c
source/printing/nt_printing.c
source/utils/pdbedit.c

index 5c2ced5e02b57fc6f4468befabf34ea819e7bed4..d4f286ef5637e13df73bd4462cf13e5f191cbc4a 100644 (file)
@@ -44,7 +44,7 @@ void error_message(gchar *message) {
   /* Create the widgets */
      
   dialog = gtk_dialog_new();
-  gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
+  gtk_window_set_modal(GTK_WINDOW(dialog), True);
   label = gtk_label_new (message);
   okay_button = gtk_button_new_with_label("Okay");
      
index 0816ac9a998cea6c5521a87cf533a9e8f5044639..5ee7a379152e334d59462829944826a85be8720c 100644 (file)
@@ -755,7 +755,7 @@ static BOOL tdb_update_sam(SAM_ACCOUNT* newpwd, BOOL override, int flag)
                                DEBUG(0, ("Unable to create TDB passwd (passdb.tdb) !!!\n"));
                                return False;
                        }
-                       newtdb = TRUE;
+                       newtdb = True;
                }
        }
 
index a47d39355fe8e3749b5186b36a7b1271dcaf3597..fdf31d35e442157517ad9c868cd1568a200dcbfb 100644 (file)
@@ -552,7 +552,7 @@ BOOL get_short_archi(char *short_archi, char *long_archi)
        DEBUGADD(108,("long architecture: [%s]\n", long_archi));
        DEBUGADD(108,("short architecture: [%s]\n", short_archi));
        
-       return TRUE;
+       return True;
 }
 
 /****************************************************************************
index ec90e7ff1dbb12bd4b3e25141d6c1a392955cff1..a31f83956d25fc527becbbb046952a4538d45f5a 100644 (file)
@@ -185,7 +185,7 @@ static int set_user_info (char *username, char *fullname, char *homedir, char *d
        if (script) pdb_set_logon_script(sam_pwent, script);
        if (profile) pdb_set_profile_path (sam_pwent, profile);
        
-       if (pdb_update_sam_account (sam_pwent, TRUE)) print_user_info (username, TRUE, FALSE);
+       if (pdb_update_sam_account (sam_pwent, True)) print_user_info (username, True, False);
        else
        {
                fprintf (stderr, "Unable to modify entry!\n");
@@ -246,7 +246,7 @@ static int new_user (char *username, char *fullname, char *homedir, char *drive,
        sam_pwent.nt_pw = new_nt_p16;
        sam_pwent.acct_ctrl = ACB_NORMAL;
        
-       if (pdb_add_sam_account (&sam_pwent)) print_user_info (username, TRUE, FALSE);
+       if (pdb_add_sam_account (&sam_pwent)) print_user_info (username, True, False);
        else
        {
                fprintf (stderr, "Unable to add user!\n");
@@ -297,7 +297,7 @@ static int new_machine (char *machinename)
        sam_pwent.acct_ctrl = ACB_WSTRUST;
        
        if (pdb_add_sam_account (&sam_pwent))
-               print_user_info (name, TRUE, FALSE);
+               print_user_info (name, True, False);
        else {
                fprintf (stderr, "Unable to add machine!\n");
                return -1;
@@ -572,14 +572,14 @@ int main (int argc, char **argv)
 {
        int ch;
        static pstring servicesf = CONFIGFILE;
-       BOOL list_users = FALSE;
-       BOOL verbose = FALSE;
-       BOOL spstyle = FALSE;
-       BOOL setparms = FALSE;
-       BOOL machine = FALSE;
-       BOOL add_user = FALSE;
-       BOOL delete_user = FALSE;
-       BOOL import = FALSE;
+       BOOL list_users = False;
+       BOOL verbose = False;
+       BOOL spstyle = False;
+       BOOL setparms = False;
+       BOOL machine = False;
+       BOOL add_user = False;
+       BOOL delete_user = False;
+       BOOL import = False;
        char *user_name = NULL;
        char *full_name = NULL;
        char *home_dir = NULL;
@@ -613,48 +613,48 @@ int main (int argc, char **argv)
        while ((ch = getopt(argc, argv, "ad:f:h:i:lmp:s:u:vwx")) != EOF) {
                switch(ch) {
                case 'a':
-                       add_user = TRUE;
+                       add_user = True;
                        break;
                case 'm':
-                       machine = TRUE;
+                       machine = True;
                        break;
                case 'l':
-                       list_users = TRUE;
+                       list_users = True;
                        break;
                case 'v':
-                       verbose = TRUE;
+                       verbose = True;
                        break;
                case 'w':
-                       spstyle = TRUE;
+                       spstyle = True;
                        break;
                case 'u':
                        user_name = optarg;
                        break;
                case 'f':
-                       setparms = TRUE;
+                       setparms = True;
                        full_name = optarg;
                        break;
                case 'h':
-                       setparms = TRUE;
+                       setparms = True;
                        home_dir = optarg;
                        break;
                case 'd':
-                       setparms = TRUE;
+                       setparms = True;
                        home_drive = optarg;
                        break;
                case 's':
-                       setparms = TRUE;
+                       setparms = True;
                        logon_script = optarg;
                        break;
                case 'p':
-                       setparms = TRUE;
+                       setparms = True;
                        profile_path = optarg;
                        break;
                case 'x':
-                       delete_user = TRUE;
+                       delete_user = True;
                        break;
                case 'i':
-                       import = TRUE;
+                       import = True;
                        smbpasswd = optarg;
                        break;
                default: