Browse Source

code style nitpicking

sisyphus
Dustin Falgout 9 years ago
parent
commit
63c6d1e7ca
  1. 19
      src/lightdm-webkit2-greeter.c

19
src/lightdm-webkit2-greeter.c

@ -250,15 +250,21 @@ quit_cb(void) {
gtk_main_quit(); gtk_main_quit();
} }
static gchar * static gchar *
remove_comments(gchar *str) { rtrim_comments(gchar *str) {
gchar *ptr; gchar *ptr = NULL;
ptr = strchr(str, '#');
if (NULL != ptr) {
*ptr = '\0';
}
if (str && (ptr = strchr(str, '#')))
*ptr = 0;
return g_strstrip(str); return g_strstrip(str);
} }
int int
main(int argc, char **argv) { main(int argc, char **argv) {
GdkScreen *screen; GdkScreen *screen;
@ -272,10 +278,7 @@ main(int argc, char **argv) {
GtkCssProvider *css_provider; GtkCssProvider *css_provider;
WebKitCookieManager *cookie_manager; WebKitCookieManager *cookie_manager;
/* /* Prevent memory from being swapped out, since we see unencrypted passwords. */
* Prevent memory from being swapped out, since we see unencrypted
* passwords.
*/
mlockall (MCL_CURRENT | MCL_FUTURE); mlockall (MCL_CURRENT | MCL_FUTURE);
/* Initialize i18n */ /* Initialize i18n */

Loading…
Cancel
Save