summaryrefslogtreecommitdiff
blob: afd347c282578aac3a7ceaecb9d859335bba0dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- monica-3.7.orig/monica.cpp	2024-06-15 10:17:52.270992952 -0700
+++ monica-3.7/monica.cpp	2024-06-15 10:53:54.255394576 -0700
@@ -1276,7 +1276,7 @@
 	int bcheck = system("echo $SHELL | grep bash");
 	if (bcheck) {
 		fl_alert("Monica senses that BASH is not\nyour login shell...\n\nSince Monica uses bash init scripts to \nimplement gamma corrections on system login, \nyou will have to paste the call to monicarc \ninto your startup scripts by hand.\n\nAlternatively, you can make a direct call \nto xgamma in your X config file.");
-		__builtin_exit (0);
+		exit (0);
 	} 
   
     fn_r = get_shell_rc_path();
@@ -1563,13 +1563,13 @@
 }
 //---------------------------------------------------------------------
 void exit_cb(Fl_Widget *, void *) {
-  __builtin_exit(0);
+  exit(0);
 }
 //---------------------------------------------------------------------
 void exit_save_cb(Fl_Widget *, void *s) {
   int res = write_monicarc((Sliders*)s); 
   if (res) res = add_monicarc_to_startup();
-  __builtin_exit(0);
+  exit(0);
 }
 //---------------------------------------------------------------------
 
@@ -1704,7 +1704,7 @@
 //	if (no_ati_gamma && no_x_gamma) {
     if (no_x_gamma) {
 		fl_alert("Monica cannot detect the presence\n of xgamma on your machine...\n\nIt is distributed with all versions of XFree86 \nand Xorg to date, so if you have X installed, \nit should be around or something might be \nwrong with your installation.\n\nXgamma is needed for Monica to function.");
-		__builtin_exit (0);
+		exit (0);
 	}
 //-- set global value of "xgamma" command string, accomodating ATI's fglrx_xgamma ---
 //	if ( ! no_ati_gamma ) {
@@ -1739,13 +1739,13 @@
 	printf("Copyright (C) 2005 Paul Sherman\n\n");
 	printf("Copyright (C) 2002 Tilo Riemer\n\n");
 	printf("Monica is published under a BSD like licence.\nSee Monica -l\n\n");
-	__builtin_exit(0);
+	exit(0);
       }
       if ( (strcmp(argv[i], "-l") == 0) 
           || (strcmp(argv[i], "--licence") == 0) 
           || (strcmp(argv[i], "--license") == 0) ) {
         printf("\n%s\n\n", LICENCE);
-	__builtin_exit(0);
+	exit(0);
       }
       if ( (strcmp(argv[i], "-h") == 0) || (strcmp(argv[i], "--help") == 0) ) {
 	printf("\nUsage: Monica [options]\nwhere options are:\n");
@@ -1766,7 +1766,7 @@
 	printf("\t-s[cheme]         scheme\n");
 	printf("\t-t[itle]          windowtitle\n\n");
 
-	__builtin_exit(0);
+	exit(0);
       } 
       if ( (strcmp(argv[i], "-o") == 0) || (strcmp(argv[i], "--onthefly") == 0) ) {
 	g_toggle_apply_on_the_fly_checkbox = 1;