Changeset 36e9cd1 in mainline for uspace/app
- Timestamp:
- 2010-02-10T23:15:27Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0701066
- Parents:
- 3149fc0
- Location:
- uspace/app
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/builtins/builtins.h
r3149fc0 r36e9cd1 10 10 #include "cd/cd_def.h" 11 11 #include "exit/exit_def.h" 12 {NULL, NULL, NULL, NULL }12 {NULL, NULL, NULL, NULL, NULL} 13 13 }; 14 14 -
uspace/app/bdsh/cmds/builtins/cd/cd_def.h
r3149fc0 r36e9cd1 4 4 &cmd_cd, 5 5 &help_cmd_cd, 6 0 6 7 }, -
uspace/app/bdsh/cmds/builtins/exit/exit_def.h
r3149fc0 r36e9cd1 4 4 &cmd_exit, 5 5 &help_cmd_exit, 6 0 6 7 }, -
uspace/app/bdsh/input.c
r3149fc0 r36e9cd1 508 508 { 509 509 int sa, sb; 510 wchar_t tmp_c;511 510 char *str; 512 511 … … 514 513 515 514 if (sb < ti->nc) { 516 tmp_c = ti->buffer[sb];515 wchar_t tmp_c = ti->buffer[sb]; 517 516 ti->buffer[sb] = '\0'; 518 } 519 520 str = wstr_to_astr(ti->buffer + sa); 521 522 if (sb < ti->nc) 517 str = wstr_to_astr(ti->buffer + sa); 523 518 ti->buffer[sb] = tmp_c; 524 519 } else 520 str = wstr_to_astr(ti->buffer + sa); 521 525 522 if (str == NULL) 526 523 goto error; -
uspace/app/edit/edit.c
r3149fc0 r36e9cd1 718 718 wchar_t c; 719 719 size_t pos, size; 720 unsigneds_column;720 int s_column; 721 721 coord_t csel_start, csel_end, ctmp; 722 722 … … 766 766 s_column = pane.sh_column; 767 767 while (pos < size) { 768 if ( csel_start.row == rbc.row && csel_start.column == s_column) {768 if ((csel_start.row == rbc.row) && (csel_start.column == s_column)) { 769 769 fflush(stdout); 770 770 console_set_color(con, COLOR_BLACK, COLOR_RED, 0); … … 772 772 } 773 773 774 if ( csel_end.row == rbc.row && csel_end.column == s_column) {774 if ((csel_end.row == rbc.row) && (csel_end.column == s_column)) { 775 775 fflush(stdout); 776 776 console_set_color(con, COLOR_BLACK, COLOR_WHITE, 0); … … 792 792 } 793 793 794 if ( csel_end.row == rbc.row && csel_end.column == s_column) {794 if ((csel_end.row == rbc.row) && (csel_end.column == s_column)) { 795 795 fflush(stdout); 796 796 console_set_color(con, COLOR_BLACK, COLOR_WHITE, 0); -
uspace/app/mkfat/fat.h
r3149fc0 r36e9cd1 78 78 uint16_t signature; 79 79 } __attribute__ ((packed)); 80 struct fat32{80 struct { 81 81 /* FAT32 only */ 82 82 /** Sectors per FAT. */ … … 108 108 /** Signature. */ 109 109 uint16_t signature; 110 } __attribute__ ((packed));110 } fat32 __attribute__ ((packed)); 111 111 }; 112 112 } __attribute__ ((packed)) fat_bs_t; -
uspace/app/redir/redir.c
r3149fc0 r36e9cd1 72 72 static task_id_t spawn(int argc, char *argv[]) 73 73 { 74 char **args = (char * ) calloc(argc + 1, sizeof(char *));74 char **args = (char **) calloc(argc + 1, sizeof(char *)); 75 75 if (!args) { 76 76 printf("No memory available\n"); -
uspace/app/taskdump/taskdump.c
r3149fc0 r36e9cd1 356 356 } 357 357 358 static int area_dump(as_area_info_t *area)358 static __attribute__((unused)) int area_dump(as_area_info_t *area) 359 359 { 360 360 size_t to_copy; -
uspace/app/tester/fault/fault2.c
r3149fc0 r36e9cd1 30 30 #include "../tester.h" 31 31 32 typedef int __attribute__((may_alias)) aliasing_int; 33 32 34 char *test_fault2(void) 33 35 { … … 35 37 volatile int var1; 36 38 37 var1 = *(( int *) (((char *) (&var)) + 1));39 var1 = *((aliasing_int *) (((char *) (&var)) + 1)); 38 40 39 41 return "Survived unaligned read";
Note:
See TracChangeset
for help on using the changeset viewer.