diff options
| author | David M. Syzdek <david@syzdek.net> | 2019-11-26 17:56:09 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2019-11-26 17:56:09 -0900 |
| commit | 5b7dc3532986d87b075faff444f25425b54f91a7 (patch) | |
| tree | 48c413390aef6b02606a6373fdd9a8c3b3411d13 /lib | |
| parent | d49d19e57a0dfc2430e37a45b965766d95163d18 (diff) | |
| download | ldap-utils-5b7dc3532986d87b075faff444f25425b54f91a7.tar.gz ldap-utils-5b7dc3532986d87b075faff444f25425b54f91a7.tar.bz2 ldap-utils-5b7dc3532986d87b075faff444f25425b54f91a7.tar.xz ldap-utils-5b7dc3532986d87b075faff444f25425b54f91a7.zip | |
libldapschema: setting width of output in ldapschema_print_definition via definition
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libldapschema/loutput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libldapschema/loutput.c b/lib/libldapschema/loutput.c index e51dd40..1f7923d 100644 --- a/lib/libldapschema/loutput.c +++ b/lib/libldapschema/loutput.c | |||
| @@ -62,6 +62,7 @@ | |||
| 62 | #define LDAPSCHEMA_WIDTH_HEADER 19 | 62 | #define LDAPSCHEMA_WIDTH_HEADER 19 |
| 63 | #define LDAPSCHEMA_WIDTH_INDENT 3 | 63 | #define LDAPSCHEMA_WIDTH_INDENT 3 |
| 64 | #define LDAPSCHEMA_WIDTH_FIELD (LDAPSCHEMA_WIDTH_HEADER-LDAPSCHEMA_WIDTH_INDENT) | 64 | #define LDAPSCHEMA_WIDTH_FIELD (LDAPSCHEMA_WIDTH_HEADER-LDAPSCHEMA_WIDTH_INDENT) |
| 65 | #define LDAPSCHEMA_WIDTH_VALUE 30 | ||
| 65 | 66 | ||
| 66 | 67 | ||
| 67 | ////////////////// | 68 | ////////////////// |
| @@ -257,7 +258,7 @@ void ldapschema_print_definition(LDAPSchema * lsd, LDAPSchemaModel * model) | |||
| 257 | return; | 258 | return; |
| 258 | }; | 259 | }; |
| 259 | 260 | ||
| 260 | ldapschema_fmt_definition(buff, sizeof(buff), model->definition, 30); | 261 | ldapschema_fmt_definition(buff, sizeof(buff), def, LDAPSCHEMA_WIDTH_VALUE); |
| 261 | ldapschema_print_line(name, buff); | 262 | ldapschema_print_line(name, buff); |
| 262 | 263 | ||
| 263 | return; | 264 | return; |
