extern char *lcstring(char *d, char *s, int n);
extern char *ucstring(char *d, char *s, int n);
extern char *strcompose(char *buf, size_t len, ...);
+extern void stolower(char *s);
+extern void stoupper(char *s);
/* daemon.c */
#ifndef HAVE_DAEMON
while (1) {
void (*h) (int);
+#if !defined(AFS_DARwiN60_ENV) && !defined(AFS_NBSD_ENV)
int sigw;
+#endif
h = NULL;
} else if (h)
h(i);
}
+ return NULL;
}
static void
}
void
-softsig_init()
+softsig_init(void)
{
int rc;
AFS_SIGSET_DECL;
}
int
-main()
+main(int argc, char **argv)
{
softsig_init();
softsig_signal(SIGINT, print_foo);
negative = 0;
/* skip over leading spaces */
- for (; tc = *as; as++) {
+ for (tc = *as; tc !='\0'; as++, tc = *as) {
if (tc != ' ' && tc != '\t')
break;
}
base = 10;
/* compute the # itself */
- for (; tc = *as; as++) {
+ for (tc = *as; tc !='\0'; as++, tc = *as) {
if (!ismeta(tc, base))
return -1;
total *= base;
total = 0; /* initialize things */
/* skip over leading spaces */
- for (; tc = *as; as++) {
+ for (tc = *as; tc !='\0'; as++, tc = *as) {
if (tc != ' ' && tc != '\t')
break;
}
base = 10;
/* compute the # itself */
- for (;tc = *as; as++) {
+ for (tc = *as; tc !='\0'; as++, tc = *as) {
if (!ismeta(tc, base))
return -1;
total *= base;