Adjusted indentation

SVN revision: 883
This commit is contained in:
Stefan Ritt 2004-06-04 15:05:01 +00:00
parent 2d45f661a5
commit 6442fbb266

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.331 2004/06/04 15:05:01 midas
Adjusted indentation
Revision 1.330 2004/06/04 14:51:40 midas Revision 1.330 2004/06/04 14:51:40 midas
Implemented stristr Implemented stristr
@ -1407,7 +1410,6 @@ void _MD5_decode(unsigned int *pout, unsigned char *pin, unsigned int len)
void serialdate2date(double days, int *day, int *month, int *year) void serialdate2date(double days, int *day, int *month, int *year)
/* convert days since 1.1.1900 to date */ /* convert days since 1.1.1900 to date */
{ {
int i, j, l, n; int i, j, l, n;
@ -4283,7 +4285,8 @@ int el_correct_links(LOGBOOK * lbs, int old_id, int new_id)
This routine corrects that. */ This routine corrects that. */
{ {
int i, i1, n, n1, size; int i, i1, n, n1, size;
char date[80], *attrib, *text, in_reply_to[80], reply_to[MAX_REPLY_TO * 10], encoding[80], locked_by[256]; char date[80], *attrib, *text, in_reply_to[80], reply_to[MAX_REPLY_TO * 10],
encoding[80], locked_by[256];
char list[MAX_N_ATTR][NAME_LENGTH], list1[MAX_N_ATTR][NAME_LENGTH]; char list[MAX_N_ATTR][NAME_LENGTH], list1[MAX_N_ATTR][NAME_LENGTH];
char *att_file; char *att_file;
@ -4291,15 +4294,16 @@ This routine corrects that. */
text = malloc(TEXT_SIZE); text = malloc(TEXT_SIZE);
att_file = malloc(MAX_ATTACHMENTS * 256); att_file = malloc(MAX_ATTACHMENTS * 256);
el_retrieve(lbs, new_id, date, attr_list, (void *) attrib, lbs->n_attr, NULL, 0, in_reply_to, el_retrieve(lbs, new_id, date, attr_list, (void *) attrib, lbs->n_attr, NULL, 0,
reply_to, (void *)att_file, encoding, locked_by); in_reply_to, reply_to, (void *) att_file, encoding, locked_by);
/* go through in_reply_to list */ /* go through in_reply_to list */
n = strbreak(in_reply_to, list, MAX_N_ATTR, ","); n = strbreak(in_reply_to, list, MAX_N_ATTR, ",");
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
size = TEXT_SIZE; size = TEXT_SIZE;
el_retrieve(lbs, atoi(list[i]), date, attr_list, (void *) attrib, lbs->n_attr, el_retrieve(lbs, atoi(list[i]), date, attr_list, (void *) attrib, lbs->n_attr,
text, &size, in_reply_to, reply_to, (void *)att_file, encoding, locked_by); text, &size, in_reply_to, reply_to, (void *) att_file, encoding,
locked_by);
n1 = strbreak(reply_to, list1, MAX_N_ATTR, ","); n1 = strbreak(reply_to, list1, MAX_N_ATTR, ",");
reply_to[0] = 0; reply_to[0] = 0;
@ -4315,18 +4319,20 @@ This routine corrects that. */
} }
el_submit(lbs, atoi(list[i]), TRUE, date, attr_list, (void *) attrib, lbs->n_attr, el_submit(lbs, atoi(list[i]), TRUE, date, attr_list, (void *) attrib, lbs->n_attr,
text, in_reply_to, reply_to, encoding, (void *)att_file, TRUE, locked_by); text, in_reply_to, reply_to, encoding, (void *) att_file, TRUE,
locked_by);
} }
el_retrieve(lbs, new_id, date, attr_list, (void *)attrib, lbs->n_attr, NULL, 0, in_reply_to, el_retrieve(lbs, new_id, date, attr_list, (void *) attrib, lbs->n_attr, NULL, 0,
reply_to, (void *)att_file, encoding, locked_by); in_reply_to, reply_to, (void *) att_file, encoding, locked_by);
/* go through reply_to list */ /* go through reply_to list */
n = strbreak(reply_to, list, MAX_N_ATTR, ","); n = strbreak(reply_to, list, MAX_N_ATTR, ",");
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
size = sizeof(text); size = sizeof(text);
el_retrieve(lbs, atoi(list[i]), date, attr_list, (void *) attrib, lbs->n_attr, el_retrieve(lbs, atoi(list[i]), date, attr_list, (void *) attrib, lbs->n_attr,
text, &size, in_reply_to, reply_to, (void *)att_file, encoding, locked_by); text, &size, in_reply_to, reply_to, (void *) att_file, encoding,
locked_by);
n1 = strbreak(in_reply_to, list1, MAX_N_ATTR, ","); n1 = strbreak(in_reply_to, list1, MAX_N_ATTR, ",");
in_reply_to[0] = 0; in_reply_to[0] = 0;
@ -4342,7 +4348,8 @@ This routine corrects that. */
} }
el_submit(lbs, atoi(list[i]), TRUE, date, attr_list, (void *) attrib, lbs->n_attr, el_submit(lbs, atoi(list[i]), TRUE, date, attr_list, (void *) attrib, lbs->n_attr,
text, in_reply_to, reply_to, encoding, (void *)att_file, TRUE, locked_by); text, in_reply_to, reply_to, encoding, (void *) att_file, TRUE,
locked_by);
} }
free(text); free(text);