version 1.178, 2001/10/13 19:50:20
|
version 1.179, 2001/10/13 20:28:06
|
Line 91 void foo(int tmp,...) {
|
Line 91 void foo(int tmp,...) {
|
} |
} |
|
|
int compint(const void *a, const void *b) { |
int compint(const void *a, const void *b) { |
register int* A=a; |
register const int* A=a; |
register int* B=b; |
register const int* B=b; |
return *B-*A; |
return *B-*A; |
} |
} |
|
|
Line 111 int traverse(const char* file, const str
|
Line 111 int traverse(const char* file, const str
|
#endif |
#endif |
|
|
int main(int argc,char *argv[]) { |
int main(int argc,char *argv[]) { |
|
char server_version_string[]="SSH-1.99-OpenSSH_2.9p2\n"; |
|
int remote_major, remote_minor; |
|
char remote_version[1000]; |
|
if (sscanf(server_version_string, "SSH-%d.%d-%[^\n]\n", |
|
&remote_major, &remote_minor, remote_version) != 3) puts("punt"); |
|
printf("%d.%d.%.100s\n",remote_major,remote_minor,remote_version); |
#if 0 |
#if 0 |
ftw("/tmp",traverse,10); |
ftw("/tmp",traverse,10); |
#endif |
#endif |
Line 213 int main(int argc,char *argv[]) {
|
Line 219 int main(int argc,char *argv[]) {
|
snprintf( strport, sizeof(strport), "%d", 80 ); |
snprintf( strport, sizeof(strport), "%d", 80 ); |
puts(strport); |
puts(strport); |
#endif |
#endif |
#if 1 |
#if 0 |
struct addrinfo *ai; |
struct addrinfo *ai; |
struct addrinfo hints; |
struct addrinfo hints; |
char buf[16]; |
char buf[16]; |