diff options
| author | paco <paco@voltanet.io> | 2018-06-18 17:49:58 +0200 |
|---|---|---|
| committer | paco <paco@voltanet.io> | 2018-06-18 17:52:56 +0200 |
| commit | 2ec42b858c876dac100e939e7329eaec00f90962 (patch) | |
| tree | 97aeba509fadb56029c286f24b31ccaafabb4fb6 /lib/ptm_lib.c | |
| parent | 6389e663e9b8971d5afa75d6afa18f5152c6de1b (diff) | |
babeld, lib, ospfd, tests: fmt fixes (cppcheck)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib/ptm_lib.c')
| -rw-r--r-- | lib/ptm_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ptm_lib.c b/lib/ptm_lib.c index fea5a8cc40..69fd61e2a0 100644 --- a/lib/ptm_lib.c +++ b/lib/ptm_lib.c @@ -60,10 +60,10 @@ static csv_record_t *_ptm_lib_encode_header(csv_t *csv, csv_record_t *rec, char client_buf[32]; csv_record_t *rec1; - sprintf(msglen_buf, "%4u", msglen); - sprintf(vers_buf, "%4u", version); - sprintf(type_buf, "%4u", type); - sprintf(cmdid_buf, "%4u", cmd_id); + sprintf(msglen_buf, "%4d", msglen); + sprintf(vers_buf, "%4d", version); + sprintf(type_buf, "%4d", type); + sprintf(cmdid_buf, "%4d", cmd_id); snprintf(client_buf, 17, "%16.16s", client_name); if (rec) { rec1 = csv_encode_record(csv, rec, 5, msglen_buf, vers_buf, |
