diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-14 14:00:30 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-15 10:08:24 -0800 |
commit | fcfa5f0dee6549994d8c4640fb61612d33369e74 (patch) | |
tree | e5181f40c27672e313b06b686800c77a02227fe3 /BitEdit.c | |
parent | e3ecaf24ea4187516a1a0679783278e34e56499f (diff) |
Call snprintf() directly instead of XmuSnprintf()
All platforms still supported by X.Org have long had snprintf()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'BitEdit.c')
-rw-r--r-- | BitEdit.c | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -46,7 +46,6 @@ from The Open Group. #include <X11/Xaw/SimpleMenu.h> #include <X11/Xaw/SmeLine.h> #include <X11/Xaw/SmeBSB.h> -#include <X11/Xmu/SysUtil.h> #include "Bitmap.h" #include <X11/bitmaps/xlogo16> @@ -799,7 +798,7 @@ void DoLoad(void) case Yes: if (BWWriteFile(bitmap_widget, filename, NULL) != BitmapSuccess) { - XmuSnprintf(message, sizeof(message), "Can't write file: %s", filename); + snprintf(message, sizeof(message), "Can't write file: %s", filename); if (PopupDialog(error_dialog, message, NULL, NULL, XtGrabExclusive) == Retry) goto RetryLoadSave; @@ -815,7 +814,7 @@ void DoLoad(void) if (PopupDialog(input_dialog, "Load file:", filename, &filename, XtGrabExclusive) == Okay) { if (BWReadFile(bitmap_widget, filename, NULL) != BitmapSuccess) { - XmuSnprintf(message, sizeof(message), "Can't read file: %s", filename); + snprintf(message, sizeof(message), "Can't read file: %s", filename); if (PopupDialog(error_dialog, message, NULL, NULL, XtGrabExclusive) == Retry) goto RetryLoad; @@ -835,7 +834,7 @@ void DoInsert(void) if (PopupDialog(input_dialog, "Insert file:", filename, &filename, XtGrabExclusive) == Okay) { if (BWStoreFile(bitmap_widget, filename, NULL) != BitmapSuccess) { - XmuSnprintf(message, sizeof(message), "Can't read file: %s", filename); + snprintf(message, sizeof(message), "Can't read file: %s", filename); if (PopupDialog(error_dialog, message, NULL, NULL, XtGrabExclusive) == Retry) goto RetryInsert; @@ -852,7 +851,7 @@ void DoSave(void) if (!strcmp(filename, "")) DoSaveAs(); else if (BWWriteFile(bitmap_widget, NULL, NULL) != BitmapSuccess) { - XmuSnprintf(message, sizeof(message), "Can't write file: %s", filename); + snprintf(message, sizeof(message), "Can't write file: %s", filename); if (PopupDialog(error_dialog, message, NULL, NULL, XtGrabExclusive) == Retry) DoSaveAs(); @@ -869,7 +868,7 @@ void DoSaveAs(void) if (PopupDialog(input_dialog, "Save file:", filename, &filename, XtGrabExclusive) == Okay) { if (BWWriteFile(bitmap_widget, filename, NULL) != BitmapSuccess) { - XmuSnprintf(message, sizeof(message), "Can't write file: %s", filename); + snprintf(message, sizeof(message), "Can't write file: %s", filename); if (PopupDialog(error_dialog, message, NULL, NULL, XtGrabExclusive) == Retry) goto RetrySave; @@ -895,7 +894,7 @@ void DoResize(void) FixStatus(); } else { - XmuSnprintf(message, sizeof(message), "Wrong format: %s", format); + snprintf(message, sizeof(message), "Wrong format: %s", format); if (PopupDialog(error_dialog, message, NULL, NULL, XtGrabExclusive) == Retry) goto RetryResize; @@ -918,7 +917,7 @@ void DoRescale(void) FixStatus(); } else { - XmuSnprintf(message, sizeof(message), "Wrong format: %s", format); + snprintf(message, sizeof(message), "Wrong format: %s", format); if (PopupDialog(error_dialog, message, NULL, NULL, XtGrabExclusive) == Retry) goto RetryRescale; @@ -956,7 +955,7 @@ void DoQuit(Widget w, XEvent *event, String *params, Cardinal *num_params) case Yes: if (BWWriteFile(bitmap_widget, filename, NULL) != BitmapSuccess) { - XmuSnprintf(message, sizeof(message), "Can't write file: %s", filename); + snprintf(message, sizeof(message), "Can't write file: %s", filename); if (PopupDialog(error_dialog, message, NULL, NULL, XtGrabExclusive) == Retry) goto RetryQuit; |