projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
321595f
)
Coding style cleanup in textclient/routines2.c
author
Art Cancro
<ajc@citadel.org>
Sun, 12 Mar 2017 04:40:54 +0000
(23:40 -0500)
committer
Art Cancro
<ajc@citadel.org>
Sun, 12 Mar 2017 04:40:54 +0000
(23:40 -0500)
textclient/src/routines2.c
patch
|
blob
|
history
diff --git
a/textclient/src/routines2.c
b/textclient/src/routines2.c
index bb3e35432ee2966f4ced3ba274b1698eedf0116f..33f9925005c3f47c4e8d8e966706a5129e1a605e 100644
(file)
--- a/
textclient/src/routines2.c
+++ b/
textclient/src/routines2.c
@@
-1,16
+1,15
@@
/*
* More client-side support functions.
/*
* More client-side support functions.
- * Unlike routines.c, some of these DO use global variables.
*
*
- * Copyright (c) 1987-201
6
by the citadel.org team
+ * Copyright (c) 1987-201
7
by the citadel.org team
*
*
- *
This program is open source software; you can redistribute it and/or modify
- *
it under the terms of the GNU General Public License version 3.
+ * This program is open source software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3.
*
*
- *
This program is distributed in the hope that it will be useful,
- *
but WITHOUT ANY WARRANTY; without even the implied warranty of
- *
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- *
GNU General Public License for more details.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*/
#include <stdlib.h>
*/
#include <stdlib.h>
@@
-62,22
+61,10
@@
extern int screenwidth;
/*
/*
-int eopen(char *name, int mode)
-{
- int ret;
- ret = open(name, mode);
- if (ret < 0) {
- scr_printf("Cannot open file '%s', mode=%d, errno=%d\n",
- name, mode, errno);
- interr(errno);
- }
- return (ret);
-}
-*/
-
-
+ * return proper room prompt character
+ */
int room_prompt(unsigned int qrflags)
int room_prompt(unsigned int qrflags)
-{
/* return proper room prompt character */
+{
int a;
a = '>';
if (qrflags & QR_DIRECTORY)
int a;
a = '>';
if (qrflags & QR_DIRECTORY)
@@
-89,8
+76,12
@@
int room_prompt(unsigned int qrflags)
return (a);
}
return (a);
}
+
+/*
+ * Register with name and address
+ */
void entregis(CtdlIPC *ipc)
void entregis(CtdlIPC *ipc)
-{
/* register with name and address */
+{
char buf[SIZ];
char tmpname[30];
char buf[SIZ];
char tmpname[30];
@@
-191,8
+182,11
@@
void entregis(CtdlIPC *ipc)
scr_printf("\n");
}
scr_printf("\n");
}
+/*
+ * make all messages old in current room
+ */
void updatels(CtdlIPC *ipc)
void updatels(CtdlIPC *ipc)
-{
/* make all messages old in current room */
+{
char buf[256];
int r; /* IPC response code */
char buf[256];
int r; /* IPC response code */
@@
-486,8
+480,11
@@
int val_user(CtdlIPC *ipc, char *user, int do_validate)
}
}
+/*
+ * Validate new users
+ */
void validate(CtdlIPC *ipc)
void validate(CtdlIPC *ipc)
-{
/* validate new users */
+{
char cmd[256];
char buf[256];
int finished = 0;
char cmd[256];
char buf[256];
int finished = 0;
@@
-618,6
+615,3
@@
void read_bio(CtdlIPC *ipc)
}
if (resp) free(resp);
}
}
if (resp) free(resp);
}
-
-
-