From: Howard Chu Date: Wed, 12 Oct 2005 17:34:06 +0000 (+0000) Subject: ITS#4078 fix buffer alignment X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~285 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e66b6188bb274c5f6f5592e4f2be4ea79e30eedb;p=openldap ITS#4078 fix buffer alignment --- diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c index 23d3c0b2af..b36208fdbe 100644 --- a/servers/slapd/slapadd.c +++ b/servers/slapd/slapadd.c @@ -44,28 +44,28 @@ static char maxcsnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE ]; int slapadd( int argc, char **argv ) { - char *buf = NULL; - int lineno; - int lmax; - int rc = EXIT_SUCCESS; - + char *buf = NULL; const char *text; char textbuf[SLAP_TEXT_BUFLEN] = { '\0' }; size_t textlen = sizeof textbuf; const char *progname = "slapadd"; - int manage = 0; struct berval csn; struct berval maxcsn; - int match; + struct berval bvtext; Attribute *attr; Entry *ctxcsn_e; ID ctxcsn_id, id; + Operation *op; + char opbuf[OPERATION_BUFFER_SIZE]; + + int match; int ret; - struct berval bvtext; int checkvals; - char opbuf[OPERATION_BUFFER_SIZE]; - Operation *op; + int lineno; + int lmax; + int rc = EXIT_SUCCESS; + int manage = 0; slap_tool_init( progname, SLAPADD, argc, argv );