Changeset 49a8434


Ignore:
Timestamp:
Dec 6, 2008, 6:55:29 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b9cb41b
Parents:
7ce4003
git-author:
Nelson Elhage <nelhage@mit.edu> (12/06/08 18:52:42)
git-committer:
Nelson Elhage <nelhage@mit.edu> (12/06/08 18:55:29)
Message:
Fix three small warnings.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r2aaca94 r49a8434  
    19541954void owl_function_status()
    19551955{
    1956   char buff[5000];
     1956  char buff[MAXPATHLEN+1];
    19571957  time_t start;
    19581958  int up, days, hours, minutes;
     
    19741974
    19751975  owl_fmtext_append_normal(&fm, "  Current Directory: ");
    1976   (void) getcwd(buff, MAXPATHLEN);
    1977   owl_fmtext_append_normal(&fm, buff);
     1976  if(getcwd(buff, MAXPATHLEN) == NULL) {
     1977    owl_fmtext_append_normal(&fm, "<Error in getcwd>");
     1978  } else {
     1979    owl_fmtext_append_normal(&fm, buff);
     1980  }
    19781981  owl_fmtext_append_normal(&fm, "\n");
    19791982
  • popexec.c

    r1971b59 r49a8434  
    7373    dup2(child_write_fd, 2 /*stderr*/);
    7474    close(child_write_fd);
    75    
    76     while(0) {
    77       write(child_write_fd, "meep\n", 5);
    78       sleep(1);
    79     }
    8075
    8176    argv[0] = "sh";
  • wcwidth.c

    r47519e1b r49a8434  
    6262#include <wchar.h>
    6363
    64 static struct interval {
     64struct interval {               /* noproto */
    6565  int first;
    6666  int last;
Note: See TracChangeset for help on using the changeset viewer.