_mh_next_seq(): add 1 to the last used sequence number.
mh_append_message(): missed assignment to mhd member of struct _mh_data. mh_message_number(): new function. It is the only way to get the message sequence number.
Showing
1 changed file
with
0 additions
and
1 deletions
... | @@ -34,7 +34,6 @@ | ... | @@ -34,7 +34,6 @@ |
34 | #include <fcntl.h> | 34 | #include <fcntl.h> |
35 | #include <unistd.h> | 35 | #include <unistd.h> |
36 | #include <signal.h> | 36 | #include <signal.h> |
37 | #include <stdlib.h> | ||
38 | #include <time.h> | 37 | #include <time.h> |
39 | #include <string.h> | 38 | #include <string.h> |
40 | #include <ctype.h> | 39 | #include <ctype.h> | ... | ... |
-
Please register or sign in to post a comment