diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-06-06 01:53:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-06-06 01:53:05 +0000 |
commit | 798670db20e67f0544fb8762a9c4813ec0bf5896 (patch) | |
tree | 0afcc0ab712234e4bb68119ae7869217b956bff0 /source3 | |
parent | ad53b64641fbb62369f27a5385093850cdc48fe4 (diff) | |
download | samba-798670db20e67f0544fb8762a9c4813ec0bf5896.tar.gz samba-798670db20e67f0544fb8762a9c4813ec0bf5896.tar.bz2 samba-798670db20e67f0544fb8762a9c4813ec0bf5896.zip |
fixed sizeof() typo
(This used to be commit 1da9c5531a8e26dc63b31a27fa73e0932278acb4)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 2a863e1b9f..768e97ffdb 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -35,8 +35,8 @@ static TDB_CONTEXT *tdb; /* used for driver files */ /* we need to have a small set of default forms to support our default printer */ static nt_forms_struct default_forms[] = { - {"A4", 0xb0, 0x3354f, 0x4884e, 0x0, 0x0, 0x3354f, 0x4884e}, - {"Letter", 0x20, 0x34b5b, 0x44367, 0x0, 0x0, 0x34b5b, 0x44367} + {"Letter", 0x20, 0x34b5b, 0x44367, 0x0, 0x0, 0x34b5b, 0x44367}, + {"A4", 0xb0, 0x3354f, 0x4884e, 0x0, 0x0, 0x3354f, 0x4884e} }; @@ -100,8 +100,8 @@ int get_ntforms(nt_forms_struct **list) /* we should never return a null forms list or NT gets unhappy */ if (n == 0) { - *list = (nt_forms_struct *)memdup(&default_forms, sizeof(default_forms)); - n = sizeof(sizeof(default_forms))/ sizeof(sizeof(default_forms[0])); + *list = (nt_forms_struct *)memdup(&default_forms[0], sizeof(default_forms)); + n = sizeof(default_forms) / sizeof(default_forms[0]); } |