All pastes #1660716 Raw Edit

Unnamed

public diff v1 · immutable
#1660716 ·published 2009-11-07 09:22 UTC
rendered paste body
--- tc2freedesktop.c	2009-11-02 13:31:30.000000000 +0200+++ tc2freedesktop-new.c	2009-11-07 11:19:18.000000000 +0200@@ -20,8 +20,9 @@ #include <sys/stat.h> #include <stdlib.h> #include <getopt.h>+#include <ctype.h> -char *strlwr(char *r, char *s)+static void strlwr(char *r, char *s) {     char ch; @@ -30,12 +31,12 @@     *r = 0x0; } -main (int argc, char *argv[])+int main (int argc, char *argv[]) {     DIR *dp1, *dp2;     FILE *fp;     struct dirent *entry1, *entry2;-    char w1[100], w2[100], w3[100], w4[100], *s, *fn1, *fn2;+    char w1[100], w2[100], w3[100], w4[100], *fn1, *fn2;     int flg, nrwbar, nrfred;      if (argc != 1) {@@ -122,4 +123,6 @@      printf("Wbar entries found: %d\n", nrwbar);     printf("New menus created:  %d\n", nrfred);++    return 0; }