projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dthelp: Change to ANSI function definitions
[oweals/cde.git]
/
cde
/
programs
/
dtstyle
/
Font.c
diff --git
a/cde/programs/dtstyle/Font.c
b/cde/programs/dtstyle/Font.c
index 0d6ba0c0188c990495fd3eb8e815f8a6dd1ae2cb..1dbf7a0bd381978910c609a06627dbf51a0b46f0 100644
(file)
--- 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
* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librar
ar
ies 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
*/
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
@@
-66,6
+66,7
@@
#include <Dt/HourGlass.h>
#include <string.h>
#include <Dt/HourGlass.h>
#include <string.h>
+#include <errno.h>
#include "Help.h"
#include "Main.h"
#include "SaveRestore.h"
#include "Help.h"
#include "Main.h"
#include "SaveRestore.h"
@@
-217,9
+218,9
@@
CreateFontDlg(
font.originalFontIndex = font.selectedFontIndex;
/* Set up button labels. */
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
/* Create toplevel DialogBox */
/* saveRestore
@@
-753,7
+754,9
@@
saveFonts(
sprintf(bufr, "%s*Fonts.x: %d\n", bufr, x);
sprintf(bufr, "%s*Fonts.y: %d\n", bufr, y);
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));
+ }
}
}
}
}