diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-11 13:43:10 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-11 13:43:10 +0000 |
commit | 8901c8a57fe14f9367ec857a15df52d726eafe3a (patch) | |
tree | 5a3f14e441d313d974c851148046926980840510 | |
parent | b0d29d120d2e9dbdc67cbaaf47a6b542d6095679 (diff) | |
download | busybox-w32-8901c8a57fe14f9367ec857a15df52d726eafe3a.tar.gz busybox-w32-8901c8a57fe14f9367ec857a15df52d726eafe3a.tar.bz2 busybox-w32-8901c8a57fe14f9367ec857a15df52d726eafe3a.zip |
kill superfluous returns at the end of void functions
git-svn-id: svn://busybox.net/trunk/busybox@18066 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | applets/applets.c | 1 | ||||
-rw-r--r-- | archival/dpkg.c | 8 | ||||
-rw-r--r-- | archival/libunarchive/data_align.c | 5 | ||||
-rw-r--r-- | archival/tar.c | 1 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/devname.c | 1 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/devno.c | 1 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/read.c | 1 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/e2fsck.c | 5 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/ext2fs/bitmaps.c | 2 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/ext2fs/inode.c | 1 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/fsck.c | 1 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/mke2fs.c | 1 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/tune2fs.c | 1 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/uuid/gen_uuid.c | 1 | ||||
-rw-r--r-- | editors/vi.c | 9 | ||||
-rw-r--r-- | miscutils/devfsd.c | 2 | ||||
-rw-r--r-- | networking/telnet.c | 34 | ||||
-rw-r--r-- | runit/runit_lib.c | 1 |
18 files changed, 17 insertions, 59 deletions
diff --git a/applets/applets.c b/applets/applets.c index 557e9e5d8..7245ecedc 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -321,7 +321,6 @@ static void parse_config_file(void) | |||
321 | free(sct_head); | 321 | free(sct_head); |
322 | sct_head = sct; | 322 | sct_head = sct; |
323 | } | 323 | } |
324 | return; | ||
325 | } | 324 | } |
326 | 325 | ||
327 | #else | 326 | #else |
diff --git a/archival/dpkg.c b/archival/dpkg.c index c86c583ab..9f7818ccf 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -706,7 +706,6 @@ static void set_status(const unsigned status_node_num, const char *new_value, co | |||
706 | new_status = xasprintf("%s %s %s", name_hashtable[want], name_hashtable[flag], name_hashtable[status]); | 706 | new_status = xasprintf("%s %s %s", name_hashtable[want], name_hashtable[flag], name_hashtable[status]); |
707 | status_hashtable[status_node_num]->status = search_name_hashtable(new_status); | 707 | status_hashtable[status_node_num]->status = search_name_hashtable(new_status); |
708 | free(new_status); | 708 | free(new_status); |
709 | return; | ||
710 | } | 709 | } |
711 | 710 | ||
712 | static const char *describe_status(int status_num) { | 711 | static const char *describe_status(int status_num) { |
@@ -763,7 +762,6 @@ static void index_status_file(const char *filename) | |||
763 | free(control_buffer); | 762 | free(control_buffer); |
764 | } | 763 | } |
765 | fclose(status_file); | 764 | fclose(status_file); |
766 | return; | ||
767 | } | 765 | } |
768 | 766 | ||
769 | static void write_buffer_no_status(FILE *new_status_file, const char *control_buffer) | 767 | static void write_buffer_no_status(FILE *new_status_file, const char *control_buffer) |
@@ -780,7 +778,6 @@ static void write_buffer_no_status(FILE *new_status_file, const char *control_bu | |||
780 | fprintf(new_status_file, "%s: %s\n", name, value); | 778 | fprintf(new_status_file, "%s: %s\n", name, value); |
781 | } | 779 | } |
782 | } | 780 | } |
783 | return; | ||
784 | } | 781 | } |
785 | 782 | ||
786 | /* This could do with a cleanup */ | 783 | /* This could do with a cleanup */ |
@@ -1425,8 +1422,6 @@ static void init_archive_deb_control(archive_handle_t *ar_handle) | |||
1425 | 1422 | ||
1426 | /* Assign the tar handle as a subarchive of the ar handle */ | 1423 | /* Assign the tar handle as a subarchive of the ar handle */ |
1427 | ar_handle->sub_archive = tar_handle; | 1424 | ar_handle->sub_archive = tar_handle; |
1428 | |||
1429 | return; | ||
1430 | } | 1425 | } |
1431 | 1426 | ||
1432 | static void init_archive_deb_data(archive_handle_t *ar_handle) | 1427 | static void init_archive_deb_data(archive_handle_t *ar_handle) |
@@ -1447,8 +1442,6 @@ static void init_archive_deb_data(archive_handle_t *ar_handle) | |||
1447 | 1442 | ||
1448 | /* Assign the tar handle as a subarchive of the ar handle */ | 1443 | /* Assign the tar handle as a subarchive of the ar handle */ |
1449 | ar_handle->sub_archive = tar_handle; | 1444 | ar_handle->sub_archive = tar_handle; |
1450 | |||
1451 | return; | ||
1452 | } | 1445 | } |
1453 | 1446 | ||
1454 | static char *deb_extract_control_file_to_buffer(archive_handle_t *ar_handle, llist_t *myaccept) | 1447 | static char *deb_extract_control_file_to_buffer(archive_handle_t *ar_handle, llist_t *myaccept) |
@@ -1472,7 +1465,6 @@ static void data_extract_all_prefix(archive_handle_t *archive_handle) | |||
1472 | archive_handle->file_header->name = xasprintf("%s%s", archive_handle->buffer, name_ptr); | 1465 | archive_handle->file_header->name = xasprintf("%s%s", archive_handle->buffer, name_ptr); |
1473 | data_extract_all(archive_handle); | 1466 | data_extract_all(archive_handle); |
1474 | } | 1467 | } |
1475 | return; | ||
1476 | } | 1468 | } |
1477 | 1469 | ||
1478 | static void unpack_package(deb_file_t *deb_file) | 1470 | static void unpack_package(deb_file_t *deb_file) |
diff --git a/archival/libunarchive/data_align.c b/archival/libunarchive/data_align.c index 81594d87c..946c94d0d 100644 --- a/archival/libunarchive/data_align.c +++ b/archival/libunarchive/data_align.c | |||
@@ -5,9 +5,6 @@ | |||
5 | 5 | ||
6 | #include <sys/types.h> | 6 | #include <sys/types.h> |
7 | 7 | ||
8 | #include <errno.h> | ||
9 | #include <unistd.h> | ||
10 | |||
11 | #include "libbb.h" | 8 | #include "libbb.h" |
12 | #include "unarchive.h" | 9 | #include "unarchive.h" |
13 | 10 | ||
@@ -17,6 +14,4 @@ void data_align(archive_handle_t *archive_handle, const unsigned short boundary) | |||
17 | 14 | ||
18 | archive_handle->seek(archive_handle, skip_amount); | 15 | archive_handle->seek(archive_handle, skip_amount); |
19 | archive_handle->offset += skip_amount; | 16 | archive_handle->offset += skip_amount; |
20 | |||
21 | return; | ||
22 | } | 17 | } |
diff --git a/archival/tar.c b/archival/tar.c index 3ed0c3650..176a7e22d 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -134,7 +134,6 @@ static void freeHardLinkInfo(HardLinkInfo ** hlInfoHeadPtr) | |||
134 | } | 134 | } |
135 | *hlInfoHeadPtr = NULL; | 135 | *hlInfoHeadPtr = NULL; |
136 | } | 136 | } |
137 | return; | ||
138 | } | 137 | } |
139 | 138 | ||
140 | /* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */ | 139 | /* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */ |
diff --git a/e2fsprogs/old_e2fsprogs/blkid/devname.c b/e2fsprogs/old_e2fsprogs/blkid/devname.c index 3d11734d5..071aa5a12 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/devname.c +++ b/e2fsprogs/old_e2fsprogs/blkid/devname.c | |||
@@ -131,7 +131,6 @@ set_pri: | |||
131 | pri = BLKID_PRI_MD; | 131 | pri = BLKID_PRI_MD; |
132 | if (dev) | 132 | if (dev) |
133 | dev->bid_pri = pri; | 133 | dev->bid_pri = pri; |
134 | return; | ||
135 | } | 134 | } |
136 | 135 | ||
137 | #define PROC_PARTITIONS "/proc/partitions" | 136 | #define PROC_PARTITIONS "/proc/partitions" |
diff --git a/e2fsprogs/old_e2fsprogs/blkid/devno.c b/e2fsprogs/old_e2fsprogs/blkid/devno.c index 13e7f1a87..ae326f81a 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/devno.c +++ b/e2fsprogs/old_e2fsprogs/blkid/devno.c | |||
@@ -122,7 +122,6 @@ static void scan_dir(char *dir_name, dev_t devno, struct dir_list **list, | |||
122 | } | 122 | } |
123 | } | 123 | } |
124 | closedir(dir); | 124 | closedir(dir); |
125 | return; | ||
126 | } | 125 | } |
127 | 126 | ||
128 | /* Directories where we will try to search for device numbers */ | 127 | /* Directories where we will try to search for device numbers */ |
diff --git a/e2fsprogs/old_e2fsprogs/blkid/read.c b/e2fsprogs/old_e2fsprogs/blkid/read.c index bb02a2e21..276e62a70 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/read.c +++ b/e2fsprogs/old_e2fsprogs/blkid/read.c | |||
@@ -410,7 +410,6 @@ void blkid_read_cache(blkid_cache cache) | |||
410 | return; | 410 | return; |
411 | errout: | 411 | errout: |
412 | close(fd); | 412 | close(fd); |
413 | return; | ||
414 | } | 413 | } |
415 | 414 | ||
416 | #ifdef TEST_PROGRAM | 415 | #ifdef TEST_PROGRAM |
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c index d506db2ac..a0f691606 100644 --- a/e2fsprogs/old_e2fsprogs/e2fsck.c +++ b/e2fsprogs/old_e2fsprogs/e2fsck.c | |||
@@ -2286,7 +2286,6 @@ err_out: | |||
2286 | fix_problem(ctx, PR_0_ERR_MOVE_JOURNAL, &pctx); | 2286 | fix_problem(ctx, PR_0_ERR_MOVE_JOURNAL, &pctx); |
2287 | fs->super->s_state &= ~EXT2_VALID_FS; | 2287 | fs->super->s_state &= ~EXT2_VALID_FS; |
2288 | ext2fs_mark_super_dirty(fs); | 2288 | ext2fs_mark_super_dirty(fs); |
2289 | return; | ||
2290 | } | 2289 | } |
2291 | 2290 | ||
2292 | /* | 2291 | /* |
@@ -7328,8 +7327,6 @@ static void fix_dotdot(e2fsck_t ctx, struct dir_info *dir, ext2_ino_t parent) | |||
7328 | ext2fs_unmark_valid(fs); | 7327 | ext2fs_unmark_valid(fs); |
7329 | } | 7328 | } |
7330 | dir->dotdot = parent; | 7329 | dir->dotdot = parent; |
7331 | |||
7332 | return; | ||
7333 | } | 7330 | } |
7334 | 7331 | ||
7335 | /* | 7332 | /* |
@@ -11969,7 +11966,6 @@ static void check_super_block(e2fsck_t ctx) | |||
11969 | * Move the ext3 journal file, if necessary. | 11966 | * Move the ext3 journal file, if necessary. |
11970 | */ | 11967 | */ |
11971 | e2fsck_move_ext3_journal(ctx); | 11968 | e2fsck_move_ext3_journal(ctx); |
11972 | return; | ||
11973 | } | 11969 | } |
11974 | 11970 | ||
11975 | /* | 11971 | /* |
@@ -12666,7 +12662,6 @@ static void check_mount(e2fsck_t ctx) | |||
12666 | printf(_("check aborted.\n")); | 12662 | printf(_("check aborted.\n")); |
12667 | exit (0); | 12663 | exit (0); |
12668 | } | 12664 | } |
12669 | return; | ||
12670 | } | 12665 | } |
12671 | 12666 | ||
12672 | static int is_on_batt(void) | 12667 | static int is_on_batt(void) |
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/bitmaps.c b/e2fsprogs/old_e2fsprogs/ext2fs/bitmaps.c index 712a4a9b1..637ed27af 100644 --- a/e2fsprogs/old_e2fsprogs/ext2fs/bitmaps.c +++ b/e2fsprogs/old_e2fsprogs/ext2fs/bitmaps.c | |||
@@ -105,8 +105,6 @@ void ext2fs_set_bitmap_padding(ext2fs_generic_bitmap map) | |||
105 | 105 | ||
106 | for (i=map->end+1, j = i - map->start; i <= map->real_end; i++, j++) | 106 | for (i=map->end+1, j = i - map->start; i <= map->real_end; i++, j++) |
107 | ext2fs_set_bit(j, map->bitmap); | 107 | ext2fs_set_bit(j, map->bitmap); |
108 | |||
109 | return; | ||
110 | } | 108 | } |
111 | 109 | ||
112 | errcode_t ext2fs_allocate_inode_bitmap(ext2_filsys fs, | 110 | errcode_t ext2fs_allocate_inode_bitmap(ext2_filsys fs, |
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/inode.c b/e2fsprogs/old_e2fsprogs/ext2fs/inode.c index 2ff9fe6ca..5e0d081bd 100644 --- a/e2fsprogs/old_e2fsprogs/ext2fs/inode.c +++ b/e2fsprogs/old_e2fsprogs/ext2fs/inode.c | |||
@@ -178,7 +178,6 @@ void ext2fs_close_inode_scan(ext2_inode_scan scan) | |||
178 | ext2fs_free_mem(&scan->temp_buffer); | 178 | ext2fs_free_mem(&scan->temp_buffer); |
179 | scan->temp_buffer = NULL; | 179 | scan->temp_buffer = NULL; |
180 | ext2fs_free_mem(&scan); | 180 | ext2fs_free_mem(&scan); |
181 | return; | ||
182 | } | 181 | } |
183 | 182 | ||
184 | void ext2fs_set_inode_callback(ext2_inode_scan scan, | 183 | void ext2fs_set_inode_callback(ext2_inode_scan scan, |
diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c index ce2a9688f..6e8a63742 100644 --- a/e2fsprogs/old_e2fsprogs/fsck.c +++ b/e2fsprogs/old_e2fsprogs/fsck.c | |||
@@ -372,7 +372,6 @@ static void free_instance(struct fsck_instance *i) | |||
372 | if (i->base_device) | 372 | if (i->base_device) |
373 | free(i->base_device); | 373 | free(i->base_device); |
374 | free(i); | 374 | free(i); |
375 | return; | ||
376 | } | 375 | } |
377 | 376 | ||
378 | static struct fs_info *create_fs_device(const char *device, const char *mntpnt, | 377 | static struct fs_info *create_fs_device(const char *device, const char *mntpnt, |
diff --git a/e2fsprogs/old_e2fsprogs/mke2fs.c b/e2fsprogs/old_e2fsprogs/mke2fs.c index 45a67239e..6cdb16cae 100644 --- a/e2fsprogs/old_e2fsprogs/mke2fs.c +++ b/e2fsprogs/old_e2fsprogs/mke2fs.c | |||
@@ -164,7 +164,6 @@ static void set_fs_defaults(const char *fs_type, | |||
164 | static void invalid_block(ext2_filsys fs EXT2FS_ATTR((unused)), blk_t blk) | 164 | static void invalid_block(ext2_filsys fs EXT2FS_ATTR((unused)), blk_t blk) |
165 | { | 165 | { |
166 | bb_error_msg("Bad block %u out of range; ignored", blk); | 166 | bb_error_msg("Bad block %u out of range; ignored", blk); |
167 | return; | ||
168 | } | 167 | } |
169 | 168 | ||
170 | /* | 169 | /* |
diff --git a/e2fsprogs/old_e2fsprogs/tune2fs.c b/e2fsprogs/old_e2fsprogs/tune2fs.c index 12af006da..e5a93378d 100644 --- a/e2fsprogs/old_e2fsprogs/tune2fs.c +++ b/e2fsprogs/old_e2fsprogs/tune2fs.c | |||
@@ -340,7 +340,6 @@ static void add_journal(ext2_filsys fs) | |||
340 | fs->flags &= ~EXT2_FLAG_SUPER_ONLY; | 340 | fs->flags &= ~EXT2_FLAG_SUPER_ONLY; |
341 | } | 341 | } |
342 | print_check_message(fs); | 342 | print_check_message(fs); |
343 | return; | ||
344 | } | 343 | } |
345 | 344 | ||
346 | /* | 345 | /* |
diff --git a/e2fsprogs/old_e2fsprogs/uuid/gen_uuid.c b/e2fsprogs/old_e2fsprogs/uuid/gen_uuid.c index 9d700a015..03a9f376a 100644 --- a/e2fsprogs/old_e2fsprogs/uuid/gen_uuid.c +++ b/e2fsprogs/old_e2fsprogs/uuid/gen_uuid.c | |||
@@ -117,7 +117,6 @@ static void get_random_bytes(void *buf, int nbytes) | |||
117 | */ | 117 | */ |
118 | for (cp = buf, i = 0; i < nbytes; i++) | 118 | for (cp = buf, i = 0; i < nbytes; i++) |
119 | *cp++ ^= (rand() >> 7) & 0xFF; | 119 | *cp++ ^= (rand() >> 7) & 0xFF; |
120 | return; | ||
121 | } | 120 | } |
122 | 121 | ||
123 | /* | 122 | /* |
diff --git a/editors/vi.c b/editors/vi.c index 6898e61a4..a66f20d39 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -734,7 +734,7 @@ static void colon(Byte * buf) | |||
734 | free(cfn); // free the old name | 734 | free(cfn); // free the old name |
735 | cfn = q; // remember new cfn | 735 | cfn = q; // remember new cfn |
736 | 736 | ||
737 | vc5: | 737 | vc5: |
738 | // delete all the contents of text[] | 738 | // delete all the contents of text[] |
739 | new_text(2 * file_size(fn)); | 739 | new_text(2 * file_size(fn)); |
740 | screenbegin = dot = end = text; | 740 | screenbegin = dot = end = text; |
@@ -1919,7 +1919,6 @@ static void end_cmd_q(void) | |||
1919 | YDreg = 26; // go back to default Yank/Delete reg | 1919 | YDreg = 26; // go back to default Yank/Delete reg |
1920 | #endif | 1920 | #endif |
1921 | adding2q = 0; | 1921 | adding2q = 0; |
1922 | return; | ||
1923 | } | 1922 | } |
1924 | #endif /* FEATURE_VI_DOT_CMD */ | 1923 | #endif /* FEATURE_VI_DOT_CMD */ |
1925 | 1924 | ||
@@ -1994,7 +1993,6 @@ static void check_context(Byte cmd) | |||
1994 | //loiter= start_loiter= now; | 1993 | //loiter= start_loiter= now; |
1995 | } | 1994 | } |
1996 | } | 1995 | } |
1997 | return; | ||
1998 | } | 1996 | } |
1999 | 1997 | ||
2000 | static inline Byte *swap_context(Byte * p) // goto new context for '' command make this the current context | 1998 | static inline Byte *swap_context(Byte * p) // goto new context for '' command make this the current context |
@@ -2591,8 +2589,6 @@ static void psbs(const char *format, ...) | |||
2591 | va_end(args); | 2589 | va_end(args); |
2592 | 2590 | ||
2593 | have_status_msg = 1 + sizeof(SOs) + sizeof(SOn) - 2; | 2591 | have_status_msg = 1 + sizeof(SOs) + sizeof(SOn) - 2; |
2594 | |||
2595 | return; | ||
2596 | } | 2592 | } |
2597 | 2593 | ||
2598 | // format status buffer | 2594 | // format status buffer |
@@ -2605,8 +2601,6 @@ static void psb(const char *format, ...) | |||
2605 | va_end(args); | 2601 | va_end(args); |
2606 | 2602 | ||
2607 | have_status_msg = 1; | 2603 | have_status_msg = 1; |
2608 | |||
2609 | return; | ||
2610 | } | 2604 | } |
2611 | 2605 | ||
2612 | static void ni(Byte * s) // display messages | 2606 | static void ni(Byte * s) // display messages |
@@ -3929,6 +3923,5 @@ static void crash_test() | |||
3929 | totalcmds, M, N, I, D, Y, P, U, end - text + 1); | 3923 | totalcmds, M, N, I, D, Y, P, U, end - text + 1); |
3930 | oldtim = tim; | 3924 | oldtim = tim; |
3931 | } | 3925 | } |
3932 | return; | ||
3933 | } | 3926 | } |
3934 | #endif | 3927 | #endif |
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index 96c172cb8..0069b280e 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -583,7 +583,6 @@ read_config_file_err: | |||
583 | if(optional == 0 && errno == ENOENT) | 583 | if(optional == 0 && errno == ENOENT) |
584 | msg_logger_and_die(LOG_ERR, "read config file: %s: %m", path); | 584 | msg_logger_and_die(LOG_ERR, "read config file: %s: %m", path); |
585 | } | 585 | } |
586 | return; | ||
587 | } /* End Function read_config_file */ | 586 | } /* End Function read_config_file */ |
588 | 587 | ||
589 | static void process_config_line (const char *line, unsigned long *event_mask) | 588 | static void process_config_line (const char *line, unsigned long *event_mask) |
@@ -969,7 +968,6 @@ static void action_copy (const struct devfsd_notify_struct *info, | |||
969 | ret = copy_inode (destination, &dest_stat, new_mode, source, &source_stat); | 968 | ret = copy_inode (destination, &dest_stat, new_mode, source, &source_stat); |
970 | if (ENABLE_DEBUG && ret && (errno != EEXIST)) | 969 | if (ENABLE_DEBUG && ret && (errno != EEXIST)) |
971 | debug_msg_logger(LOG_ERR, "copy_inode: %s to %s: %m", source, destination); | 970 | debug_msg_logger(LOG_ERR, "copy_inode: %s to %s: %m", source, destination); |
972 | return; | ||
973 | } /* End Function action_copy */ | 971 | } /* End Function action_copy */ |
974 | 972 | ||
975 | static void action_compat (const struct devfsd_notify_struct *info, unsigned int action) | 973 | static void action_compat (const struct devfsd_notify_struct *info, unsigned int action) |
diff --git a/networking/telnet.c b/networking/telnet.c index a2a90b821..134157273 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -467,8 +467,6 @@ static void to_sga(void) | |||
467 | putiac2(DO, TELOPT_SGA); | 467 | putiac2(DO, TELOPT_SGA); |
468 | else | 468 | else |
469 | putiac2(DONT, TELOPT_SGA); | 469 | putiac2(DONT, TELOPT_SGA); |
470 | |||
471 | return; | ||
472 | } | 470 | } |
473 | 471 | ||
474 | #ifdef CONFIG_FEATURE_TELNET_TTYPE | 472 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
@@ -480,8 +478,6 @@ static void to_ttype(void) | |||
480 | putiac2(WILL, TELOPT_TTYPE); | 478 | putiac2(WILL, TELOPT_TTYPE); |
481 | else | 479 | else |
482 | putiac2(WONT, TELOPT_TTYPE); | 480 | putiac2(WONT, TELOPT_TTYPE); |
483 | |||
484 | return; | ||
485 | } | 481 | } |
486 | #endif | 482 | #endif |
487 | 483 | ||
@@ -494,8 +490,6 @@ static void to_new_environ(void) | |||
494 | putiac2(WILL, TELOPT_NEW_ENVIRON); | 490 | putiac2(WILL, TELOPT_NEW_ENVIRON); |
495 | else | 491 | else |
496 | putiac2(WONT, TELOPT_NEW_ENVIRON); | 492 | putiac2(WONT, TELOPT_NEW_ENVIRON); |
497 | |||
498 | return; | ||
499 | } | 493 | } |
500 | #endif | 494 | #endif |
501 | 495 | ||
@@ -504,29 +498,33 @@ static void to_naws(void) | |||
504 | { | 498 | { |
505 | /* Tell server we will do NAWS */ | 499 | /* Tell server we will do NAWS */ |
506 | putiac2(WILL, TELOPT_NAWS); | 500 | putiac2(WILL, TELOPT_NAWS); |
507 | return; | ||
508 | } | 501 | } |
509 | #endif | 502 | #endif |
510 | 503 | ||
511 | static void telopt(byte c) | 504 | static void telopt(byte c) |
512 | { | 505 | { |
513 | switch (c) | 506 | switch (c) { |
514 | { | 507 | case TELOPT_ECHO: |
515 | case TELOPT_ECHO: to_echo(); break; | 508 | to_echo(); break; |
516 | case TELOPT_SGA: to_sga(); break; | 509 | case TELOPT_SGA: |
510 | to_sga(); break; | ||
517 | #ifdef CONFIG_FEATURE_TELNET_TTYPE | 511 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
518 | case TELOPT_TTYPE: to_ttype();break; | 512 | case TELOPT_TTYPE: |
513 | to_ttype(); break; | ||
519 | #endif | 514 | #endif |
520 | #ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN | 515 | #ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN |
521 | case TELOPT_NEW_ENVIRON: to_new_environ(); break; | 516 | case TELOPT_NEW_ENVIRON: |
517 | to_new_environ(); break; | ||
522 | #endif | 518 | #endif |
523 | #ifdef CONFIG_FEATURE_AUTOWIDTH | 519 | #ifdef CONFIG_FEATURE_AUTOWIDTH |
524 | case TELOPT_NAWS: to_naws(); | 520 | case TELOPT_NAWS: |
525 | putiac_naws(c, win_width, win_height); | 521 | to_naws(); |
526 | break; | 522 | putiac_naws(c, win_width, win_height); |
523 | break; | ||
527 | #endif | 524 | #endif |
528 | default: to_notsup(c); | 525 | default: |
529 | break; | 526 | to_notsup(c); |
527 | break; | ||
530 | } | 528 | } |
531 | } | 529 | } |
532 | 530 | ||
diff --git a/runit/runit_lib.c b/runit/runit_lib.c index 6401ba0c8..0830314df 100644 --- a/runit/runit_lib.c +++ b/runit/runit_lib.c | |||
@@ -120,7 +120,6 @@ void fmt_ptime30nul(char *s, struct taia *ta) { | |||
120 | /* 4+1 + 2+1 + 2+1 + 2+1 + 2+1 + 2+1 + 9 = */ | 120 | /* 4+1 + 2+1 + 2+1 + 2+1 + 2+1 + 2+1 + 9 = */ |
121 | /* 5 + 3 + 3 + 3 + 3 + 3 + 9 = */ | 121 | /* 5 + 3 + 3 + 3 + 3 + 3 + 9 = */ |
122 | /* 20 (up to '.' inclusive) + 9 (not including '\0') */ | 122 | /* 20 (up to '.' inclusive) + 9 (not including '\0') */ |
123 | return; | ||
124 | } | 123 | } |
125 | 124 | ||
126 | unsigned fmt_taia25(char *s, struct taia *t) { | 125 | unsigned fmt_taia25(char *s, struct taia *t) { |