Changeset 1505 for trunk/dll/printer.c


Ignore:
Timestamp:
Apr 12, 2010, 12:29:56 AM (15 years ago)
Author:
Gregg Young
Message:

Remove unnecessary type casts; minor formating cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/printer.c

    r1498 r1505  
    478478      else {
    479479        prnformat = WinQueryButtonCheckstate(hwnd, PRN_FORMAT);
    480         PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformat",
     480        PrfWriteProfileData(fmprof, FM3Str, "Prnformat",
    481481                            (PVOID) & prnformat, sizeof(prnformat));
    482482        prnalt = WinQueryButtonCheckstate(hwnd, PRN_ALT);
    483         PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnalt",
     483        PrfWriteProfileData(fmprof, FM3Str, "Prnalt",
    484484                            (PVOID) & prnalt, sizeof(prnalt));
    485485        prnpagenums = WinQueryButtonCheckstate(hwnd, PRN_PAGENUMS);
    486         PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnpagenums",
     486        PrfWriteProfileData(fmprof, FM3Str, "Prnpagenums",
    487487                            (PVOID) & prnpagenums, sizeof(prnpagenums));
    488488        prnformfeedbefore = WinQueryButtonCheckstate(hwnd, PRN_FORMBEFORE);
    489         PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedbefore",
     489        PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedbefore",
    490490                            (PVOID) & prnformfeedbefore,
    491491                            sizeof(prnformfeedbefore));
    492492        prnformfeedafter = WinQueryButtonCheckstate(hwnd, PRN_FORMAFTER);
    493         PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedafter",
     493        PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedafter",
    494494                            (PVOID) & prnformfeedafter,
    495495                            sizeof(prnformfeedafter));
     
    506506          }
    507507          prnwidth = atol(s);
    508           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnwidth",
     508          PrfWriteProfileData(fmprof, FM3Str, "Prnwidth",
    509509                              (PVOID) & prnwidth, sizeof(prnwidth));
    510510          *s = 0;
     
    517517          }
    518518          prnlength = atol(s);
    519           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnlength",
     519          PrfWriteProfileData(fmprof, FM3Str, "Prnlength",
    520520                              (PVOID) & prnlength, sizeof(prnlength));
    521521          *s = 0;
     
    528528          }
    529529          prnlmargin = atol(s);
    530           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnlmargin",
     530          PrfWriteProfileData(fmprof, FM3Str, "Prnlmargin",
    531531                              (PVOID) & prnlmargin, sizeof(prnlmargin));
    532532          *s = 0;
     
    539539          }
    540540          prnrmargin = atol(s);
    541           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnrmargin",
     541          PrfWriteProfileData(fmprof, FM3Str, "Prnrmargin",
    542542                              (PVOID) & prnrmargin, sizeof(prnrmargin));
    543543          *s = 0;
     
    551551          }
    552552          prntabspaces = atol(s);
    553           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prntabspaces",
     553          PrfWriteProfileData(fmprof, FM3Str, "Prntabspaces",
    554554                              (PVOID) & prntabspaces, sizeof(prntabspaces));
    555555          *s = 0;
     
    562562          }
    563563          prntmargin = atol(s);
    564           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prntmargin",
     564          PrfWriteProfileData(fmprof, FM3Str, "Prntmargin",
    565565                              (PVOID) & prntmargin, sizeof(prntmargin));
    566566          *s = 0;
     
    573573          }
    574574          prnbmargin = atol(s);
    575           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnbmargin",
     575          PrfWriteProfileData(fmprof, FM3Str, "Prnbmargin",
    576576                              (PVOID) & prnbmargin, sizeof(prnbmargin));
    577577          *s = 0;
     
    585585          }
    586586          prnspacing = atol(s);
    587           PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnspacing",
     587          PrfWriteProfileData(fmprof, FM3Str, "Prnspacing",
    588588                              (PVOID) & prnspacing, sizeof(prnspacing));
    589589          WinQueryDlgItemText(hwnd, PRN_PRINTER, sizeof(printer), printer);
Note: See TracChangeset for help on using the changeset viewer.