]> git.eshelyaron.com Git - emacs.git/commitdiff
(get_server_config): Declare set_fg as FARPROC to avoid a compiler warning.
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 8 Nov 2006 01:06:45 +0000 (01:06 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 8 Nov 2006 01:06:45 +0000 (01:06 +0000)
lib-src/emacsclient.c

index 3c3b27374fcc219fe38f3cdf2857f1d6efa32d92..2ad3701e07a4d0183f84a25c27ca19032684c0f4 100644 (file)
@@ -510,7 +510,7 @@ get_server_config (server, authentication)
 
     if (hUser32 = LoadLibrary ("user32.dll"))
       {
-        void (*set_fg)(DWORD);
+        FARPROC set_fg;
         if (set_fg = GetProcAddress (hUser32, "AllowSetForegroundWindow"))
           set_fg (atoi (pid));
         FreeLibrary (hUser32);