Ignore:
Timestamp:
05/16/04 06:20:42 (18 years ago)
Author:
Nicholas Riley
Message:

package-appswitch.sh: replace pbxbuild with xcodebuild; fix permissions

appswitch/appswitch.1: updated for actual release date

appswitch/main.c: updated for 1.0.1; fix PSN width, resolves #1; fix
compiler warning

appswitch/README: updated for actual release date; PB -> Xcode;
updated timings; updated version history

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/appswitch/appswitch/main.c

    r156 r160  
    2424const char *APP_NAME;
    2525
    26 #define VERSION "1.0"
     26#define VERSION "1.0.1"
    2727
    2828struct {
     
    308308        int termwidth = 80;
    309309        struct winsize ws;
    310         char *banner = "       PSN   PID TYPE CREA NAME                ";
    311                      // 12345678.0 12345 1234 1234 12345678901234567890
     310        char *banner = "        PSN   PID TYPE CREA NAME               ";
     311                     // 123456789.0 12345 1234 1234 1234567890123456789
    312312        if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) != -1 ||
    313313             ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) != -1 ||
    314314             ioctl(STDIN_FILENO,  TIOCGWINSZ, (char *)&ws) != -1) ||
    315315            ws.ws_col != 0) termwidth = ws.ws_col;
    316         char *formatButPath = "%8ld.%ld %5ld %c%c%c%c %c%c%c%c %-20.20s";
     316        char *formatButPath = "%9ld.%ld %5ld %c%c%c%c %c%c%c%c %-19.19s";
    317317        int pathlen = termwidth - strlen(banner) - 1;
    318318        // XXX don't ever free 'format', should fix if we get called repeatedly
     
    404404}
    405405
    406 int main (int argc, char * const argv[]) {
     406int main(int argc, char * const argv[]) {
    407407    OSStatus err = noErr;
    408408
     
    416416    CPSProcessSerNum psn = matchApplication(&info);
    417417
    418     const char *verb;
     418    const char *verb = NULL;
    419419    switch (OPTS.appAction) {
    420420        case APP_NONE: break;
Note: See TracChangeset for help on using the changeset viewer.