diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-07-14 22:04:34 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-07-14 22:04:34 -0700 |
commit | f21823506dcb956d62c260e6e207f1dc2ce7732a (patch) | |
tree | 65372baf6b9b328a81edb87777cde5a3b6b1285b /src/session.c | |
parent | c6ade914363426facb01a954650b804657114012 (diff) |
Whitespace fixes in src files
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/session.c b/src/session.c index 485eaf3..fd91942 100644 --- a/src/session.c +++ b/src/session.c @@ -113,7 +113,7 @@ Window window; if (prop) XFree (prop); } - + return client_id; } @@ -355,7 +355,7 @@ char *windowRole; if (!write_counted_string (configFile, theWindow->name)) return 0; } - + wm_command = NULL; wm_command_count = 0; XGetCommand (dpy, theWindow->w, &wm_command, &wm_command_count); @@ -450,11 +450,11 @@ ReadWinConfigEntry (FILE *configFile, unsigned short version, goto give_up; if (!read_counted_string (configFile, &entry->wm_name)) goto give_up; - + if (!read_byte (configFile, &byte)) goto give_up; entry->wm_command_count = byte; - + if (entry->wm_command_count == 0) entry->wm_command = NULL; else @@ -534,7 +534,7 @@ give_up: } if (entry->wm_command) free ((char *) entry->wm_command); - + free ((char *) entry); *pentry = NULL; @@ -749,13 +749,13 @@ int *pFd; else return (NULL); #endif -#else +#else char tempFile[PATH_MAX]; char *ptr; snprintf (tempFile, sizeof(tempFile), "%s/%sXXXXXX", path, prefix); ptr = (char *)malloc(strlen(tempFile) + 1); - if (ptr != NULL) + if (ptr != NULL) { strcpy(ptr, tempFile); *pFd = mkstemp(ptr); @@ -809,14 +809,14 @@ SmPointer clientData; prop2.vals = &prop2val; prop2val.value = (SmPointer) userId; prop2val.length = strlen (userId); - + prop3.name = SmRestartStyleHint; prop3.type = SmCARD8; prop3.num_vals = 1; prop3.vals = &prop3val; prop3val.value = (SmPointer) &hint; prop3val.length = 1; - + props[0] = &prop1; props[1] = &prop2; props[2] = &prop3; @@ -842,8 +842,8 @@ SmPointer clientData; #else if ((filename = unique_filename (path, ".twm", &fd)) == NULL) goto bad; - - if (!(configFile = fdopen(fd, "wb"))) + + if (!(configFile = fdopen(fd, "wb"))) goto bad; #endif @@ -878,7 +878,7 @@ SmPointer clientData; } } } - + prop1.name = SmRestartCommand; prop1.type = SmLISTofARRAY8; |