~ubuntu-branches/ubuntu/trusty/postfix/trusty-updates

« back to all changes in this revision

Viewing changes to src/global/dsn_buf.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones, LaMont Jones, localization folks
  • Date: 2014-02-11 07:44:30 UTC
  • mfrom: (58.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140211074430-kwkoxdz0fbajn0fj
Tags: 2.11.0-1
[LaMont Jones]

* New upstream release: 2.11.0

[localization folks]

* l10n: Updated German translations.  Closes: #734893 (Helge Kreutzmann)

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
    return (dsb);
255
255
}
256
256
 
 
257
/* vdsb_simple - update status and informal text, va_list form */
 
258
 
 
259
DSN_BUF *vdsb_simple(DSN_BUF *dsb, const char *status, const char *format,
 
260
                             va_list ap)
 
261
{
 
262
    vstring_strcpy(dsb->status, status);
 
263
    DSB_TRUNCATE(dsb->action);
 
264
    DSB_TRUNCATE(dsb->mtype);
 
265
    DSB_TRUNCATE(dsb->mname);
 
266
    DSB_TRUNCATE(dsb->dtype);
 
267
    DSB_TRUNCATE(dsb->dtext);
 
268
    vstring_vsprintf(dsb->reason, format, ap);
 
269
 
 
270
    return (dsb);
 
271
}
 
272
 
257
273
/* dsb_simple - update status and informal text */
258
274
 
259
275
DSN_BUF *dsb_simple(DSN_BUF *dsb, const char *status, const char *format,...)
260
276
{
261
277
    va_list ap;
262
278
 
263
 
    vstring_strcpy(dsb->status, status);
264
 
    DSB_TRUNCATE(dsb->action);
265
 
    DSB_TRUNCATE(dsb->mtype);
266
 
    DSB_TRUNCATE(dsb->mname);
267
 
    DSB_TRUNCATE(dsb->dtype);
268
 
    DSB_TRUNCATE(dsb->dtext);
269
279
    va_start(ap, format);
270
 
    vstring_vsprintf(dsb->reason, format, ap);
 
280
    (void) vdsb_simple(dsb, status, format, ap);
271
281
    va_end(ap);
272
 
 
273
282
    return (dsb);
274
283
}
275
284