X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Fprograms%2Fdtstyle%2FFont.c;h=1dbf7a0bd381978910c609a06627dbf51a0b46f0;hb=3503243d14aabccf09337dfd6b0133513d14d846;hp=777d41bea2d8e119e3d3bc94533b6f23b2a733fc;hpb=dcdd21df3431e532728b9dbda6d2519921336f8e;p=oweals%2Fcde.git diff --git a/cde/programs/dtstyle/Font.c b/cde/programs/dtstyle/Font.c index 777d41be..1dbf7a0b 100644 --- a/cde/programs/dtstyle/Font.c +++ b/cde/programs/dtstyle/Font.c @@ -16,7 +16,7 @@ * details. * * You should have received a copy of the GNU Lesser General Public - * License along with these librararies and programs; if not, write + * License along with these libraries and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ @@ -66,6 +66,7 @@ #include
#include +#include #include "Help.h" #include "Main.h" #include "SaveRestore.h" @@ -217,9 +218,9 @@ CreateFontDlg( font.originalFontIndex = font.selectedFontIndex; /* Set up button labels. */ - button_string[0] = CMPSTR(_DtOkString); - button_string[1] = CMPSTR(_DtCancelString); - button_string[2] = CMPSTR(_DtHelpString); + button_string[0] = CMPSTR((String) _DtOkString); + button_string[1] = CMPSTR((String) _DtCancelString); + button_string[2] = CMPSTR((String) _DtHelpString); /* Create toplevel DialogBox */ /* saveRestore @@ -452,7 +453,8 @@ ButtonCB( { DtDialogBoxCallbackStruct *cb = (DtDialogBoxCallbackStruct *) call_data; - int n, len, items; + int n, len; + XtArgVal items; char *str, *fntstr, *fntsetstr; Arg args[MAX_ARGS]; char fontres[8192]; @@ -752,7 +754,9 @@ saveFonts( sprintf(bufr, "%s*Fonts.x: %d\n", bufr, x); sprintf(bufr, "%s*Fonts.y: %d\n", bufr, y); - write (fd, bufr, strlen(bufr)); + if(-1 == write (fd, bufr, strlen(bufr))) { + perror(strerror(errno)); + } } }