Changeset 5b3cf90 in mainline for uspace/app


Ignore:
Timestamp:
2009-08-02T19:38:02Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa5526d
Parents:
f019cc07
Message:

Fix warnings in Bdsh and PCI lib.

Location:
uspace/app/bdsh/cmds/modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cp/cp.c

    rf019cc07 r5b3cf90  
    173173int cmd_cp(char **argv)
    174174{
    175         unsigned int argc, buffer = 0, verbose = 0;
     175        unsigned int argc, verbose = 0;
     176        int buffer = 0;
    176177        int c, opt_ind;
    177178        int64_t ret;
  • uspace/app/bdsh/cmds/modules/ls/ls.c

    rf019cc07 r5b3cf90  
    9090        int rc;
    9191
    92         if (rc = stat(pathname, &s)) {
     92        rc = stat(pathname, &s);
     93        if (rc != 0) {
    9394                /* Odd chance it was deleted from the time readdir() found it */
    9495                printf("ls: skipping bogus node %s\n", pathname);
  • uspace/app/bdsh/cmds/modules/ls/ls.h

    rf019cc07 r5b3cf90  
    77#define LS_DIR   2
    88
    9 
    10 static unsigned int ls_scope(const char *);
    119static void ls_scan_dir(const char *, DIR *);
    1210static void ls_print(const char *, const char *);
  • uspace/app/bdsh/cmds/modules/rm/rm.c

    rf019cc07 r5b3cf90  
    210210        }
    211211
    212         if (optind == argc) {
     212        if ((unsigned) optind == argc) {
    213213                cli_error(CL_EFAIL,
    214214                        "%s: insufficient arguments. Try %s --help", cmdname, cmdname);
Note: See TracChangeset for help on using the changeset viewer.